// 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" ) // NewMockFaviconRefreshScheduler creates a new instance of MockFaviconRefreshScheduler. 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 NewMockFaviconRefreshScheduler(t interface { mock.TestingT Cleanup(func()) }) *MockFaviconRefreshScheduler { mock := &MockFaviconRefreshScheduler{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockFaviconRefreshScheduler is an autogenerated mock type for the FaviconRefreshScheduler type type MockFaviconRefreshScheduler struct { mock.Mock } type MockFaviconRefreshScheduler_Expecter struct { mock *mock.Mock } func (_m *MockFaviconRefreshScheduler) EXPECT() *MockFaviconRefreshScheduler_Expecter { return &MockFaviconRefreshScheduler_Expecter{mock: &_m.Mock} } // Schedule provides a mock function for the type MockFaviconRefreshScheduler func (_mock *MockFaviconRefreshScheduler) Schedule(ctx context.Context, key favicon.Key, work func(context.Context)) bool { ret := _mock.Called(ctx, key, work) if len(ret) == 0 { panic("no return value specified for Schedule") } var r0 bool if returnFunc, ok := ret.Get(0).(func(context.Context, favicon.Key, func(context.Context)) bool); ok { r0 = returnFunc(ctx, key, work) } else { r0 = ret.Get(0).(bool) } return r0 } // MockFaviconRefreshScheduler_Schedule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Schedule' type MockFaviconRefreshScheduler_Schedule_Call struct { *mock.Call } // Schedule is a helper method to define mock.On call // - ctx context.Context // - key favicon.Key // - work func(context.Context) func (_e *MockFaviconRefreshScheduler_Expecter) Schedule(ctx any, key any, work any) *MockFaviconRefreshScheduler_Schedule_Call { return &MockFaviconRefreshScheduler_Schedule_Call{Call: _e.mock.On("Schedule", ctx, key, work)} } func (_c *MockFaviconRefreshScheduler_Schedule_Call) Run(run func(ctx context.Context, key favicon.Key, work func(context.Context))) *MockFaviconRefreshScheduler_Schedule_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) } var arg2 func(context.Context) if args[2] != nil { arg2 = args[2].(func(context.Context)) } run( arg0, arg1, arg2, ) }) return _c } func (_c *MockFaviconRefreshScheduler_Schedule_Call) Return(b bool) *MockFaviconRefreshScheduler_Schedule_Call { _c.Call.Return(b) return _c } func (_c *MockFaviconRefreshScheduler_Schedule_Call) RunAndReturn(run func(ctx context.Context, key favicon.Key, work func(context.Context)) bool) *MockFaviconRefreshScheduler_Schedule_Call { _c.Call.Return(run) return _c }