mocks

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressorI

type CompressorI struct {
	mock.Mock
}

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

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

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

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

type Reporter struct {
	mock.Mock
}

Reporter is an autogenerated mock type for the Reporter type

func NewReporter added in v3.0.1

func NewReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reporter

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

type Reporter_ReportHit_Call struct {
	*mock.Call
}

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 (*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

type Reporter_ReportMiss_Call struct {
	*mock.Call
}

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 (*Reporter_ReportMiss_Call) Run added in v3.0.1

func (*Reporter_ReportMiss_Call) RunAndReturn added in v3.0.1

func (_c *Reporter_ReportMiss_Call) RunAndReturn(run func()) *Reporter_ReportMiss_Call

type TransformerI

type TransformerI[T interface{}] struct {
	mock.Mock
}

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

type TransformerI_BytesToValue_Call[T interface{}] struct {
	*mock.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 (*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

type TransformerI_ValueToBytes_Call[T interface{}] struct {
	*mock.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 (*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]

Jump to

Keyboard shortcuts

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