// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/dumber/internal/domain/favicon" mock "github.com/stretchr/testify/mock" ) // NewMockFaviconInvalidators creates a new instance of MockFaviconInvalidators. 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 NewMockFaviconInvalidators(t interface { mock.TestingT Cleanup(func()) }) *MockFaviconInvalidators { mock := &MockFaviconInvalidators{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockFaviconInvalidators is an autogenerated mock type for the FaviconInvalidators type type MockFaviconInvalidators struct { mock.Mock } type MockFaviconInvalidators_Expecter struct { mock *mock.Mock } func (_m *MockFaviconInvalidators) EXPECT() *MockFaviconInvalidators_Expecter { return &MockFaviconInvalidators_Expecter{mock: &_m.Mock} } // InvalidateAll provides a mock function for the type MockFaviconInvalidators func (_mock *MockFaviconInvalidators) InvalidateAll(ctx context.Context, key favicon.Key) error { ret := _mock.Called(ctx, key) if len(ret) == 0 { panic("no return value specified for InvalidateAll") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, favicon.Key) error); ok { r0 = returnFunc(ctx, key) } else { r0 = ret.Error(0) } return r0 } // MockFaviconInvalidators_InvalidateAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidateAll' type MockFaviconInvalidators_InvalidateAll_Call struct { *mock.Call } // InvalidateAll is a helper method to define mock.On call // - ctx context.Context // - key favicon.Key func (_e *MockFaviconInvalidators_Expecter) InvalidateAll(ctx any, key any) *MockFaviconInvalidators_InvalidateAll_Call { return &MockFaviconInvalidators_InvalidateAll_Call{Call: _e.mock.On("InvalidateAll", ctx, key)} } func (_c *MockFaviconInvalidators_InvalidateAll_Call) Run(run func(ctx context.Context, key favicon.Key)) *MockFaviconInvalidators_InvalidateAll_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 favicon.Key if args[1] != nil { arg1 = args[1].(favicon.Key) } run( arg0, arg1, ) }) return _c } func (_c *MockFaviconInvalidators_InvalidateAll_Call) Return(err error) *MockFaviconInvalidators_InvalidateAll_Call { _c.Call.Return(err) return _c } func (_c *MockFaviconInvalidators_InvalidateAll_Call) RunAndReturn(run func(ctx context.Context, key favicon.Key) error) *MockFaviconInvalidators_InvalidateAll_Call { _c.Call.Return(run) return _c }