// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/dumber/internal/application/port" mock "github.com/stretchr/testify/mock" ) // NewMockNotification creates a new instance of MockNotification. 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 NewMockNotification(t interface { mock.TestingT Cleanup(func()) }) *MockNotification { mock := &MockNotification{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockNotification is an autogenerated mock type for the Notification type type MockNotification struct { mock.Mock } type MockNotification_Expecter struct { mock *mock.Mock } func (_m *MockNotification) EXPECT() *MockNotification_Expecter { return &MockNotification_Expecter{mock: &_m.Mock} } // Clear provides a mock function for the type MockNotification func (_mock *MockNotification) Clear(ctx context.Context) { _mock.Called(ctx) return } // MockNotification_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear' type MockNotification_Clear_Call struct { *mock.Call } // Clear is a helper method to define mock.On call // - ctx context.Context func (_e *MockNotification_Expecter) Clear(ctx any) *MockNotification_Clear_Call { return &MockNotification_Clear_Call{Call: _e.mock.On("Clear", ctx)} } func (_c *MockNotification_Clear_Call) Run(run func(ctx context.Context)) *MockNotification_Clear_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } run( arg0, ) }) return _c } func (_c *MockNotification_Clear_Call) Return() *MockNotification_Clear_Call { _c.Call.Return() return _c } func (_c *MockNotification_Clear_Call) RunAndReturn(run func(ctx context.Context)) *MockNotification_Clear_Call { _c.Run(run) return _c } // Dismiss provides a mock function for the type MockNotification func (_mock *MockNotification) Dismiss(ctx context.Context, id port.NotificationID) { _mock.Called(ctx, id) return } // MockNotification_Dismiss_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dismiss' type MockNotification_Dismiss_Call struct { *mock.Call } // Dismiss is a helper method to define mock.On call // - ctx context.Context // - id port.NotificationID func (_e *MockNotification_Expecter) Dismiss(ctx any, id any) *MockNotification_Dismiss_Call { return &MockNotification_Dismiss_Call{Call: _e.mock.On("Dismiss", ctx, id)} } func (_c *MockNotification_Dismiss_Call) Run(run func(ctx context.Context, id port.NotificationID)) *MockNotification_Dismiss_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 port.NotificationID if args[1] != nil { arg1 = args[1].(port.NotificationID) } run( arg0, arg1, ) }) return _c } func (_c *MockNotification_Dismiss_Call) Return() *MockNotification_Dismiss_Call { _c.Call.Return() return _c } func (_c *MockNotification_Dismiss_Call) RunAndReturn(run func(ctx context.Context, id port.NotificationID)) *MockNotification_Dismiss_Call { _c.Run(run) return _c } // Show provides a mock function for the type MockNotification func (_mock *MockNotification) Show(ctx context.Context, message string, notifType port.NotificationType, durationMs int) port.NotificationID { ret := _mock.Called(ctx, message, notifType, durationMs) if len(ret) == 0 { panic("no return value specified for Show") } var r0 port.NotificationID if returnFunc, ok := ret.Get(0).(func(context.Context, string, port.NotificationType, int) port.NotificationID); ok { r0 = returnFunc(ctx, message, notifType, durationMs) } else { r0 = ret.Get(0).(port.NotificationID) } return r0 } // MockNotification_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show' type MockNotification_Show_Call struct { *mock.Call } // Show is a helper method to define mock.On call // - ctx context.Context // - message string // - notifType port.NotificationType // - durationMs int func (_e *MockNotification_Expecter) Show(ctx any, message any, notifType any, durationMs any) *MockNotification_Show_Call { return &MockNotification_Show_Call{Call: _e.mock.On("Show", ctx, message, notifType, durationMs)} } func (_c *MockNotification_Show_Call) Run(run func(ctx context.Context, message string, notifType port.NotificationType, durationMs int)) *MockNotification_Show_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } var arg2 port.NotificationType if args[2] != nil { arg2 = args[2].(port.NotificationType) } var arg3 int if args[3] != nil { arg3 = args[3].(int) } run( arg0, arg1, arg2, arg3, ) }) return _c } func (_c *MockNotification_Show_Call) Return(notificationID port.NotificationID) *MockNotification_Show_Call { _c.Call.Return(notificationID) return _c } func (_c *MockNotification_Show_Call) RunAndReturn(run func(ctx context.Context, message string, notifType port.NotificationType, durationMs int) port.NotificationID) *MockNotification_Show_Call { _c.Call.Return(run) return _c } // ShowZoom provides a mock function for the type MockNotification func (_mock *MockNotification) ShowZoom(ctx context.Context, zoomPercent int) port.NotificationID { ret := _mock.Called(ctx, zoomPercent) if len(ret) == 0 { panic("no return value specified for ShowZoom") } var r0 port.NotificationID if returnFunc, ok := ret.Get(0).(func(context.Context, int) port.NotificationID); ok { r0 = returnFunc(ctx, zoomPercent) } else { r0 = ret.Get(0).(port.NotificationID) } return r0 } // MockNotification_ShowZoom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowZoom' type MockNotification_ShowZoom_Call struct { *mock.Call } // ShowZoom is a helper method to define mock.On call // - ctx context.Context // - zoomPercent int func (_e *MockNotification_Expecter) ShowZoom(ctx any, zoomPercent any) *MockNotification_ShowZoom_Call { return &MockNotification_ShowZoom_Call{Call: _e.mock.On("ShowZoom", ctx, zoomPercent)} } func (_c *MockNotification_ShowZoom_Call) Run(run func(ctx context.Context, zoomPercent int)) *MockNotification_ShowZoom_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 int if args[1] != nil { arg1 = args[1].(int) } run( arg0, arg1, ) }) return _c } func (_c *MockNotification_ShowZoom_Call) Return(notificationID port.NotificationID) *MockNotification_ShowZoom_Call { _c.Call.Return(notificationID) return _c } func (_c *MockNotification_ShowZoom_Call) RunAndReturn(run func(ctx context.Context, zoomPercent int) port.NotificationID) *MockNotification_ShowZoom_Call { _c.Call.Return(run) return _c }