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