mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

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 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) Increment

func (m *MockCounter) Increment(metric string)

Increment mocks base method

func (*MockCounter) Reset

func (m *MockCounter) Reset()

Reset mocks base method

func (*MockCounter) Stats

func (m *MockCounter) Stats(metrics ...string) map[string]uint32

Stats mocks base method

type MockCounterMockRecorder

type MockCounterMockRecorder struct {
	// contains filtered or unexported fields
}

MockCounterMockRecorder is the mock recorder for MockCounter

func (*MockCounterMockRecorder) Increment

func (mr *MockCounterMockRecorder) Increment(metric interface{}) *gomock.Call

Increment indicates an expected call of Increment

func (*MockCounterMockRecorder) Reset

func (mr *MockCounterMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset

func (*MockCounterMockRecorder) Stats

func (mr *MockCounterMockRecorder) Stats(metrics ...interface{}) *gomock.Call

Stats indicates an expected call of Stats

type MockRestrictor

type MockRestrictor struct {
	// contains filtered or unexported fields
}

MockRestrictor is a mock of Restrictor interface

func NewMockRestrictor

func NewMockRestrictor(ctrl *gomock.Controller) *MockRestrictor

NewMockRestrictor creates a new mock instance

func (*MockRestrictor) Check

func (m *MockRestrictor) Check(arg0 context.Context) (bool, error)

Check mocks base method

func (*MockRestrictor) Defer

func (m *MockRestrictor) Defer()

Defer mocks base method

func (*MockRestrictor) EXPECT

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

type MockRestrictorMockRecorder

type MockRestrictorMockRecorder struct {
	// contains filtered or unexported fields
}

MockRestrictorMockRecorder is the mock recorder for MockRestrictor

func (*MockRestrictorMockRecorder) Check

func (mr *MockRestrictorMockRecorder) Check(arg0 interface{}) *gomock.Call

Check indicates an expected call of Check

func (*MockRestrictorMockRecorder) Defer

func (mr *MockRestrictorMockRecorder) Defer() *gomock.Call

Defer indicates an expected call of Defer

type MockTimer

type MockTimer struct {
	// contains filtered or unexported fields
}

MockTimer is a mock of Timer interface

func NewMockTimer

func NewMockTimer(ctrl *gomock.Controller) *MockTimer

NewMockTimer creates a new mock instance

func (*MockTimer) EXPECT

func (m *MockTimer) EXPECT() *MockTimerMockRecorder

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

func (*MockTimer) Next

func (m *MockTimer) Next(arg0 error) time.Duration

Next mocks base method

func (*MockTimer) Reset

func (m *MockTimer) Reset()

Reset mocks base method

type MockTimerMockRecorder

type MockTimerMockRecorder struct {
	// contains filtered or unexported fields
}

MockTimerMockRecorder is the mock recorder for MockTimer

func (*MockTimerMockRecorder) Next

func (mr *MockTimerMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next

func (*MockTimerMockRecorder) Reset

func (mr *MockTimerMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset

Jump to

Keyboard shortcuts

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