Documentation ¶
Index ¶
- type DumperWriter
- func (_m *DumperWriter) Close(_a0 context.Context) error
- func (_m *DumperWriter) EXPECT() *DumperWriter_Expecter
- func (_m *DumperWriter) Flush(_a0 context.Context) error
- func (_m *DumperWriter) OutputPath() string
- func (_m *DumperWriter) WorkerNumber() int
- func (_m *DumperWriter) Write(_a0 context.Context, _a1 []byte, _a2 string) error
- type DumperWriter_Close_Call
- type DumperWriter_Expecter
- func (_e *DumperWriter_Expecter) Close(_a0 interface{}) *DumperWriter_Close_Call
- func (_e *DumperWriter_Expecter) Flush(_a0 interface{}) *DumperWriter_Flush_Call
- func (_e *DumperWriter_Expecter) OutputPath() *DumperWriter_OutputPath_Call
- func (_e *DumperWriter_Expecter) WorkerNumber() *DumperWriter_WorkerNumber_Call
- func (_e *DumperWriter_Expecter) Write(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DumperWriter_Write_Call
- type DumperWriter_Flush_Call
- type DumperWriter_OutputPath_Call
- type DumperWriter_WorkerNumber_Call
- type DumperWriter_Write_Call
- func (_c *DumperWriter_Write_Call) Return(_a0 error) *DumperWriter_Write_Call
- func (_c *DumperWriter_Write_Call) Run(run func(_a0 context.Context, _a1 []byte, _a2 string)) *DumperWriter_Write_Call
- func (_c *DumperWriter_Write_Call) RunAndReturn(run func(context.Context, []byte, string) error) *DumperWriter_Write_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DumperWriter ¶
DumperWriter is an autogenerated mock type for the DumperWriter type
func NewDumperWriter ¶
func NewDumperWriter(t mockConstructorTestingTNewDumperWriter) *DumperWriter
NewDumperWriter creates a new instance of DumperWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DumperWriter) Close ¶
func (_m *DumperWriter) Close(_a0 context.Context) error
Close provides a mock function with given fields: _a0
func (*DumperWriter) EXPECT ¶
func (_m *DumperWriter) EXPECT() *DumperWriter_Expecter
func (*DumperWriter) Flush ¶
func (_m *DumperWriter) Flush(_a0 context.Context) error
Flush provides a mock function with given fields: _a0
func (*DumperWriter) OutputPath ¶
func (_m *DumperWriter) OutputPath() string
OutputPath provides a mock function with given fields:
func (*DumperWriter) WorkerNumber ¶
func (_m *DumperWriter) WorkerNumber() int
WorkerNumber provides a mock function with given fields:
type DumperWriter_Close_Call ¶
DumperWriter_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*DumperWriter_Close_Call) Return ¶
func (_c *DumperWriter_Close_Call) Return(_a0 error) *DumperWriter_Close_Call
func (*DumperWriter_Close_Call) Run ¶
func (_c *DumperWriter_Close_Call) Run(run func(_a0 context.Context)) *DumperWriter_Close_Call
func (*DumperWriter_Close_Call) RunAndReturn ¶
func (_c *DumperWriter_Close_Call) RunAndReturn(run func(context.Context) error) *DumperWriter_Close_Call
type DumperWriter_Expecter ¶
type DumperWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*DumperWriter_Expecter) Close ¶
func (_e *DumperWriter_Expecter) Close(_a0 interface{}) *DumperWriter_Close_Call
Close is a helper method to define mock.On call
- _a0 context.Context
func (*DumperWriter_Expecter) Flush ¶
func (_e *DumperWriter_Expecter) Flush(_a0 interface{}) *DumperWriter_Flush_Call
Flush is a helper method to define mock.On call
- _a0 context.Context
func (*DumperWriter_Expecter) OutputPath ¶
func (_e *DumperWriter_Expecter) OutputPath() *DumperWriter_OutputPath_Call
OutputPath is a helper method to define mock.On call
func (*DumperWriter_Expecter) WorkerNumber ¶
func (_e *DumperWriter_Expecter) WorkerNumber() *DumperWriter_WorkerNumber_Call
WorkerNumber is a helper method to define mock.On call
func (*DumperWriter_Expecter) Write ¶
func (_e *DumperWriter_Expecter) Write(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DumperWriter_Write_Call
Write is a helper method to define mock.On call
- _a0 context.Context
- _a1 []byte
- _a2 string
type DumperWriter_Flush_Call ¶
DumperWriter_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*DumperWriter_Flush_Call) Return ¶
func (_c *DumperWriter_Flush_Call) Return(_a0 error) *DumperWriter_Flush_Call
func (*DumperWriter_Flush_Call) Run ¶
func (_c *DumperWriter_Flush_Call) Run(run func(_a0 context.Context)) *DumperWriter_Flush_Call
func (*DumperWriter_Flush_Call) RunAndReturn ¶
func (_c *DumperWriter_Flush_Call) RunAndReturn(run func(context.Context) error) *DumperWriter_Flush_Call
type DumperWriter_OutputPath_Call ¶
DumperWriter_OutputPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OutputPath'
func (*DumperWriter_OutputPath_Call) Return ¶
func (_c *DumperWriter_OutputPath_Call) Return(_a0 string) *DumperWriter_OutputPath_Call
func (*DumperWriter_OutputPath_Call) Run ¶
func (_c *DumperWriter_OutputPath_Call) Run(run func()) *DumperWriter_OutputPath_Call
func (*DumperWriter_OutputPath_Call) RunAndReturn ¶
func (_c *DumperWriter_OutputPath_Call) RunAndReturn(run func() string) *DumperWriter_OutputPath_Call
type DumperWriter_WorkerNumber_Call ¶
DumperWriter_WorkerNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkerNumber'
func (*DumperWriter_WorkerNumber_Call) Return ¶
func (_c *DumperWriter_WorkerNumber_Call) Return(_a0 int) *DumperWriter_WorkerNumber_Call
func (*DumperWriter_WorkerNumber_Call) Run ¶
func (_c *DumperWriter_WorkerNumber_Call) Run(run func()) *DumperWriter_WorkerNumber_Call
func (*DumperWriter_WorkerNumber_Call) RunAndReturn ¶
func (_c *DumperWriter_WorkerNumber_Call) RunAndReturn(run func() int) *DumperWriter_WorkerNumber_Call
type DumperWriter_Write_Call ¶
DumperWriter_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*DumperWriter_Write_Call) Return ¶
func (_c *DumperWriter_Write_Call) Return(_a0 error) *DumperWriter_Write_Call
func (*DumperWriter_Write_Call) Run ¶
func (_c *DumperWriter_Write_Call) Run(run func(_a0 context.Context, _a1 []byte, _a2 string)) *DumperWriter_Write_Call
func (*DumperWriter_Write_Call) RunAndReturn ¶
func (_c *DumperWriter_Write_Call) RunAndReturn(run func(context.Context, []byte, string) error) *DumperWriter_Write_Call