Documentation ¶
Index ¶
- type CompressorI
- type CompressorI_Compress_Call
- type CompressorI_Decompress_Call
- func (_c *CompressorI_Decompress_Call) Return(_a0 []byte, _a1 error) *CompressorI_Decompress_Call
- func (_c *CompressorI_Decompress_Call) Run(run func(_a0 []byte)) *CompressorI_Decompress_Call
- func (_c *CompressorI_Decompress_Call) RunAndReturn(run func([]byte) ([]byte, error)) *CompressorI_Decompress_Call
- type CompressorI_Expecter
- type Reporter
- type Reporter_Expecter
- type Reporter_ReportHit_Call
- type Reporter_ReportMiss_Call
- type TransformerI
- type TransformerI_BytesToValue_Call
- func (_c *TransformerI_BytesToValue_Call[T]) Return(_a0 T, _a1 error) *TransformerI_BytesToValue_Call[T]
- func (_c *TransformerI_BytesToValue_Call[T]) Run(run func(_a0 []byte)) *TransformerI_BytesToValue_Call[T]
- func (_c *TransformerI_BytesToValue_Call[T]) RunAndReturn(run func([]byte) (T, error)) *TransformerI_BytesToValue_Call[T]
- type TransformerI_Expecter
- type TransformerI_ValueToBytes_Call
- func (_c *TransformerI_ValueToBytes_Call[T]) Return(_a0 []byte, _a1 error) *TransformerI_ValueToBytes_Call[T]
- func (_c *TransformerI_ValueToBytes_Call[T]) Run(run func(_a0 T)) *TransformerI_ValueToBytes_Call[T]
- func (_c *TransformerI_ValueToBytes_Call[T]) RunAndReturn(run func(T) ([]byte, error)) *TransformerI_ValueToBytes_Call[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressorI ¶
CompressorI is an autogenerated mock type for the CompressorI type
func NewCompressorI ¶
func NewCompressorI(t interface { mock.TestingT Cleanup(func()) }) *CompressorI
NewCompressorI creates a new instance of CompressorI. 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 (*CompressorI) Compress ¶
func (_m *CompressorI) Compress(_a0 []byte) ([]byte, error)
Compress provides a mock function with given fields: _a0
func (*CompressorI) Decompress ¶
func (_m *CompressorI) Decompress(_a0 []byte) ([]byte, error)
Decompress provides a mock function with given fields: _a0
func (*CompressorI) EXPECT ¶
func (_m *CompressorI) EXPECT() *CompressorI_Expecter
type CompressorI_Compress_Call ¶
CompressorI_Compress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compress'
func (*CompressorI_Compress_Call) Return ¶
func (_c *CompressorI_Compress_Call) Return(_a0 []byte, _a1 error) *CompressorI_Compress_Call
func (*CompressorI_Compress_Call) Run ¶
func (_c *CompressorI_Compress_Call) Run(run func(_a0 []byte)) *CompressorI_Compress_Call
func (*CompressorI_Compress_Call) RunAndReturn ¶
func (_c *CompressorI_Compress_Call) RunAndReturn(run func([]byte) ([]byte, error)) *CompressorI_Compress_Call
type CompressorI_Decompress_Call ¶
CompressorI_Decompress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decompress'
func (*CompressorI_Decompress_Call) Return ¶
func (_c *CompressorI_Decompress_Call) Return(_a0 []byte, _a1 error) *CompressorI_Decompress_Call
func (*CompressorI_Decompress_Call) Run ¶
func (_c *CompressorI_Decompress_Call) Run(run func(_a0 []byte)) *CompressorI_Decompress_Call
func (*CompressorI_Decompress_Call) RunAndReturn ¶
func (_c *CompressorI_Decompress_Call) RunAndReturn(run func([]byte) ([]byte, error)) *CompressorI_Decompress_Call
type CompressorI_Expecter ¶
type CompressorI_Expecter struct {
// contains filtered or unexported fields
}
func (*CompressorI_Expecter) Compress ¶
func (_e *CompressorI_Expecter) Compress(_a0 interface{}) *CompressorI_Compress_Call
Compress is a helper method to define mock.On call
- _a0 []byte
func (*CompressorI_Expecter) Decompress ¶
func (_e *CompressorI_Expecter) Decompress(_a0 interface{}) *CompressorI_Decompress_Call
Decompress is a helper method to define mock.On call
- _a0 []byte
type Reporter ¶ added in v3.0.1
Reporter is an autogenerated mock type for the Reporter type
func NewReporter ¶ added in v3.0.1
NewReporter creates a new instance of Reporter. 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 (*Reporter) EXPECT ¶ added in v3.0.1
func (_m *Reporter) EXPECT() *Reporter_Expecter
func (*Reporter) ReportHit ¶ added in v3.0.1
func (_m *Reporter) ReportHit()
ReportHit provides a mock function with given fields:
func (*Reporter) ReportMiss ¶ added in v3.0.1
func (_m *Reporter) ReportMiss()
ReportMiss provides a mock function with given fields:
type Reporter_Expecter ¶ added in v3.0.1
type Reporter_Expecter struct {
// contains filtered or unexported fields
}
func (*Reporter_Expecter) ReportHit ¶ added in v3.0.1
func (_e *Reporter_Expecter) ReportHit() *Reporter_ReportHit_Call
ReportHit is a helper method to define mock.On call
func (*Reporter_Expecter) ReportMiss ¶ added in v3.0.1
func (_e *Reporter_Expecter) ReportMiss() *Reporter_ReportMiss_Call
ReportMiss is a helper method to define mock.On call
type Reporter_ReportHit_Call ¶ added in v3.0.1
Reporter_ReportHit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportHit'
func (*Reporter_ReportHit_Call) Return ¶ added in v3.0.1
func (_c *Reporter_ReportHit_Call) Return() *Reporter_ReportHit_Call
func (*Reporter_ReportHit_Call) Run ¶ added in v3.0.1
func (_c *Reporter_ReportHit_Call) Run(run func()) *Reporter_ReportHit_Call
func (*Reporter_ReportHit_Call) RunAndReturn ¶ added in v3.0.1
func (_c *Reporter_ReportHit_Call) RunAndReturn(run func()) *Reporter_ReportHit_Call
type Reporter_ReportMiss_Call ¶ added in v3.0.1
Reporter_ReportMiss_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportMiss'
func (*Reporter_ReportMiss_Call) Return ¶ added in v3.0.1
func (_c *Reporter_ReportMiss_Call) Return() *Reporter_ReportMiss_Call
func (*Reporter_ReportMiss_Call) Run ¶ added in v3.0.1
func (_c *Reporter_ReportMiss_Call) Run(run func()) *Reporter_ReportMiss_Call
func (*Reporter_ReportMiss_Call) RunAndReturn ¶ added in v3.0.1
func (_c *Reporter_ReportMiss_Call) RunAndReturn(run func()) *Reporter_ReportMiss_Call
type TransformerI ¶
TransformerI is an autogenerated mock type for the TransformerI type
func NewTransformerI ¶
func NewTransformerI[T interface{}](t interface { mock.TestingT Cleanup(func()) }) *TransformerI[T]
NewTransformerI creates a new instance of TransformerI. 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 (*TransformerI[T]) BytesToValue ¶
func (_m *TransformerI[T]) BytesToValue(_a0 []byte) (T, error)
BytesToValue provides a mock function with given fields: _a0
func (*TransformerI[T]) EXPECT ¶
func (_m *TransformerI[T]) EXPECT() *TransformerI_Expecter[T]
func (*TransformerI[T]) ValueToBytes ¶
func (_m *TransformerI[T]) ValueToBytes(_a0 T) ([]byte, error)
ValueToBytes provides a mock function with given fields: _a0
type TransformerI_BytesToValue_Call ¶
TransformerI_BytesToValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BytesToValue'
func (*TransformerI_BytesToValue_Call[T]) Return ¶
func (_c *TransformerI_BytesToValue_Call[T]) Return(_a0 T, _a1 error) *TransformerI_BytesToValue_Call[T]
func (*TransformerI_BytesToValue_Call[T]) Run ¶
func (_c *TransformerI_BytesToValue_Call[T]) Run(run func(_a0 []byte)) *TransformerI_BytesToValue_Call[T]
func (*TransformerI_BytesToValue_Call[T]) RunAndReturn ¶
func (_c *TransformerI_BytesToValue_Call[T]) RunAndReturn(run func([]byte) (T, error)) *TransformerI_BytesToValue_Call[T]
type TransformerI_Expecter ¶
type TransformerI_Expecter[T interface{}] struct {
// contains filtered or unexported fields
}
func (*TransformerI_Expecter[T]) BytesToValue ¶
func (_e *TransformerI_Expecter[T]) BytesToValue(_a0 interface{}) *TransformerI_BytesToValue_Call[T]
BytesToValue is a helper method to define mock.On call
- _a0 []byte
func (*TransformerI_Expecter[T]) ValueToBytes ¶
func (_e *TransformerI_Expecter[T]) ValueToBytes(_a0 interface{}) *TransformerI_ValueToBytes_Call[T]
ValueToBytes is a helper method to define mock.On call
- _a0 T
type TransformerI_ValueToBytes_Call ¶
TransformerI_ValueToBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValueToBytes'
func (*TransformerI_ValueToBytes_Call[T]) Return ¶
func (_c *TransformerI_ValueToBytes_Call[T]) Return(_a0 []byte, _a1 error) *TransformerI_ValueToBytes_Call[T]
func (*TransformerI_ValueToBytes_Call[T]) Run ¶
func (_c *TransformerI_ValueToBytes_Call[T]) Run(run func(_a0 T)) *TransformerI_ValueToBytes_Call[T]
func (*TransformerI_ValueToBytes_Call[T]) RunAndReturn ¶
func (_c *TransformerI_ValueToBytes_Call[T]) RunAndReturn(run func(T) ([]byte, error)) *TransformerI_ValueToBytes_Call[T]