Documentation ¶
Index ¶
- type MockData
- type MockData_Expecter
- type MockData_Load_Call
- type MockData_Store_Call
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_MakeBackgroundContext_Call
- func (_c *MockMaker_MakeBackgroundContext_Call) Return(_a0 context.Context) *MockMaker_MakeBackgroundContext_Call
- func (_c *MockMaker_MakeBackgroundContext_Call) Run(run func()) *MockMaker_MakeBackgroundContext_Call
- func (_c *MockMaker_MakeBackgroundContext_Call) RunAndReturn(run func() context.Context) *MockMaker_MakeBackgroundContext_Call
- type MockMaker_MakeContextWithTimeout_Call
- func (_c *MockMaker_MakeContextWithTimeout_Call) Return(_a0 context.Context, _a1 context.CancelFunc) *MockMaker_MakeContextWithTimeout_Call
- func (_c *MockMaker_MakeContextWithTimeout_Call) Run(run func(ctx context.Context, timeout time.Duration)) *MockMaker_MakeContextWithTimeout_Call
- func (_c *MockMaker_MakeContextWithTimeout_Call) RunAndReturn(run func(context.Context, time.Duration) (context.Context, context.CancelFunc)) *MockMaker_MakeContextWithTimeout_Call
- type MockMaker_MakeData_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockData ¶
MockData is an autogenerated mock type for the Data type
func NewMockData ¶
NewMockData creates a new instance of MockData. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockData) EXPECT ¶
func (_m *MockData) EXPECT() *MockData_Expecter
type MockData_Expecter ¶
type MockData_Expecter struct {
// contains filtered or unexported fields
}
func (*MockData_Expecter) Load ¶
func (_e *MockData_Expecter) Load(key interface{}) *MockData_Load_Call
Load is a helper method to define mock.On call
- key string
func (*MockData_Expecter) Store ¶
func (_e *MockData_Expecter) Store(key interface{}, value interface{}) *MockData_Store_Call
Store is a helper method to define mock.On call
- key string
- value interface{}
type MockData_Load_Call ¶
MockData_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*MockData_Load_Call) Return ¶
func (_c *MockData_Load_Call) Return(_a0 interface{}, _a1 bool) *MockData_Load_Call
func (*MockData_Load_Call) Run ¶
func (_c *MockData_Load_Call) Run(run func(key string)) *MockData_Load_Call
func (*MockData_Load_Call) RunAndReturn ¶
func (_c *MockData_Load_Call) RunAndReturn(run func(string) (interface{}, bool)) *MockData_Load_Call
type MockData_Store_Call ¶
MockData_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*MockData_Store_Call) Return ¶
func (_c *MockData_Store_Call) Return(_a0 error) *MockData_Store_Call
func (*MockData_Store_Call) Run ¶
func (_c *MockData_Store_Call) Run(run func(key string, value interface{})) *MockData_Store_Call
func (*MockData_Store_Call) RunAndReturn ¶
func (_c *MockData_Store_Call) RunAndReturn(run func(string, interface{}) error) *MockData_Store_Call
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
func (*MockMaker) MakeBackgroundContext ¶
MakeBackgroundContext provides a mock function with given fields:
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) MakeBackgroundContext ¶
func (_e *MockMaker_Expecter) MakeBackgroundContext() *MockMaker_MakeBackgroundContext_Call
MakeBackgroundContext is a helper method to define mock.On call
func (*MockMaker_Expecter) MakeContextWithTimeout ¶
func (_e *MockMaker_Expecter) MakeContextWithTimeout(ctx interface{}, timeout interface{}) *MockMaker_MakeContextWithTimeout_Call
MakeContextWithTimeout is a helper method to define mock.On call
- ctx context.Context
- timeout time.Duration
func (*MockMaker_Expecter) MakeData ¶
func (_e *MockMaker_Expecter) MakeData() *MockMaker_MakeData_Call
MakeData is a helper method to define mock.On call
type MockMaker_MakeBackgroundContext_Call ¶
MockMaker_MakeBackgroundContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeBackgroundContext'
func (*MockMaker_MakeBackgroundContext_Call) Return ¶
func (_c *MockMaker_MakeBackgroundContext_Call) Return(_a0 context.Context) *MockMaker_MakeBackgroundContext_Call
func (*MockMaker_MakeBackgroundContext_Call) Run ¶
func (_c *MockMaker_MakeBackgroundContext_Call) Run(run func()) *MockMaker_MakeBackgroundContext_Call
func (*MockMaker_MakeBackgroundContext_Call) RunAndReturn ¶
func (_c *MockMaker_MakeBackgroundContext_Call) RunAndReturn(run func() context.Context) *MockMaker_MakeBackgroundContext_Call
type MockMaker_MakeContextWithTimeout_Call ¶
MockMaker_MakeContextWithTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeContextWithTimeout'
func (*MockMaker_MakeContextWithTimeout_Call) Return ¶
func (_c *MockMaker_MakeContextWithTimeout_Call) Return(_a0 context.Context, _a1 context.CancelFunc) *MockMaker_MakeContextWithTimeout_Call
func (*MockMaker_MakeContextWithTimeout_Call) Run ¶
func (_c *MockMaker_MakeContextWithTimeout_Call) Run(run func(ctx context.Context, timeout time.Duration)) *MockMaker_MakeContextWithTimeout_Call
func (*MockMaker_MakeContextWithTimeout_Call) RunAndReturn ¶
func (_c *MockMaker_MakeContextWithTimeout_Call) RunAndReturn(run func(context.Context, time.Duration) (context.Context, context.CancelFunc)) *MockMaker_MakeContextWithTimeout_Call
type MockMaker_MakeData_Call ¶
MockMaker_MakeData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeData'
func (*MockMaker_MakeData_Call) Return ¶
func (_c *MockMaker_MakeData_Call) Return(_a0 runtime.Data) *MockMaker_MakeData_Call
func (*MockMaker_MakeData_Call) Run ¶
func (_c *MockMaker_MakeData_Call) Run(run func()) *MockMaker_MakeData_Call
func (*MockMaker_MakeData_Call) RunAndReturn ¶
func (_c *MockMaker_MakeData_Call) RunAndReturn(run func() runtime.Data) *MockMaker_MakeData_Call