mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 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 DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB

func NewDB(t mockConstructorTestingTNewDB) *DB

NewDB creates a new instance of DB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DB) ChildrenTags

func (_m *DB) ChildrenTags(ctx context.Context, parent types.Tag) ([]types.Tag, error)

ChildrenTags provides a mock function with given fields: ctx, parent

func (*DB) Close

func (_m *DB) Close() error

Close provides a mock function with given fields:

func (*DB) Photos

func (_m *DB) Photos(ctx context.Context, q types.Query) ([]types.Photo, error)

Photos provides a mock function with given fields: ctx, q

func (*DB) Ratings added in v0.2.0

func (_m *DB) Ratings() []float64

Ratings provides a mock function with given fields:

func (*DB) RootTags

func (_m *DB) RootTags(ctx context.Context) ([]types.Tag, error)

RootTags provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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