Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter is an autogenerated mock type for the Filter type
func NewFilter ¶ added in v1.15.1
NewFilter creates a new instance of Filter. 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 (*Filter) EXPECT ¶ added in v1.15.1
func (_m *Filter) EXPECT() *Filter_Expecter
type Filter_Add_Call ¶ added in v1.15.1
Filter_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Filter_Add_Call) Return ¶ added in v1.15.1
func (_c *Filter_Add_Call) Return(evicted bool) *Filter_Add_Call
func (*Filter_Add_Call) Run ¶ added in v1.15.1
func (_c *Filter_Add_Call) Run(run func(ctx context.Context, id []byte)) *Filter_Add_Call
func (*Filter_Add_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Filter_Add_Call) RunAndReturn(run func(context.Context, []byte) bool) *Filter_Add_Call
type Filter_Contains_Call ¶ added in v1.15.1
Filter_Contains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Contains'
func (*Filter_Contains_Call) Return ¶ added in v1.15.1
func (_c *Filter_Contains_Call) Return(_a0 bool) *Filter_Contains_Call
func (*Filter_Contains_Call) Run ¶ added in v1.15.1
func (_c *Filter_Contains_Call) Run(run func(ctx context.Context, id []byte)) *Filter_Contains_Call
func (*Filter_Contains_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Filter_Contains_Call) RunAndReturn(run func(context.Context, []byte) bool) *Filter_Contains_Call
type Filter_Expecter ¶ added in v1.15.1
type Filter_Expecter struct {
// contains filtered or unexported fields
}
func (*Filter_Expecter) Add ¶ added in v1.15.1
func (_e *Filter_Expecter) Add(ctx interface{}, id interface{}) *Filter_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- id []byte
func (*Filter_Expecter) Contains ¶ added in v1.15.1
func (_e *Filter_Expecter) Contains(ctx interface{}, id interface{}) *Filter_Contains_Call
Contains is a helper method to define mock.On call
- ctx context.Context
- id []byte
Click to show internal directories.
Click to hide internal directories.