Documentation
¶
Index ¶
- type MockCSV
- type MockCSV_DecodeWithDecoder_Call
- func (_c *MockCSV_DecodeWithDecoder_Call) Return(err error) *MockCSV_DecodeWithDecoder_Call
- func (_c *MockCSV_DecodeWithDecoder_Call) Run(run func(d csv.Decoder)) *MockCSV_DecodeWithDecoder_Call
- func (_c *MockCSV_DecodeWithDecoder_Call) RunAndReturn(run func(d csv.Decoder) error) *MockCSV_DecodeWithDecoder_Call
- type MockCSV_Decode_Call
- type MockCSV_Expecter
- type MockDecoder
- type MockDecoder_ContextGet_Call
- func (_c *MockDecoder_ContextGet_Call) Return(value any, found bool) *MockDecoder_ContextGet_Call
- func (_c *MockDecoder_ContextGet_Call) Run(run func(key string)) *MockDecoder_ContextGet_Call
- func (_c *MockDecoder_ContextGet_Call) RunAndReturn(run func(key string) (any, bool)) *MockDecoder_ContextGet_Call
- type MockDecoder_ContextSet_Call
- type MockDecoder_Expecter
- type MockDecoder_newInstance_Call
- type MockDecoder_saveInstance_Call
- type MockDecoder_warningUnusedField_Call
- func (_c *MockDecoder_warningUnusedField_Call) Return(err error) *MockDecoder_warningUnusedField_Call
- func (_c *MockDecoder_warningUnusedField_Call) Run(run func(warn csv.Warning)) *MockDecoder_warningUnusedField_Call
- func (_c *MockDecoder_warningUnusedField_Call) RunAndReturn(run func(warn csv.Warning) error) *MockDecoder_warningUnusedField_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCSV ¶
MockCSV is an autogenerated mock type for the CSV type
func NewMockCSV ¶
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) DecodeWithDecoder ¶
DecodeWithDecoder provides a mock function for the type MockCSV
func (*MockCSV) EXPECT ¶
func (_m *MockCSV) EXPECT() *MockCSV_Expecter
type MockCSV_DecodeWithDecoder_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 (_c *MockCSV_DecodeWithDecoder_Call) Return(err error) *MockCSV_DecodeWithDecoder_Call
func (*MockCSV_DecodeWithDecoder_Call) Run ¶
func (_c *MockCSV_DecodeWithDecoder_Call) Run(run func(d csv.Decoder)) *MockCSV_DecodeWithDecoder_Call
func (*MockCSV_DecodeWithDecoder_Call) RunAndReturn ¶
func (_c *MockCSV_DecodeWithDecoder_Call) RunAndReturn(run func(d csv.Decoder) error) *MockCSV_DecodeWithDecoder_Call
type MockCSV_Decode_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 ¶
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 ¶
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 (_c *MockDecoder_ContextGet_Call) Return(value any, found bool) *MockDecoder_ContextGet_Call
func (*MockDecoder_ContextGet_Call) Run ¶
func (_c *MockDecoder_ContextGet_Call) Run(run func(key string)) *MockDecoder_ContextGet_Call
func (*MockDecoder_ContextGet_Call) RunAndReturn ¶
func (_c *MockDecoder_ContextGet_Call) RunAndReturn(run func(key string) (any, bool)) *MockDecoder_ContextGet_Call
type MockDecoder_ContextSet_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 (_c *MockDecoder_ContextSet_Call) Return() *MockDecoder_ContextSet_Call
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 ¶
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 (_c *MockDecoder_newInstance_Call) Return(v any, err error) *MockDecoder_newInstance_Call
func (*MockDecoder_newInstance_Call) Run ¶
func (_c *MockDecoder_newInstance_Call) Run(run func()) *MockDecoder_newInstance_Call
func (*MockDecoder_newInstance_Call) RunAndReturn ¶
func (_c *MockDecoder_newInstance_Call) RunAndReturn(run func() (any, error)) *MockDecoder_newInstance_Call
type MockDecoder_saveInstance_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 (_c *MockDecoder_saveInstance_Call) Return(err error) *MockDecoder_saveInstance_Call
func (*MockDecoder_saveInstance_Call) Run ¶
func (_c *MockDecoder_saveInstance_Call) Run(run func(v any)) *MockDecoder_saveInstance_Call
func (*MockDecoder_saveInstance_Call) RunAndReturn ¶
func (_c *MockDecoder_saveInstance_Call) RunAndReturn(run func(v any) error) *MockDecoder_saveInstance_Call
type MockDecoder_warningUnusedField_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 (_c *MockDecoder_warningUnusedField_Call) Return(err error) *MockDecoder_warningUnusedField_Call
func (*MockDecoder_warningUnusedField_Call) Run ¶
func (_c *MockDecoder_warningUnusedField_Call) Run(run func(warn csv.Warning)) *MockDecoder_warningUnusedField_Call
func (*MockDecoder_warningUnusedField_Call) RunAndReturn ¶
func (_c *MockDecoder_warningUnusedField_Call) RunAndReturn(run func(warn csv.Warning) error) *MockDecoder_warningUnusedField_Call