Documentation ¶
Index ¶
- type MockMaker
- func (_m *MockMaker) EXPECT() *MockMaker_Expecter
- func (_m *MockMaker) MakeCustomAction(config *types.CustomExpectationAction, sl services.ServiceLocator, ...) (action.Action, error)
- func (_m *MockMaker) MakeMetricsAction(config *types.MetricsExpectationAction, sl services.ServiceLocator, ...) (action.Action, error)
- func (_m *MockMaker) MakeOutputAction(config *types.OutputExpectationAction, sl services.ServiceLocator, ...) (action.Action, error)
- func (_m *MockMaker) MakeResponseAction(config *types.ResponseExpectationAction, sl services.ServiceLocator, ...) (action.Action, error)
- type MockMaker_Expecter
- func (_e *MockMaker_Expecter) MakeCustomAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeCustomAction_Call
- func (_e *MockMaker_Expecter) MakeMetricsAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeMetricsAction_Call
- func (_e *MockMaker_Expecter) MakeOutputAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeOutputAction_Call
- func (_e *MockMaker_Expecter) MakeResponseAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeResponseAction_Call
- type MockMaker_MakeCustomAction_Call
- type MockMaker_MakeMetricsAction_Call
- type MockMaker_MakeOutputAction_Call
- type MockMaker_MakeResponseAction_Call
- func (_c *MockMaker_MakeResponseAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeResponseAction_Call
- func (_c *MockMaker_MakeResponseAction_Call) Run(...) *MockMaker_MakeResponseAction_Call
- func (_c *MockMaker_MakeResponseAction_Call) RunAndReturn(...) *MockMaker_MakeResponseAction_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) MakeCustomAction ¶
func (_m *MockMaker) MakeCustomAction(config *types.CustomExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)
MakeCustomAction provides a mock function with given fields: config, sl, defaultTimeout
func (*MockMaker) MakeMetricsAction ¶
func (_m *MockMaker) MakeMetricsAction(config *types.MetricsExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)
MakeMetricsAction provides a mock function with given fields: config, sl, defaultTimeout
func (*MockMaker) MakeOutputAction ¶
func (_m *MockMaker) MakeOutputAction(config *types.OutputExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)
MakeOutputAction provides a mock function with given fields: config, sl, defaultTimeout
func (*MockMaker) MakeResponseAction ¶
func (_m *MockMaker) MakeResponseAction(config *types.ResponseExpectationAction, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)
MakeResponseAction provides a mock function with given fields: config, sl, defaultTimeout
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) MakeCustomAction ¶
func (_e *MockMaker_Expecter) MakeCustomAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeCustomAction_Call
MakeCustomAction is a helper method to define mock.On call
- config *types.CustomExpectationAction
- sl services.ServiceLocator
- defaultTimeout int
func (*MockMaker_Expecter) MakeMetricsAction ¶
func (_e *MockMaker_Expecter) MakeMetricsAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeMetricsAction_Call
MakeMetricsAction is a helper method to define mock.On call
- config *types.MetricsExpectationAction
- sl services.ServiceLocator
- defaultTimeout int
func (*MockMaker_Expecter) MakeOutputAction ¶
func (_e *MockMaker_Expecter) MakeOutputAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeOutputAction_Call
MakeOutputAction is a helper method to define mock.On call
- config *types.OutputExpectationAction
- sl services.ServiceLocator
- defaultTimeout int
func (*MockMaker_Expecter) MakeResponseAction ¶
func (_e *MockMaker_Expecter) MakeResponseAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeResponseAction_Call
MakeResponseAction is a helper method to define mock.On call
- config *types.ResponseExpectationAction
- sl services.ServiceLocator
- defaultTimeout int
type MockMaker_MakeCustomAction_Call ¶
MockMaker_MakeCustomAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeCustomAction'
func (*MockMaker_MakeCustomAction_Call) Return ¶
func (_c *MockMaker_MakeCustomAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeCustomAction_Call
func (*MockMaker_MakeCustomAction_Call) Run ¶
func (_c *MockMaker_MakeCustomAction_Call) Run(run func(config *types.CustomExpectationAction, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeCustomAction_Call
func (*MockMaker_MakeCustomAction_Call) RunAndReturn ¶
func (_c *MockMaker_MakeCustomAction_Call) RunAndReturn(run func(*types.CustomExpectationAction, services.ServiceLocator, int) (action.Action, error)) *MockMaker_MakeCustomAction_Call
type MockMaker_MakeMetricsAction_Call ¶
MockMaker_MakeMetricsAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeMetricsAction'
func (*MockMaker_MakeMetricsAction_Call) Return ¶
func (_c *MockMaker_MakeMetricsAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeMetricsAction_Call
func (*MockMaker_MakeMetricsAction_Call) Run ¶
func (_c *MockMaker_MakeMetricsAction_Call) Run(run func(config *types.MetricsExpectationAction, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeMetricsAction_Call
func (*MockMaker_MakeMetricsAction_Call) RunAndReturn ¶
func (_c *MockMaker_MakeMetricsAction_Call) RunAndReturn(run func(*types.MetricsExpectationAction, services.ServiceLocator, int) (action.Action, error)) *MockMaker_MakeMetricsAction_Call
type MockMaker_MakeOutputAction_Call ¶
MockMaker_MakeOutputAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeOutputAction'
func (*MockMaker_MakeOutputAction_Call) Return ¶
func (_c *MockMaker_MakeOutputAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeOutputAction_Call
func (*MockMaker_MakeOutputAction_Call) Run ¶
func (_c *MockMaker_MakeOutputAction_Call) Run(run func(config *types.OutputExpectationAction, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeOutputAction_Call
func (*MockMaker_MakeOutputAction_Call) RunAndReturn ¶
func (_c *MockMaker_MakeOutputAction_Call) RunAndReturn(run func(*types.OutputExpectationAction, services.ServiceLocator, int) (action.Action, error)) *MockMaker_MakeOutputAction_Call
type MockMaker_MakeResponseAction_Call ¶
MockMaker_MakeResponseAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeResponseAction'
func (*MockMaker_MakeResponseAction_Call) Return ¶
func (_c *MockMaker_MakeResponseAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeResponseAction_Call
func (*MockMaker_MakeResponseAction_Call) Run ¶
func (_c *MockMaker_MakeResponseAction_Call) Run(run func(config *types.ResponseExpectationAction, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeResponseAction_Call
func (*MockMaker_MakeResponseAction_Call) RunAndReturn ¶
func (_c *MockMaker_MakeResponseAction_Call) RunAndReturn(run func(*types.ResponseExpectationAction, services.ServiceLocator, int) (action.Action, error)) *MockMaker_MakeResponseAction_Call