1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8 "context"
9
10 "github.com/bnema/dumber/internal/application/port"
11 mock "github.com/stretchr/testify/mock"
12)
13
14// 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.
15// The first argument is typically a *testing.T value.
16func NewMockNotification(t interface {
17 mock.TestingT
18 Cleanup(func())
19}) *MockNotification {
20 mock := &MockNotification{}
21 mock.Mock.Test(t)
22
23 t.Cleanup(func() { mock.AssertExpectations(t) })
24
25 return mock
26}
27
28// MockNotification is an autogenerated mock type for the Notification type
29type MockNotification struct {
30 mock.Mock
31}
32
33type MockNotification_Expecter struct {
34 mock *mock.Mock
35}
36
37func (_m *MockNotification) EXPECT() *MockNotification_Expecter {
38 return &MockNotification_Expecter{mock: &_m.Mock}
39}
40
41// Clear provides a mock function for the type MockNotification
42func (_mock *MockNotification) Clear(ctx context.Context) {
43 _mock.Called(ctx)
44 return
45}
46
47// MockNotification_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
48type MockNotification_Clear_Call struct {
49 *mock.Call
50}
51
52// Clear is a helper method to define mock.On call
53// - ctx context.Context
54func (_e *MockNotification_Expecter) Clear(ctx any) *MockNotification_Clear_Call {
55 return &MockNotification_Clear_Call{Call: _e.mock.On("Clear", ctx)}
56}
57
58func (_c *MockNotification_Clear_Call) Run(run func(ctx context.Context)) *MockNotification_Clear_Call {
59 _c.Call.Run(func(args mock.Arguments) {
60 var arg0 context.Context
61 if args[0] != nil {
62 arg0 = args[0].(context.Context)
63 }
64 run(
65 arg0,
66 )
67 })
68 return _c
69}
70
71func (_c *MockNotification_Clear_Call) Return() *MockNotification_Clear_Call {
72 _c.Call.Return()
73 return _c
74}
75
76func (_c *MockNotification_Clear_Call) RunAndReturn(run func(ctx context.Context)) *MockNotification_Clear_Call {
77 _c.Run(run)
78 return _c
79}
80
81// Dismiss provides a mock function for the type MockNotification
82func (_mock *MockNotification) Dismiss(ctx context.Context, id port.NotificationID) {
83 _mock.Called(ctx, id)
84 return
85}
86
87// MockNotification_Dismiss_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dismiss'
88type MockNotification_Dismiss_Call struct {
89 *mock.Call
90}
91
92// Dismiss is a helper method to define mock.On call
93// - ctx context.Context
94// - id port.NotificationID
95func (_e *MockNotification_Expecter) Dismiss(ctx any, id any) *MockNotification_Dismiss_Call {
96 return &MockNotification_Dismiss_Call{Call: _e.mock.On("Dismiss", ctx, id)}
97}
98
99func (_c *MockNotification_Dismiss_Call) Run(run func(ctx context.Context, id port.NotificationID)) *MockNotification_Dismiss_Call {
100 _c.Call.Run(func(args mock.Arguments) {
101 var arg0 context.Context
102 if args[0] != nil {
103 arg0 = args[0].(context.Context)
104 }
105 var arg1 port.NotificationID
106 if args[1] != nil {
107 arg1 = args[1].(port.NotificationID)
108 }
109 run(
110 arg0,
111 arg1,
112 )
113 })
114 return _c
115}
116
117func (_c *MockNotification_Dismiss_Call) Return() *MockNotification_Dismiss_Call {
118 _c.Call.Return()
119 return _c
120}
121
122func (_c *MockNotification_Dismiss_Call) RunAndReturn(run func(ctx context.Context, id port.NotificationID)) *MockNotification_Dismiss_Call {
123 _c.Run(run)
124 return _c
125}
126
127// Show provides a mock function for the type MockNotification
128func (_mock *MockNotification) Show(ctx context.Context, message string, notifType port.NotificationType, durationMs int) port.NotificationID {
129 ret := _mock.Called(ctx, message, notifType, durationMs)
130
131 if len(ret) == 0 {
132 panic("no return value specified for Show")
133 }
134
135 var r0 port.NotificationID
136 if returnFunc, ok := ret.Get(0).(func(context.Context, string, port.NotificationType, int) port.NotificationID); ok {
137 r0 = returnFunc(ctx, message, notifType, durationMs)
138 } else {
139 r0 = ret.Get(0).(port.NotificationID)
140 }
141 return r0
142}
143
144// MockNotification_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
145type MockNotification_Show_Call struct {
146 *mock.Call
147}
148
149// Show is a helper method to define mock.On call
150// - ctx context.Context
151// - message string
152// - notifType port.NotificationType
153// - durationMs int
154func (_e *MockNotification_Expecter) Show(ctx any, message any, notifType any, durationMs any) *MockNotification_Show_Call {
155 return &MockNotification_Show_Call{Call: _e.mock.On("Show", ctx, message, notifType, durationMs)}
156}
157
158func (_c *MockNotification_Show_Call) Run(run func(ctx context.Context, message string, notifType port.NotificationType, durationMs int)) *MockNotification_Show_Call {
159 _c.Call.Run(func(args mock.Arguments) {
160 var arg0 context.Context
161 if args[0] != nil {
162 arg0 = args[0].(context.Context)
163 }
164 var arg1 string
165 if args[1] != nil {
166 arg1 = args[1].(string)
167 }
168 var arg2 port.NotificationType
169 if args[2] != nil {
170 arg2 = args[2].(port.NotificationType)
171 }
172 var arg3 int
173 if args[3] != nil {
174 arg3 = args[3].(int)
175 }
176 run(
177 arg0,
178 arg1,
179 arg2,
180 arg3,
181 )
182 })
183 return _c
184}
185
186func (_c *MockNotification_Show_Call) Return(notificationID port.NotificationID) *MockNotification_Show_Call {
187 _c.Call.Return(notificationID)
188 return _c
189}
190
191func (_c *MockNotification_Show_Call) RunAndReturn(run func(ctx context.Context, message string, notifType port.NotificationType, durationMs int) port.NotificationID) *MockNotification_Show_Call {
192 _c.Call.Return(run)
193 return _c
194}
195
196// ShowZoom provides a mock function for the type MockNotification
197func (_mock *MockNotification) ShowZoom(ctx context.Context, zoomPercent int) port.NotificationID {
198 ret := _mock.Called(ctx, zoomPercent)
199
200 if len(ret) == 0 {
201 panic("no return value specified for ShowZoom")
202 }
203
204 var r0 port.NotificationID
205 if returnFunc, ok := ret.Get(0).(func(context.Context, int) port.NotificationID); ok {
206 r0 = returnFunc(ctx, zoomPercent)
207 } else {
208 r0 = ret.Get(0).(port.NotificationID)
209 }
210 return r0
211}
212
213// MockNotification_ShowZoom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowZoom'
214type MockNotification_ShowZoom_Call struct {
215 *mock.Call
216}
217
218// ShowZoom is a helper method to define mock.On call
219// - ctx context.Context
220// - zoomPercent int
221func (_e *MockNotification_Expecter) ShowZoom(ctx any, zoomPercent any) *MockNotification_ShowZoom_Call {
222 return &MockNotification_ShowZoom_Call{Call: _e.mock.On("ShowZoom", ctx, zoomPercent)}
223}
224
225func (_c *MockNotification_ShowZoom_Call) Run(run func(ctx context.Context, zoomPercent int)) *MockNotification_ShowZoom_Call {
226 _c.Call.Run(func(args mock.Arguments) {
227 var arg0 context.Context
228 if args[0] != nil {
229 arg0 = args[0].(context.Context)
230 }
231 var arg1 int
232 if args[1] != nil {
233 arg1 = args[1].(int)
234 }
235 run(
236 arg0,
237 arg1,
238 )
239 })
240 return _c
241}
242
243func (_c *MockNotification_ShowZoom_Call) Return(notificationID port.NotificationID) *MockNotification_ShowZoom_Call {
244 _c.Call.Return(notificationID)
245 return _c
246}
247
248func (_c *MockNotification_ShowZoom_Call) RunAndReturn(run func(ctx context.Context, zoomPercent int) port.NotificationID) *MockNotification_ShowZoom_Call {
249 _c.Call.Return(run)
250 return _c
251}