Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
Worker is an autogenerated mock type for the Worker type
func NewWorker ¶
NewWorker creates a new instance of Worker. 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 (*Worker) EXPECT ¶
func (_m *Worker) EXPECT() *Worker_Expecter
type Worker_Do_Call ¶
Worker_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
func (*Worker_Do_Call) Return ¶
func (_c *Worker_Do_Call) Return() *Worker_Do_Call
func (*Worker_Do_Call) Run ¶
func (_c *Worker_Do_Call) Run(run func(_a0 worker.Request)) *Worker_Do_Call
func (*Worker_Do_Call) RunAndReturn ¶
func (_c *Worker_Do_Call) RunAndReturn(run func(worker.Request)) *Worker_Do_Call
type Worker_Expecter ¶
type Worker_Expecter struct {
// contains filtered or unexported fields
}
func (*Worker_Expecter) Do ¶
func (_e *Worker_Expecter) Do(_a0 interface{}) *Worker_Do_Call
Do is a helper method to define mock.On call
- _a0 worker.Request
Click to show internal directories.
Click to hide internal directories.