Documentation
¶
Overview ¶
Package mock_example is a generated GoMock package.
Index ¶
- type MockExampleMock
- func (m *MockExampleMock) Any(ctx context.Context, in *example.Example, options ...string) (*example.Example, error)
- func (m *MockExampleMock) EXPECT() *MockExampleMockMockRecorder
- func (m *MockExampleMock) GetByInt(ctx context.Context, i int) (int, error)
- func (m *MockExampleMock) GetByString(ctx context.Context, str string) (string, error)
- func (m *MockExampleMock) GetWithVariadic(ctx context.Context, id string, options ...string) (int, error)
- func (m *MockExampleMock) SingleError(ctx context.Context, id string, options ...string) error
- func (m *MockExampleMock) WithDoAndReturn(ctx context.Context, in *example.Example) (*example.Example, error)
- func (m *MockExampleMock) WithStruct(ctx context.Context, in *example.Example) (*example.Example, error)
- type MockExampleMockMockRecorder
- func (mr *MockExampleMockMockRecorder) Any(ctx, in any, options ...any) *gomock.Call
- func (mr *MockExampleMockMockRecorder) GetByInt(ctx, i any) *gomock.Call
- func (mr *MockExampleMockMockRecorder) GetByString(ctx, str any) *gomock.Call
- func (mr *MockExampleMockMockRecorder) GetWithVariadic(ctx, id any, options ...any) *gomock.Call
- func (mr *MockExampleMockMockRecorder) SingleError(ctx, id any, options ...any) *gomock.Call
- func (mr *MockExampleMockMockRecorder) WithDoAndReturn(ctx, in any) *gomock.Call
- func (mr *MockExampleMockMockRecorder) WithStruct(ctx, in any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExampleMock ¶
type MockExampleMock struct {
// contains filtered or unexported fields
}
MockExampleMock is a mock of ExampleMock interface.
func NewMockExampleMock ¶
func NewMockExampleMock(ctrl *gomock.Controller) *MockExampleMock
NewMockExampleMock creates a new mock instance.
func (*MockExampleMock) Any ¶
func (m *MockExampleMock) Any(ctx context.Context, in *example.Example, options ...string) (*example.Example, error)
Any mocks base method.
func (*MockExampleMock) EXPECT ¶
func (m *MockExampleMock) EXPECT() *MockExampleMockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExampleMock) GetByString ¶
GetByString mocks base method.
func (*MockExampleMock) GetWithVariadic ¶
func (m *MockExampleMock) GetWithVariadic(ctx context.Context, id string, options ...string) (int, error)
GetWithVariadic mocks base method.
func (*MockExampleMock) SingleError ¶
SingleError mocks base method.
func (*MockExampleMock) WithDoAndReturn ¶
func (m *MockExampleMock) WithDoAndReturn(ctx context.Context, in *example.Example) (*example.Example, error)
WithDoAndReturn mocks base method.
func (*MockExampleMock) WithStruct ¶
func (m *MockExampleMock) WithStruct(ctx context.Context, in *example.Example) (*example.Example, error)
WithStruct mocks base method.
type MockExampleMockMockRecorder ¶
type MockExampleMockMockRecorder struct {
// contains filtered or unexported fields
}
MockExampleMockMockRecorder is the mock recorder for MockExampleMock.
func (*MockExampleMockMockRecorder) Any ¶
func (mr *MockExampleMockMockRecorder) Any(ctx, in any, options ...any) *gomock.Call
Any indicates an expected call of Any.
func (*MockExampleMockMockRecorder) GetByInt ¶
func (mr *MockExampleMockMockRecorder) GetByInt(ctx, i any) *gomock.Call
GetByInt indicates an expected call of GetByInt.
func (*MockExampleMockMockRecorder) GetByString ¶
func (mr *MockExampleMockMockRecorder) GetByString(ctx, str any) *gomock.Call
GetByString indicates an expected call of GetByString.
func (*MockExampleMockMockRecorder) GetWithVariadic ¶
func (mr *MockExampleMockMockRecorder) GetWithVariadic(ctx, id any, options ...any) *gomock.Call
GetWithVariadic indicates an expected call of GetWithVariadic.
func (*MockExampleMockMockRecorder) SingleError ¶
func (mr *MockExampleMockMockRecorder) SingleError(ctx, id any, options ...any) *gomock.Call
SingleError indicates an expected call of SingleError.
func (*MockExampleMockMockRecorder) WithDoAndReturn ¶
func (mr *MockExampleMockMockRecorder) WithDoAndReturn(ctx, in any) *gomock.Call
WithDoAndReturn indicates an expected call of WithDoAndReturn.
func (*MockExampleMockMockRecorder) WithStruct ¶
func (mr *MockExampleMockMockRecorder) WithStruct(ctx, in any) *gomock.Call
WithStruct indicates an expected call of WithStruct.