mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCSV

type MockCSV struct {
	mock.Mock
}

MockCSV is an autogenerated mock type for the CSV type

func NewMockCSV

func NewMockCSV(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCSV

NewMockCSV creates a new instance of MockCSV. 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 (*MockCSV) Decode

func (_mock *MockCSV) Decode(obj any) (csv.Warning, error)

Decode provides a mock function for the type MockCSV

func (*MockCSV) DecodeWithDecoder

func (_mock *MockCSV) DecodeWithDecoder(d csv.Decoder) error

DecodeWithDecoder provides a mock function for the type MockCSV

func (*MockCSV) EXPECT

func (_m *MockCSV) EXPECT() *MockCSV_Expecter

type MockCSV_DecodeWithDecoder_Call

type MockCSV_DecodeWithDecoder_Call struct {
	*mock.Call
}

MockCSV_DecodeWithDecoder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DecodeWithDecoder'

func (*MockCSV_DecodeWithDecoder_Call) Return

func (*MockCSV_DecodeWithDecoder_Call) Run

func (*MockCSV_DecodeWithDecoder_Call) RunAndReturn

type MockCSV_Decode_Call

type MockCSV_Decode_Call struct {
	*mock.Call
}

MockCSV_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'

func (*MockCSV_Decode_Call) Return

func (_c *MockCSV_Decode_Call) Return(warning csv.Warning, err error) *MockCSV_Decode_Call

func (*MockCSV_Decode_Call) Run

func (_c *MockCSV_Decode_Call) Run(run func(obj any)) *MockCSV_Decode_Call

func (*MockCSV_Decode_Call) RunAndReturn

func (_c *MockCSV_Decode_Call) RunAndReturn(run func(obj any) (csv.Warning, error)) *MockCSV_Decode_Call

type MockCSV_Expecter

type MockCSV_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockCSV_Expecter) Decode

func (_e *MockCSV_Expecter) Decode(obj interface{}) *MockCSV_Decode_Call

Decode is a helper method to define mock.On call

  • obj any

func (*MockCSV_Expecter) DecodeWithDecoder

func (_e *MockCSV_Expecter) DecodeWithDecoder(d interface{}) *MockCSV_DecodeWithDecoder_Call

DecodeWithDecoder is a helper method to define mock.On call

  • d csv.Decoder

type MockDecoder

type MockDecoder struct {
	mock.Mock
}

MockDecoder is an autogenerated mock type for the Decoder type

func NewMockDecoder

func NewMockDecoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDecoder

NewMockDecoder creates a new instance of MockDecoder. 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 (*MockDecoder) ContextGet

func (_mock *MockDecoder) ContextGet(key string) (any, bool)

ContextGet provides a mock function for the type MockDecoder

func (*MockDecoder) ContextSet

func (_mock *MockDecoder) ContextSet(key string, value any)

ContextSet provides a mock function for the type MockDecoder

func (*MockDecoder) EXPECT

func (_m *MockDecoder) EXPECT() *MockDecoder_Expecter

type MockDecoder_ContextGet_Call

type MockDecoder_ContextGet_Call struct {
	*mock.Call
}

MockDecoder_ContextGet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContextGet'

func (*MockDecoder_ContextGet_Call) Return

func (*MockDecoder_ContextGet_Call) Run

func (*MockDecoder_ContextGet_Call) RunAndReturn

func (_c *MockDecoder_ContextGet_Call) RunAndReturn(run func(key string) (any, bool)) *MockDecoder_ContextGet_Call

type MockDecoder_ContextSet_Call

type MockDecoder_ContextSet_Call struct {
	*mock.Call
}

MockDecoder_ContextSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContextSet'

func (*MockDecoder_ContextSet_Call) Return

func (*MockDecoder_ContextSet_Call) Run

func (_c *MockDecoder_ContextSet_Call) Run(run func(key string, value any)) *MockDecoder_ContextSet_Call

func (*MockDecoder_ContextSet_Call) RunAndReturn

func (_c *MockDecoder_ContextSet_Call) RunAndReturn(run func(key string, value any)) *MockDecoder_ContextSet_Call

type MockDecoder_Expecter

type MockDecoder_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockDecoder_Expecter) ContextGet

func (_e *MockDecoder_Expecter) ContextGet(key interface{}) *MockDecoder_ContextGet_Call

ContextGet is a helper method to define mock.On call

  • key string

func (*MockDecoder_Expecter) ContextSet

func (_e *MockDecoder_Expecter) ContextSet(key interface{}, value interface{}) *MockDecoder_ContextSet_Call

ContextSet is a helper method to define mock.On call

  • key string
  • value any

type MockDecoder_newInstance_Call

type MockDecoder_newInstance_Call struct {
	*mock.Call
}

MockDecoder_newInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'newInstance'

func (*MockDecoder_newInstance_Call) Return

func (*MockDecoder_newInstance_Call) Run

func (*MockDecoder_newInstance_Call) RunAndReturn

func (_c *MockDecoder_newInstance_Call) RunAndReturn(run func() (any, error)) *MockDecoder_newInstance_Call

type MockDecoder_saveInstance_Call

type MockDecoder_saveInstance_Call struct {
	*mock.Call
}

MockDecoder_saveInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'saveInstance'

func (*MockDecoder_saveInstance_Call) Return

func (*MockDecoder_saveInstance_Call) Run

func (*MockDecoder_saveInstance_Call) RunAndReturn

type MockDecoder_warningUnusedField_Call

type MockDecoder_warningUnusedField_Call struct {
	*mock.Call
}

MockDecoder_warningUnusedField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'warningUnusedField'

func (*MockDecoder_warningUnusedField_Call) Return

func (*MockDecoder_warningUnusedField_Call) Run

func (*MockDecoder_warningUnusedField_Call) RunAndReturn

Jump to

Keyboard shortcuts

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