mock

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 5 Imported by: 0

Documentation

Overview

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 Func

type Func interface {
	Do(ctx context.Context) (done bool, err error)
}

Func allows mocking retry.Func.

type MockErrorAggregator

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

MockErrorAggregator is a mock of ErrorAggregator interface.

func NewMockErrorAggregator

func NewMockErrorAggregator(ctrl *gomock.Controller) *MockErrorAggregator

NewMockErrorAggregator creates a new mock instance.

func (*MockErrorAggregator) EXPECT

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

func (*MockErrorAggregator) Error

func (m *MockErrorAggregator) Error() error

Error mocks base method.

func (*MockErrorAggregator) Minor

func (m *MockErrorAggregator) Minor(arg0 error)

Minor mocks base method.

func (*MockErrorAggregator) Severe

func (m *MockErrorAggregator) Severe(arg0 error)

Severe mocks base method.

type MockErrorAggregatorFactory

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

MockErrorAggregatorFactory is a mock of ErrorAggregatorFactory interface.

func NewMockErrorAggregatorFactory

func NewMockErrorAggregatorFactory(ctrl *gomock.Controller) *MockErrorAggregatorFactory

NewMockErrorAggregatorFactory creates a new mock instance.

func (*MockErrorAggregatorFactory) EXPECT

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

func (*MockErrorAggregatorFactory) New

New mocks base method.

type MockErrorAggregatorFactoryMockRecorder

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

MockErrorAggregatorFactoryMockRecorder is the mock recorder for MockErrorAggregatorFactory.

func (*MockErrorAggregatorFactoryMockRecorder) New

New indicates an expected call of New.

type MockErrorAggregatorMockRecorder

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

MockErrorAggregatorMockRecorder is the mock recorder for MockErrorAggregator.

func (*MockErrorAggregatorMockRecorder) Error

Error indicates an expected call of Error.

func (*MockErrorAggregatorMockRecorder) Minor

func (mr *MockErrorAggregatorMockRecorder) Minor(arg0 interface{}) *gomock.Call

Minor indicates an expected call of Minor.

func (*MockErrorAggregatorMockRecorder) Severe

func (mr *MockErrorAggregatorMockRecorder) Severe(arg0 interface{}) *gomock.Call

Severe indicates an expected call of Severe.

type MockFunc

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

MockFunc is a mock of Func interface.

func NewMockFunc

func NewMockFunc(ctrl *gomock.Controller) *MockFunc

NewMockFunc creates a new mock instance.

func (*MockFunc) Do

func (m *MockFunc) Do(arg0 context.Context) (bool, error)

Do mocks base method.

func (*MockFunc) EXPECT

func (m *MockFunc) EXPECT() *MockFuncMockRecorder

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

type MockFuncMockRecorder

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

MockFuncMockRecorder is the mock recorder for MockFunc.

func (*MockFuncMockRecorder) Do

func (mr *MockFuncMockRecorder) Do(arg0 interface{}) *gomock.Call

Do indicates an expected call of Do.

type MockIntervalFactory

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

MockIntervalFactory is a mock of IntervalFactory interface.

func NewMockIntervalFactory

func NewMockIntervalFactory(ctrl *gomock.Controller) *MockIntervalFactory

NewMockIntervalFactory creates a new mock instance.

func (*MockIntervalFactory) EXPECT

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

func (*MockIntervalFactory) New

New mocks base method.

type MockIntervalFactoryMockRecorder

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

MockIntervalFactoryMockRecorder is the mock recorder for MockIntervalFactory.

func (*MockIntervalFactoryMockRecorder) New

func (mr *MockIntervalFactoryMockRecorder) New(arg0 interface{}) *gomock.Call

New indicates an expected call of New.

type MockWaitFunc

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

MockWaitFunc is a mock of WaitFunc interface.

func NewMockWaitFunc

func NewMockWaitFunc(ctrl *gomock.Controller) *MockWaitFunc

NewMockWaitFunc creates a new mock instance.

func (*MockWaitFunc) Do

Do mocks base method.

func (*MockWaitFunc) EXPECT

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

type MockWaitFuncMockRecorder

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

MockWaitFuncMockRecorder is the mock recorder for MockWaitFunc.

func (*MockWaitFuncMockRecorder) Do

func (mr *MockWaitFuncMockRecorder) Do(arg0 interface{}) *gomock.Call

Do indicates an expected call of Do.

type WaitFunc

type WaitFunc interface {
	Do(ctx context.Context) (context.Context, context.CancelFunc)
}

WaitFunc allows mocking retry.WaitFunc.

Jump to

Keyboard shortcuts

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