mock_counter

package
v0.0.0-...-4eb6e80 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_counter is a generated GoMock package.

Package mock_counter is a generated GoMock package.

Index

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.

func (*MockCounter) Get

func (m *MockCounter) Get(ctx context.Context) (string, error)

Get mocks base method.

func (*MockCounter) Set

func (m *MockCounter) Set(ctx context.Context, num uint64) error

Set mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCounterService) Get

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.

Jump to

Keyboard shortcuts

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