mocks

package
v0.0.0-...-c8472d9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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) Delete

func (_m *DB) Delete(ctx context.Context, rollerID string) error

Delete provides a mock function with given fields: ctx, rollerID

func (*DB) Get

func (_m *DB) Get(ctx context.Context, rollerID string) (*config.Config, error)

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

func (*DB) GetAll

func (_m *DB) GetAll(ctx context.Context) ([]*config.Config, error)

GetAll provides a mock function with given fields: ctx

func (*DB) Put

func (_m *DB) Put(ctx context.Context, rollerID string, cfg *config.Config) error

Put provides a mock function with given fields: ctx, rollerID, cfg

Jump to

Keyboard shortcuts

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