Documentation ¶
Overview ¶
Package automocks is a generated GoMock package.
Index ¶
- type MockTodoService
- func (m *MockTodoService) Add(arg0 context.Context, arg1 *model.TodoReq) (*model.TodoRes, error)
- func (m *MockTodoService) Delete(arg0 context.Context, arg1 string) error
- func (m *MockTodoService) EXPECT() *MockTodoServiceMockRecorder
- func (m *MockTodoService) List(arg0 context.Context) ([]*model.TodoRes, error)
- func (m *MockTodoService) Update(arg0 context.Context, arg1 string, arg2 *model.TodoReq) (*model.TodoRes, error)
- type MockTodoServiceMockRecorder
- func (mr *MockTodoServiceMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTodoServiceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTodoServiceMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockTodoServiceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTodoService ¶
type MockTodoService struct {
// contains filtered or unexported fields
}
MockTodoService is a mock of TodoService interface
func NewMockTodoService ¶
func NewMockTodoService(ctrl *gomock.Controller) *MockTodoService
NewMockTodoService creates a new mock instance
func (*MockTodoService) Delete ¶
func (m *MockTodoService) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method
func (*MockTodoService) EXPECT ¶
func (m *MockTodoService) EXPECT() *MockTodoServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTodoServiceMockRecorder ¶
type MockTodoServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockTodoServiceMockRecorder is the mock recorder for MockTodoService
func (*MockTodoServiceMockRecorder) Add ¶
func (mr *MockTodoServiceMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockTodoServiceMockRecorder) Delete ¶
func (mr *MockTodoServiceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockTodoServiceMockRecorder) List ¶
func (mr *MockTodoServiceMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockTodoServiceMockRecorder) Update ¶
func (mr *MockTodoServiceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update
Click to show internal directories.
Click to hide internal directories.