Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockRepository
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) CompleteToDo(arg0 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateToDo(arg0 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeleteToDo(arg0 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetToDoList() *gomock.Call
- type MockService
- type MockServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) CompleteToDo ¶
func (m *MockRepository) CompleteToDo(arg0 int64) error
CompleteToDo mocks base method.
func (*MockRepository) CreateToDo ¶
func (m *MockRepository) CreateToDo(arg0 todo.ToDo) (int64, error)
CreateToDo mocks base method.
func (*MockRepository) DeleteToDo ¶
func (m *MockRepository) DeleteToDo(arg0 int64) error
DeleteToDo mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetToDoList ¶
func (m *MockRepository) GetToDoList() ([]todo.ToDo, error)
GetToDoList mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) CompleteToDo ¶
func (mr *MockRepositoryMockRecorder) CompleteToDo(arg0 interface{}) *gomock.Call
CompleteToDo indicates an expected call of CompleteToDo.
func (*MockRepositoryMockRecorder) CreateToDo ¶
func (mr *MockRepositoryMockRecorder) CreateToDo(arg0 interface{}) *gomock.Call
CreateToDo indicates an expected call of CreateToDo.
func (*MockRepositoryMockRecorder) DeleteToDo ¶
func (mr *MockRepositoryMockRecorder) DeleteToDo(arg0 interface{}) *gomock.Call
DeleteToDo indicates an expected call of DeleteToDo.
func (*MockRepositoryMockRecorder) GetToDoList ¶
func (mr *MockRepositoryMockRecorder) GetToDoList() *gomock.Call
GetToDoList indicates an expected call of GetToDoList.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) CompleteToDo ¶
func (m *MockService) CompleteToDo(arg0 int64) error
CompleteToDo mocks base method.
func (*MockService) CreateToDo ¶
func (m *MockService) CreateToDo(arg0 todo.ToDo) (int64, error)
CreateToDo mocks base method.
func (*MockService) DeleteToDo ¶
func (m *MockService) DeleteToDo(arg0 int64) error
DeleteToDo mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetToDoList ¶
func (m *MockService) GetToDoList() ([]todo.ToDo, error)
GetToDoList mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CompleteToDo ¶
func (mr *MockServiceMockRecorder) CompleteToDo(arg0 interface{}) *gomock.Call
CompleteToDo indicates an expected call of CompleteToDo.
func (*MockServiceMockRecorder) CreateToDo ¶
func (mr *MockServiceMockRecorder) CreateToDo(arg0 interface{}) *gomock.Call
CreateToDo indicates an expected call of CreateToDo.
func (*MockServiceMockRecorder) DeleteToDo ¶
func (mr *MockServiceMockRecorder) DeleteToDo(arg0 interface{}) *gomock.Call
DeleteToDo indicates an expected call of DeleteToDo.
func (*MockServiceMockRecorder) GetToDoList ¶
func (mr *MockServiceMockRecorder) GetToDoList() *gomock.Call
GetToDoList indicates an expected call of GetToDoList.