Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) AddTask(ctx context.Context, id model.UserID, title string) (*model.Task, error)
- func (m *MockService) AddUser(ctx context.Context, name, password string) (model.UserID, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetTaskList(ctx context.Context, id model.UserID) (model.TaskList, error)
- func (m *MockService) GetUser(ctx context.Context, name string) (*model.User, error)
- func (m *MockService) HealthCheck(ctx context.Context) error
- func (m *MockService) Login(ctx context.Context, name, password string) (string, error)
- func (m *MockService) ValidateToken(ctx context.Context, r *http.Request) (model.UserID, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) AddTask(ctx, id, title interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) AddUser(ctx, name, password interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetTaskList(ctx, id interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetUser(ctx, name interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) HealthCheck(ctx interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Login(ctx, name, password interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ValidateToken(ctx, r interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) AddTask ¶
func (m *MockService) AddTask(ctx context.Context, id model.UserID, title string) (*model.Task, error)
AddTask 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) GetTaskList ¶
GetTaskList mocks base method.
func (*MockService) HealthCheck ¶
func (m *MockService) HealthCheck(ctx context.Context) error
HealthCheck mocks base method.
func (*MockService) ValidateToken ¶ added in v0.0.19
ValidateToken mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) AddTask ¶
func (mr *MockServiceMockRecorder) AddTask(ctx, id, title interface{}) *gomock.Call
AddTask indicates an expected call of AddTask.
func (*MockServiceMockRecorder) AddUser ¶ added in v0.0.16
func (mr *MockServiceMockRecorder) AddUser(ctx, name, password interface{}) *gomock.Call
AddUser indicates an expected call of AddUser.
func (*MockServiceMockRecorder) GetTaskList ¶
func (mr *MockServiceMockRecorder) GetTaskList(ctx, id interface{}) *gomock.Call
GetTaskList indicates an expected call of GetTaskList.
func (*MockServiceMockRecorder) GetUser ¶ added in v0.0.17
func (mr *MockServiceMockRecorder) GetUser(ctx, name interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockServiceMockRecorder) HealthCheck ¶
func (mr *MockServiceMockRecorder) HealthCheck(ctx interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockServiceMockRecorder) Login ¶ added in v0.0.17
func (mr *MockServiceMockRecorder) Login(ctx, name, password interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockServiceMockRecorder) ValidateToken ¶ added in v0.0.19
func (mr *MockServiceMockRecorder) ValidateToken(ctx, r interface{}) *gomock.Call
ValidateToken indicates an expected call of ValidateToken.