Documentation
¶
Index ¶
- type Event
- type Event_Expecter
- type Event_Handle_Call
- type Instance
- type Instance_Expecter
- type Instance_GetEvents_Call
- type Instance_Job_Call
- type Instance_Register_Call
- type Listener
- type Listener_Expecter
- type Listener_Handle_Call
- type Listener_Queue_Call
- type Listener_Signature_Call
- type Task
- type Task_Dispatch_Call
- type Task_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
Event is an autogenerated mock type for the Event type
func NewEvent ¶
NewEvent creates a new instance of Event. 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 (*Event) EXPECT ¶
func (_m *Event) EXPECT() *Event_Expecter
type Event_Expecter ¶
type Event_Expecter struct {
// contains filtered or unexported fields
}
func (*Event_Expecter) Handle ¶
func (_e *Event_Expecter) Handle(args interface{}) *Event_Handle_Call
Handle is a helper method to define mock.On call
- args []event.Arg
type Event_Handle_Call ¶
Event_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'
func (*Event_Handle_Call) Return ¶
func (_c *Event_Handle_Call) Return(_a0 []event.Arg, _a1 error) *Event_Handle_Call
func (*Event_Handle_Call) Run ¶
func (_c *Event_Handle_Call) Run(run func(args []event.Arg)) *Event_Handle_Call
func (*Event_Handle_Call) RunAndReturn ¶
func (_c *Event_Handle_Call) RunAndReturn(run func([]event.Arg) ([]event.Arg, error)) *Event_Handle_Call
type Instance ¶
Instance is an autogenerated mock type for the Instance type
func NewInstance ¶
NewInstance creates a new instance of Instance. 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 (*Instance) EXPECT ¶
func (_m *Instance) EXPECT() *Instance_Expecter
type Instance_Expecter ¶
type Instance_Expecter struct {
// contains filtered or unexported fields
}
func (*Instance_Expecter) GetEvents ¶
func (_e *Instance_Expecter) GetEvents() *Instance_GetEvents_Call
GetEvents is a helper method to define mock.On call
func (*Instance_Expecter) Job ¶
func (_e *Instance_Expecter) Job(_a0 interface{}, args interface{}) *Instance_Job_Call
Job is a helper method to define mock.On call
- _a0 event.Event
- args []event.Arg
func (*Instance_Expecter) Register ¶
func (_e *Instance_Expecter) Register(_a0 interface{}) *Instance_Register_Call
Register is a helper method to define mock.On call
- _a0 map[event.Event][]event.Listener
type Instance_GetEvents_Call ¶
Instance_GetEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvents'
func (*Instance_GetEvents_Call) Return ¶
func (_c *Instance_GetEvents_Call) Return(_a0 map[event.Event][]event.Listener) *Instance_GetEvents_Call
func (*Instance_GetEvents_Call) Run ¶
func (_c *Instance_GetEvents_Call) Run(run func()) *Instance_GetEvents_Call
func (*Instance_GetEvents_Call) RunAndReturn ¶
func (_c *Instance_GetEvents_Call) RunAndReturn(run func() map[event.Event][]event.Listener) *Instance_GetEvents_Call
type Instance_Job_Call ¶
Instance_Job_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Job'
func (*Instance_Job_Call) Return ¶
func (_c *Instance_Job_Call) Return(_a0 event.Task) *Instance_Job_Call
func (*Instance_Job_Call) Run ¶
func (_c *Instance_Job_Call) Run(run func(_a0 event.Event, args []event.Arg)) *Instance_Job_Call
func (*Instance_Job_Call) RunAndReturn ¶
func (_c *Instance_Job_Call) RunAndReturn(run func(event.Event, []event.Arg) event.Task) *Instance_Job_Call
type Instance_Register_Call ¶
Instance_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Instance_Register_Call) Return ¶
func (_c *Instance_Register_Call) Return() *Instance_Register_Call
func (*Instance_Register_Call) Run ¶
func (_c *Instance_Register_Call) Run(run func(_a0 map[event.Event][]event.Listener)) *Instance_Register_Call
func (*Instance_Register_Call) RunAndReturn ¶
func (_c *Instance_Register_Call) RunAndReturn(run func(map[event.Event][]event.Listener)) *Instance_Register_Call
type Listener ¶
Listener is an autogenerated mock type for the Listener type
func NewListener ¶
NewListener creates a new instance of Listener. 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 (*Listener) EXPECT ¶
func (_m *Listener) EXPECT() *Listener_Expecter
type Listener_Expecter ¶
type Listener_Expecter struct {
// contains filtered or unexported fields
}
func (*Listener_Expecter) Handle ¶
func (_e *Listener_Expecter) Handle(args ...interface{}) *Listener_Handle_Call
Handle is a helper method to define mock.On call
- args ...interface{}
func (*Listener_Expecter) Queue ¶
func (_e *Listener_Expecter) Queue(args ...interface{}) *Listener_Queue_Call
Queue is a helper method to define mock.On call
- args ...interface{}
func (*Listener_Expecter) Signature ¶
func (_e *Listener_Expecter) Signature() *Listener_Signature_Call
Signature is a helper method to define mock.On call
type Listener_Handle_Call ¶
Listener_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'
func (*Listener_Handle_Call) Return ¶
func (_c *Listener_Handle_Call) Return(_a0 error) *Listener_Handle_Call
func (*Listener_Handle_Call) Run ¶
func (_c *Listener_Handle_Call) Run(run func(args ...interface{})) *Listener_Handle_Call
func (*Listener_Handle_Call) RunAndReturn ¶
func (_c *Listener_Handle_Call) RunAndReturn(run func(...interface{}) error) *Listener_Handle_Call
type Listener_Queue_Call ¶
Listener_Queue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Queue'
func (*Listener_Queue_Call) Return ¶
func (_c *Listener_Queue_Call) Return(_a0 event.Queue) *Listener_Queue_Call
func (*Listener_Queue_Call) Run ¶
func (_c *Listener_Queue_Call) Run(run func(args ...interface{})) *Listener_Queue_Call
func (*Listener_Queue_Call) RunAndReturn ¶
func (_c *Listener_Queue_Call) RunAndReturn(run func(...interface{}) event.Queue) *Listener_Queue_Call
type Listener_Signature_Call ¶
Listener_Signature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signature'
func (*Listener_Signature_Call) Return ¶
func (_c *Listener_Signature_Call) Return(_a0 string) *Listener_Signature_Call
func (*Listener_Signature_Call) Run ¶
func (_c *Listener_Signature_Call) Run(run func()) *Listener_Signature_Call
func (*Listener_Signature_Call) RunAndReturn ¶
func (_c *Listener_Signature_Call) RunAndReturn(run func() string) *Listener_Signature_Call
type Task ¶
Task is an autogenerated mock type for the Task type
func NewTask ¶
NewTask creates a new instance of Task. 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 (*Task) EXPECT ¶
func (_m *Task) EXPECT() *Task_Expecter
type Task_Dispatch_Call ¶
Task_Dispatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dispatch'
func (*Task_Dispatch_Call) Return ¶
func (_c *Task_Dispatch_Call) Return(_a0 error) *Task_Dispatch_Call
func (*Task_Dispatch_Call) Run ¶
func (_c *Task_Dispatch_Call) Run(run func()) *Task_Dispatch_Call
func (*Task_Dispatch_Call) RunAndReturn ¶
func (_c *Task_Dispatch_Call) RunAndReturn(run func() error) *Task_Dispatch_Call
type Task_Expecter ¶
type Task_Expecter struct {
// contains filtered or unexported fields
}
func (*Task_Expecter) Dispatch ¶
func (_e *Task_Expecter) Dispatch() *Task_Dispatch_Call
Dispatch is a helper method to define mock.On call