mocks

package
v0.0.0-...-f6b5871 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*DB) Close

func (_m *DB) Close() error

Close provides a mock function with given fields:

func (*DB) Get

func (_m *DB) Get(ctx context.Context, rollId string) (*manual.ManualRollRequest, error)

Get provides a mock function with given fields: ctx, rollId

func (*DB) GetIncomplete

func (_m *DB) GetIncomplete(rollerName string) ([]*manual.ManualRollRequest, error)

GetIncomplete provides a mock function with given fields: rollerName

func (*DB) GetRecent

func (_m *DB) GetRecent(rollerName string, limit int) ([]*manual.ManualRollRequest, error)

GetRecent provides a mock function with given fields: rollerName, limit

func (*DB) Put

func (_m *DB) Put(req *manual.ManualRollRequest) error

Put provides a mock function with given fields: req

Jump to

Keyboard shortcuts

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