mocks

package
v0.0.0-...-24031bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDB

type FakeDB struct {
	mock.Mock
}

func (*FakeDB) NamedExec

func (db *FakeDB) NamedExec(query string, params interface{}) (sql.Result, error)

func (*FakeDB) Select

func (db *FakeDB) Select(dest interface{}, query string) error

type FakeRepository

type FakeRepository struct {
	mock.Mock
}

func (*FakeRepository) GetAll

func (r *FakeRepository) GetAll() ([]words.Entry, error)

func (*FakeRepository) Save

func (r *FakeRepository) Save(entry words.Entry) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL