Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRunner ¶
TaskRunner is an autogenerated mock type for the TaskRunner type
func NewTaskRunner ¶
func NewTaskRunner(t interface { mock.TestingT Cleanup(func()) }) *TaskRunner
NewTaskRunner creates a new instance of TaskRunner. 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 (*TaskRunner) EXPECT ¶
func (_m *TaskRunner) EXPECT() *TaskRunner_Expecter
type TaskRunner_Expecter ¶
type TaskRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*TaskRunner_Expecter) Run ¶
func (_e *TaskRunner_Expecter) Run(ctx interface{}) *TaskRunner_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
func (*TaskRunner_Expecter) RunTask ¶
func (_e *TaskRunner_Expecter) RunTask(task interface{}) *TaskRunner_RunTask_Call
RunTask is a helper method to define mock.On call
- task kernel.Module
type TaskRunner_RunTask_Call ¶
TaskRunner_RunTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunTask'
func (*TaskRunner_RunTask_Call) Return ¶
func (_c *TaskRunner_RunTask_Call) Return(_a0 error) *TaskRunner_RunTask_Call
func (*TaskRunner_RunTask_Call) Run ¶
func (_c *TaskRunner_RunTask_Call) Run(run func(task kernel.Module)) *TaskRunner_RunTask_Call
func (*TaskRunner_RunTask_Call) RunAndReturn ¶
func (_c *TaskRunner_RunTask_Call) RunAndReturn(run func(kernel.Module) error) *TaskRunner_RunTask_Call
type TaskRunner_Run_Call ¶
TaskRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*TaskRunner_Run_Call) Return ¶
func (_c *TaskRunner_Run_Call) Return(_a0 error) *TaskRunner_Run_Call
func (*TaskRunner_Run_Call) Run ¶
func (_c *TaskRunner_Run_Call) Run(run func(ctx context.Context)) *TaskRunner_Run_Call
func (*TaskRunner_Run_Call) RunAndReturn ¶
func (_c *TaskRunner_Run_Call) RunAndReturn(run func(context.Context) error) *TaskRunner_Run_Call
Click to show internal directories.
Click to hide internal directories.