Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockTodosRepository
- func (m *MockTodosRepository) CreateTodo(arg0 domain.Todo) (int, error)
- func (m *MockTodosRepository) DeleteTodo(arg0 int) (int64, error)
- func (m *MockTodosRepository) EXPECT() *MockTodosRepositoryMockRecorder
- func (m *MockTodosRepository) ReadTodo(arg0 int) (*domain.Todo, error)
- func (m *MockTodosRepository) SearchTodos() (*[]domain.Todo, error)
- func (m *MockTodosRepository) UpdateTodo(arg0 int, arg1 domain.Todo) (int64, error)
- type MockTodosRepositoryMockRecorder
- func (mr *MockTodosRepositoryMockRecorder) CreateTodo(arg0 interface{}) *gomock.Call
- func (mr *MockTodosRepositoryMockRecorder) DeleteTodo(arg0 interface{}) *gomock.Call
- func (mr *MockTodosRepositoryMockRecorder) ReadTodo(arg0 interface{}) *gomock.Call
- func (mr *MockTodosRepositoryMockRecorder) SearchTodos() *gomock.Call
- func (mr *MockTodosRepositoryMockRecorder) UpdateTodo(arg0, arg1 interface{}) *gomock.Call
- type MockTodosService
- func (m *MockTodosService) CreateTodo(arg0 domain.Todo) (int, error)
- func (m *MockTodosService) DeleteTodo(arg0 int) (int64, error)
- func (m *MockTodosService) EXPECT() *MockTodosServiceMockRecorder
- func (m *MockTodosService) ReadTodo(arg0 int) (*domain.Todo, error)
- func (m *MockTodosService) SearchTodos() (*[]domain.Todo, error)
- func (m *MockTodosService) UpdateTodo(arg0 int, arg1 domain.Todo) (int64, error)
- type MockTodosServiceMockRecorder
- func (mr *MockTodosServiceMockRecorder) CreateTodo(arg0 interface{}) *gomock.Call
- func (mr *MockTodosServiceMockRecorder) DeleteTodo(arg0 interface{}) *gomock.Call
- func (mr *MockTodosServiceMockRecorder) ReadTodo(arg0 interface{}) *gomock.Call
- func (mr *MockTodosServiceMockRecorder) SearchTodos() *gomock.Call
- func (mr *MockTodosServiceMockRecorder) UpdateTodo(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTodosRepository ¶
type MockTodosRepository struct {
// contains filtered or unexported fields
}
MockTodosRepository is a mock of TodosRepository interface
func NewMockTodosRepository ¶
func NewMockTodosRepository(ctrl *gomock.Controller) *MockTodosRepository
NewMockTodosRepository creates a new mock instance
func (*MockTodosRepository) CreateTodo ¶
func (m *MockTodosRepository) CreateTodo(arg0 domain.Todo) (int, error)
CreateTodo mocks base method
func (*MockTodosRepository) DeleteTodo ¶
func (m *MockTodosRepository) DeleteTodo(arg0 int) (int64, error)
DeleteTodo mocks base method
func (*MockTodosRepository) EXPECT ¶
func (m *MockTodosRepository) EXPECT() *MockTodosRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTodosRepository) ReadTodo ¶
func (m *MockTodosRepository) ReadTodo(arg0 int) (*domain.Todo, error)
ReadTodo mocks base method
func (*MockTodosRepository) SearchTodos ¶
func (m *MockTodosRepository) SearchTodos() (*[]domain.Todo, error)
SearchTodos mocks base method
func (*MockTodosRepository) UpdateTodo ¶
UpdateTodo mocks base method
type MockTodosRepositoryMockRecorder ¶
type MockTodosRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTodosRepositoryMockRecorder is the mock recorder for MockTodosRepository
func (*MockTodosRepositoryMockRecorder) CreateTodo ¶
func (mr *MockTodosRepositoryMockRecorder) CreateTodo(arg0 interface{}) *gomock.Call
CreateTodo indicates an expected call of CreateTodo
func (*MockTodosRepositoryMockRecorder) DeleteTodo ¶
func (mr *MockTodosRepositoryMockRecorder) DeleteTodo(arg0 interface{}) *gomock.Call
DeleteTodo indicates an expected call of DeleteTodo
func (*MockTodosRepositoryMockRecorder) ReadTodo ¶
func (mr *MockTodosRepositoryMockRecorder) ReadTodo(arg0 interface{}) *gomock.Call
ReadTodo indicates an expected call of ReadTodo
func (*MockTodosRepositoryMockRecorder) SearchTodos ¶
func (mr *MockTodosRepositoryMockRecorder) SearchTodos() *gomock.Call
SearchTodos indicates an expected call of SearchTodos
func (*MockTodosRepositoryMockRecorder) UpdateTodo ¶
func (mr *MockTodosRepositoryMockRecorder) UpdateTodo(arg0, arg1 interface{}) *gomock.Call
UpdateTodo indicates an expected call of UpdateTodo
type MockTodosService ¶
type MockTodosService struct {
// contains filtered or unexported fields
}
MockTodosService is a mock of TodosService interface
func NewMockTodosService ¶
func NewMockTodosService(ctrl *gomock.Controller) *MockTodosService
NewMockTodosService creates a new mock instance
func (*MockTodosService) CreateTodo ¶
func (m *MockTodosService) CreateTodo(arg0 domain.Todo) (int, error)
CreateTodo mocks base method
func (*MockTodosService) DeleteTodo ¶
func (m *MockTodosService) DeleteTodo(arg0 int) (int64, error)
DeleteTodo mocks base method
func (*MockTodosService) EXPECT ¶
func (m *MockTodosService) EXPECT() *MockTodosServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTodosService) ReadTodo ¶
func (m *MockTodosService) ReadTodo(arg0 int) (*domain.Todo, error)
ReadTodo mocks base method
func (*MockTodosService) SearchTodos ¶
func (m *MockTodosService) SearchTodos() (*[]domain.Todo, error)
SearchTodos mocks base method
func (*MockTodosService) UpdateTodo ¶
UpdateTodo mocks base method
type MockTodosServiceMockRecorder ¶
type MockTodosServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockTodosServiceMockRecorder is the mock recorder for MockTodosService
func (*MockTodosServiceMockRecorder) CreateTodo ¶
func (mr *MockTodosServiceMockRecorder) CreateTodo(arg0 interface{}) *gomock.Call
CreateTodo indicates an expected call of CreateTodo
func (*MockTodosServiceMockRecorder) DeleteTodo ¶
func (mr *MockTodosServiceMockRecorder) DeleteTodo(arg0 interface{}) *gomock.Call
DeleteTodo indicates an expected call of DeleteTodo
func (*MockTodosServiceMockRecorder) ReadTodo ¶
func (mr *MockTodosServiceMockRecorder) ReadTodo(arg0 interface{}) *gomock.Call
ReadTodo indicates an expected call of ReadTodo
func (*MockTodosServiceMockRecorder) SearchTodos ¶
func (mr *MockTodosServiceMockRecorder) SearchTodos() *gomock.Call
SearchTodos indicates an expected call of SearchTodos
func (*MockTodosServiceMockRecorder) UpdateTodo ¶
func (mr *MockTodosServiceMockRecorder) UpdateTodo(arg0, arg1 interface{}) *gomock.Call
UpdateTodo indicates an expected call of UpdateTodo