Documentation ¶
Overview ¶
Package example is a generated GoMock package.
Index ¶
- Constants
- type GraphService
- type MockGraphService
- type MockGraphServiceCreateTodoCall
- func (c *MockGraphServiceCreateTodoCall) Do(f func(context.Context, model.NewTodo) (*model.Todo, error)) *MockGraphServiceCreateTodoCall
- func (c *MockGraphServiceCreateTodoCall) DoAndReturn(f func(context.Context, model.NewTodo) (*model.Todo, error)) *MockGraphServiceCreateTodoCall
- func (c *MockGraphServiceCreateTodoCall) Return(arg0 *model.Todo, arg1 error) *MockGraphServiceCreateTodoCall
- type MockGraphServiceMockRecorder
- type MockGraphServiceTodosCall
- func (c *MockGraphServiceTodosCall) Do(f func(context.Context) ([]*model.Todo, error)) *MockGraphServiceTodosCall
- func (c *MockGraphServiceTodosCall) DoAndReturn(f func(context.Context) ([]*model.Todo, error)) *MockGraphServiceTodosCall
- func (c *MockGraphServiceTodosCall) Return(arg0 []*model.Todo, arg1 error) *MockGraphServiceTodosCall
- type MockService
- type MockServiceMockRecorder
- type MockServiceUniqueIDCall
- func (c *MockServiceUniqueIDCall) Do(f func(context.Context, *TestReq) (*TestRes, error)) *MockServiceUniqueIDCall
- func (c *MockServiceUniqueIDCall) DoAndReturn(f func(context.Context, *TestReq) (*TestRes, error)) *MockServiceUniqueIDCall
- func (c *MockServiceUniqueIDCall) Return(arg0 *TestRes, arg1 error) *MockServiceUniqueIDCall
- type Service
- type TestReq
- type TestRes
Constants ¶
const ( // GraphService_CreateTodo_FullMethodName is the full name of the method [graphImpl.CreateTodo]. GraphService_CreateTodo_FullMethodName = "github.com/go-kod/kod-mono/internal/app/example/GraphService.CreateTodo" // GraphService_Todos_FullMethodName is the full name of the method [graphImpl.Todos]. GraphService_Todos_FullMethodName = "github.com/go-kod/kod-mono/internal/app/example/GraphService.Todos" // Service_UniqueID_FullMethodName is the full name of the method [component.UniqueID]. Service_UniqueID_FullMethodName = "github.com/go-kod/kod-mono/internal/app/example/Service.UniqueID" )
Full method names for components.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphService ¶
type GraphService interface { // Todos is implemented by [graphImpl.Todos] Todos(ctx context.Context) ([]*model.Todo, error) // CreateTodo is implemented by [graphImpl.CreateTodo] CreateTodo(ctx context.Context, input model.NewTodo) (*model.Todo, error) }
GraphService is implemented by [graphImpl], which can be mocked with NewMockGraphService.
type MockGraphService ¶
type MockGraphService struct {
// contains filtered or unexported fields
}
MockGraphService is a mock of GraphService interface.
func NewMockGraphService ¶
func NewMockGraphService(ctrl *gomock.Controller) *MockGraphService
NewMockGraphService creates a new mock instance.
func (*MockGraphService) CreateTodo ¶
func (m *MockGraphService) CreateTodo(ctx context.Context, input model.NewTodo) (*model.Todo, error)
CreateTodo mocks base method.
func (*MockGraphService) EXPECT ¶
func (m *MockGraphService) EXPECT() *MockGraphServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGraphServiceCreateTodoCall ¶
MockGraphServiceCreateTodoCall wrap *gomock.Call
func (*MockGraphServiceCreateTodoCall) Do ¶
func (c *MockGraphServiceCreateTodoCall) Do(f func(context.Context, model.NewTodo) (*model.Todo, error)) *MockGraphServiceCreateTodoCall
Do rewrite *gomock.Call.Do
func (*MockGraphServiceCreateTodoCall) DoAndReturn ¶
func (c *MockGraphServiceCreateTodoCall) DoAndReturn(f func(context.Context, model.NewTodo) (*model.Todo, error)) *MockGraphServiceCreateTodoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphServiceCreateTodoCall) Return ¶
func (c *MockGraphServiceCreateTodoCall) Return(arg0 *model.Todo, arg1 error) *MockGraphServiceCreateTodoCall
Return rewrite *gomock.Call.Return
type MockGraphServiceMockRecorder ¶
type MockGraphServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphServiceMockRecorder is the mock recorder for MockGraphService.
func (*MockGraphServiceMockRecorder) CreateTodo ¶
func (mr *MockGraphServiceMockRecorder) CreateTodo(ctx, input any) *MockGraphServiceCreateTodoCall
CreateTodo indicates an expected call of CreateTodo.
func (*MockGraphServiceMockRecorder) Todos ¶
func (mr *MockGraphServiceMockRecorder) Todos(ctx any) *MockGraphServiceTodosCall
Todos indicates an expected call of Todos.
type MockGraphServiceTodosCall ¶
MockGraphServiceTodosCall wrap *gomock.Call
func (*MockGraphServiceTodosCall) Do ¶
func (c *MockGraphServiceTodosCall) Do(f func(context.Context) ([]*model.Todo, error)) *MockGraphServiceTodosCall
Do rewrite *gomock.Call.Do
func (*MockGraphServiceTodosCall) DoAndReturn ¶
func (c *MockGraphServiceTodosCall) DoAndReturn(f func(context.Context) ([]*model.Todo, error)) *MockGraphServiceTodosCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphServiceTodosCall) Return ¶
func (c *MockGraphServiceTodosCall) Return(arg0 []*model.Todo, arg1 error) *MockGraphServiceTodosCall
Return rewrite *gomock.Call.Return
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) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) UniqueID ¶
func (mr *MockServiceMockRecorder) UniqueID(ctx, req any) *MockServiceUniqueIDCall
UniqueID indicates an expected call of UniqueID.
type MockServiceUniqueIDCall ¶
MockServiceUniqueIDCall wrap *gomock.Call
func (*MockServiceUniqueIDCall) Do ¶
func (c *MockServiceUniqueIDCall) Do(f func(context.Context, *TestReq) (*TestRes, error)) *MockServiceUniqueIDCall
Do rewrite *gomock.Call.Do
func (*MockServiceUniqueIDCall) DoAndReturn ¶
func (c *MockServiceUniqueIDCall) DoAndReturn(f func(context.Context, *TestReq) (*TestRes, error)) *MockServiceUniqueIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceUniqueIDCall) Return ¶
func (c *MockServiceUniqueIDCall) Return(arg0 *TestRes, arg1 error) *MockServiceUniqueIDCall
Return rewrite *gomock.Call.Return