Documentation ¶
Index ¶
- type MockRepository
- type MockRepository_Expecter
- type MockRepository_FindByID_Call
- func (_c *MockRepository_FindByID_Call) Return(client entities.Client, err error) *MockRepository_FindByID_Call
- func (_c *MockRepository_FindByID_Call) Run(run func(ctx context.Context, id int)) *MockRepository_FindByID_Call
- func (_c *MockRepository_FindByID_Call) RunAndReturn(run func(context.Context, int) (entities.Client, error)) *MockRepository_FindByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
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 (_m *MockRepository) EXPECT() *MockRepository_Expecter
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 ¶
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 (_c *MockRepository_FindByID_Call) Return(client entities.Client, err error) *MockRepository_FindByID_Call
func (*MockRepository_FindByID_Call) Run ¶
func (_c *MockRepository_FindByID_Call) Run(run func(ctx context.Context, id int)) *MockRepository_FindByID_Call
func (*MockRepository_FindByID_Call) RunAndReturn ¶
func (_c *MockRepository_FindByID_Call) RunAndReturn(run func(context.Context, int) (entities.Client, error)) *MockRepository_FindByID_Call
Click to show internal directories.
Click to hide internal directories.