mocks

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumperWriter

type DumperWriter struct {
	mock.Mock
}

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:

func (*DumperWriter) Write

func (_m *DumperWriter) Write(_a0 context.Context, _a1 []byte, _a2 string) error

Write provides a mock function with given fields: _a0, _a1, _a2

type DumperWriter_Close_Call

type DumperWriter_Close_Call struct {
	*mock.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 (*DumperWriter_Close_Call) Run

func (*DumperWriter_Close_Call) RunAndReturn

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

OutputPath is a helper method to define mock.On call

func (*DumperWriter_Expecter) WorkerNumber

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

type DumperWriter_Flush_Call struct {
	*mock.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 (*DumperWriter_Flush_Call) Run

func (*DumperWriter_Flush_Call) RunAndReturn

type DumperWriter_OutputPath_Call

type DumperWriter_OutputPath_Call struct {
	*mock.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 (*DumperWriter_OutputPath_Call) Run

func (*DumperWriter_OutputPath_Call) RunAndReturn

type DumperWriter_WorkerNumber_Call

type DumperWriter_WorkerNumber_Call struct {
	*mock.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 (*DumperWriter_WorkerNumber_Call) Run

func (*DumperWriter_WorkerNumber_Call) RunAndReturn

type DumperWriter_Write_Call

type DumperWriter_Write_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL