mocks

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Create

func (_m *Repository) Create(ctx context.Context, id int64) (int, error)

Create provides a mock function with given fields: ctx, id

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, id int64) (int, error)

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

func (*Repository) Get

func (_m *Repository) Get(ctx context.Context, id int64) (int64, int, error)

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

func (*Repository) GetIDs

func (_m *Repository) GetIDs(ctx context.Context) ([]int64, int, error)

GetIDs 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