mocks

package
v0.0.0-...-ca80d37 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 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 MockRepository

type MockRepository struct {
	mock.Mock
}

MockRepository is an autogenerated mock type for the Repository type

func NewMockRepository

func NewMockRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRepository

NewMockRepository creates a new instance of MockRepository. 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 (*MockRepository) EXPECT

func (*MockRepository) FindByID

func (_m *MockRepository) FindByID(ctx context.Context, id int) (entities.Client, error)

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

type MockRepository_Expecter

type MockRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockRepository_Expecter) FindByID

func (_e *MockRepository_Expecter) FindByID(ctx interface{}, id interface{}) *MockRepository_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • id int

type MockRepository_FindByID_Call

type MockRepository_FindByID_Call struct {
	*mock.Call
}

MockRepository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'

func (*MockRepository_FindByID_Call) Return

func (*MockRepository_FindByID_Call) Run

func (*MockRepository_FindByID_Call) RunAndReturn

Jump to

Keyboard shortcuts

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