mock

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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) AddUser added in v0.0.16

func (m *MockService) AddUser(ctx context.Context, name, password string) (model.UserID, error)

AddUser 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

func (m *MockService) GetTaskList(ctx context.Context, id model.UserID) (model.TaskList, error)

GetTaskList mocks base method.

func (*MockService) GetUser added in v0.0.17

func (m *MockService) GetUser(ctx context.Context, name string) (*model.User, error)

GetUser mocks base method.

func (*MockService) HealthCheck

func (m *MockService) HealthCheck(ctx context.Context) error

HealthCheck mocks base method.

func (*MockService) Login added in v0.0.17

func (m *MockService) Login(ctx context.Context, name, password string) (string, error)

Login mocks base method.

func (*MockService) ValidateToken added in v0.0.19

func (m *MockService) ValidateToken(ctx context.Context, r *http.Request) (model.UserID, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL