Documentation ¶
Overview ¶
Package mock_counter is a generated GoMock package.
Package mock_counter is a generated GoMock package.
Index ¶
- type MockCounter
- type MockCounterMockRecorder
- type MockCounterService
- func (m *MockCounterService) EXPECT() *MockCounterServiceMockRecorder
- func (m *MockCounterService) Get(ctx context.Context) (string, error)
- func (m *MockCounterService) SetDecrement(ctx context.Context, num string) error
- func (m *MockCounterService) SetIncrement(ctx context.Context, num string) error
- type MockCounterServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCounter ¶
type MockCounter struct {
// contains filtered or unexported fields
}
MockCounter is a mock of Counter interface.
func NewMockCounter ¶
func NewMockCounter(ctrl *gomock.Controller) *MockCounter
NewMockCounter creates a new mock instance.
func (*MockCounter) EXPECT ¶
func (m *MockCounter) EXPECT() *MockCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCounterMockRecorder ¶
type MockCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterMockRecorder is the mock recorder for MockCounter.
func (*MockCounterMockRecorder) Get ¶
func (mr *MockCounterMockRecorder) Get(ctx interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCounterMockRecorder) Set ¶
func (mr *MockCounterMockRecorder) Set(ctx, num interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockCounterService ¶
type MockCounterService struct {
// contains filtered or unexported fields
}
MockCounterService is a mock of CounterService interface.
func NewMockCounterService ¶
func NewMockCounterService(ctrl *gomock.Controller) *MockCounterService
NewMockCounterService creates a new mock instance.
func (*MockCounterService) EXPECT ¶
func (m *MockCounterService) EXPECT() *MockCounterServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCounterService) Get ¶
func (m *MockCounterService) Get(ctx context.Context) (string, error)
Get mocks base method.
func (*MockCounterService) SetDecrement ¶
func (m *MockCounterService) SetDecrement(ctx context.Context, num string) error
SetDecrement mocks base method.
func (*MockCounterService) SetIncrement ¶
func (m *MockCounterService) SetIncrement(ctx context.Context, num string) error
SetIncrement mocks base method.
type MockCounterServiceMockRecorder ¶
type MockCounterServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterServiceMockRecorder is the mock recorder for MockCounterService.
func (*MockCounterServiceMockRecorder) Get ¶
func (mr *MockCounterServiceMockRecorder) Get(ctx interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCounterServiceMockRecorder) SetDecrement ¶
func (mr *MockCounterServiceMockRecorder) SetDecrement(ctx, num interface{}) *gomock.Call
SetDecrement indicates an expected call of SetDecrement.
func (*MockCounterServiceMockRecorder) SetIncrement ¶
func (mr *MockCounterServiceMockRecorder) SetIncrement(ctx, num interface{}) *gomock.Call
SetIncrement indicates an expected call of SetIncrement.