Documentation ¶
Index ¶
- type MockAction
- type MockAction_Execute_Call
- func (_c *MockAction_Execute_Call) Return(_a0 bool, _a1 error) *MockAction_Execute_Call
- func (_c *MockAction_Execute_Call) Run(run func(ctx context.Context, runData runtime.Data)) *MockAction_Execute_Call
- func (_c *MockAction_Execute_Call) RunAndReturn(run func(context.Context, runtime.Data) (bool, error)) *MockAction_Execute_Call
- type MockAction_Expecter
- type MockAction_Timeout_Call
- type MockAction_When_Call
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_MakeAction_Call
- func (_c *MockMaker_MakeAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeAction_Call
- func (_c *MockMaker_MakeAction_Call) Run(run func(config types.Action, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeAction_Call
- func (_c *MockMaker_MakeAction_Call) RunAndReturn(run func(types.Action, services.ServiceLocator, int) (action.Action, error)) *MockMaker_MakeAction_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAction ¶
MockAction is an autogenerated mock type for the Action type
func NewMockAction ¶
func NewMockAction(t interface { mock.TestingT Cleanup(func()) }) *MockAction
NewMockAction creates a new instance of MockAction. 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 (*MockAction) EXPECT ¶
func (_m *MockAction) EXPECT() *MockAction_Expecter
func (*MockAction) Timeout ¶
func (_m *MockAction) Timeout() time.Duration
Timeout provides a mock function with given fields:
func (*MockAction) When ¶
func (_m *MockAction) When() action.When
When provides a mock function with given fields:
type MockAction_Execute_Call ¶
MockAction_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockAction_Execute_Call) Return ¶
func (_c *MockAction_Execute_Call) Return(_a0 bool, _a1 error) *MockAction_Execute_Call
func (*MockAction_Execute_Call) Run ¶
func (_c *MockAction_Execute_Call) Run(run func(ctx context.Context, runData runtime.Data)) *MockAction_Execute_Call
func (*MockAction_Execute_Call) RunAndReturn ¶
func (_c *MockAction_Execute_Call) RunAndReturn(run func(context.Context, runtime.Data) (bool, error)) *MockAction_Execute_Call
type MockAction_Expecter ¶
type MockAction_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAction_Expecter) Execute ¶
func (_e *MockAction_Expecter) Execute(ctx interface{}, runData interface{}) *MockAction_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- runData runtime.Data
func (*MockAction_Expecter) Timeout ¶
func (_e *MockAction_Expecter) Timeout() *MockAction_Timeout_Call
Timeout is a helper method to define mock.On call
func (*MockAction_Expecter) When ¶
func (_e *MockAction_Expecter) When() *MockAction_When_Call
When is a helper method to define mock.On call
type MockAction_Timeout_Call ¶
MockAction_Timeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Timeout'
func (*MockAction_Timeout_Call) Return ¶
func (_c *MockAction_Timeout_Call) Return(_a0 time.Duration) *MockAction_Timeout_Call
func (*MockAction_Timeout_Call) Run ¶
func (_c *MockAction_Timeout_Call) Run(run func()) *MockAction_Timeout_Call
func (*MockAction_Timeout_Call) RunAndReturn ¶
func (_c *MockAction_Timeout_Call) RunAndReturn(run func() time.Duration) *MockAction_Timeout_Call
type MockAction_When_Call ¶
MockAction_When_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'When'
func (*MockAction_When_Call) Return ¶
func (_c *MockAction_When_Call) Return(_a0 action.When) *MockAction_When_Call
func (*MockAction_When_Call) Run ¶
func (_c *MockAction_When_Call) Run(run func()) *MockAction_When_Call
func (*MockAction_When_Call) RunAndReturn ¶
func (_c *MockAction_When_Call) RunAndReturn(run func() action.When) *MockAction_When_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
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) MakeAction ¶
func (_e *MockMaker_Expecter) MakeAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeAction_Call
MakeAction is a helper method to define mock.On call
- config types.Action
- sl services.ServiceLocator
- defaultTimeout int
type MockMaker_MakeAction_Call ¶
MockMaker_MakeAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeAction'
func (*MockMaker_MakeAction_Call) Return ¶
func (_c *MockMaker_MakeAction_Call) Return(_a0 action.Action, _a1 error) *MockMaker_MakeAction_Call
func (*MockMaker_MakeAction_Call) Run ¶
func (_c *MockMaker_MakeAction_Call) Run(run func(config types.Action, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeAction_Call
func (*MockMaker_MakeAction_Call) RunAndReturn ¶
func (_c *MockMaker_MakeAction_Call) RunAndReturn(run func(types.Action, services.ServiceLocator, int) (action.Action, error)) *MockMaker_MakeAction_Call