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// NewMockAccentKeyHandler creates a new instance of MockAccentKeyHandler. 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 NewMockAccentKeyHandler(t interface {
17 mock.TestingT
18 Cleanup(func())
19}) *MockAccentKeyHandler {
20 mock := &MockAccentKeyHandler{}
21 mock.Mock.Test(t)
22
23 t.Cleanup(func() { mock.AssertExpectations(t) })
24
25 return mock
26}
27
28// MockAccentKeyHandler is an autogenerated mock type for the AccentKeyHandler type
29type MockAccentKeyHandler struct {
30 mock.Mock
31}
32
33type MockAccentKeyHandler_Expecter struct {
34 mock *mock.Mock
35}
36
37func (_m *MockAccentKeyHandler) EXPECT() *MockAccentKeyHandler_Expecter {
38 return &MockAccentKeyHandler_Expecter{mock: &_m.Mock}
39}
40
41// OnKeyPressed provides a mock function for the type MockAccentKeyHandler
42func (_mock *MockAccentKeyHandler) OnKeyPressed(ctx context.Context, char rune, shiftHeld bool) bool {
43 ret := _mock.Called(ctx, char, shiftHeld)
44
45 if len(ret) == 0 {
46 panic("no return value specified for OnKeyPressed")
47 }
48
49 var r0 bool
50 if returnFunc, ok := ret.Get(0).(func(context.Context, rune, bool) bool); ok {
51 r0 = returnFunc(ctx, char, shiftHeld)
52 } else {
53 r0 = ret.Get(0).(bool)
54 }
55 return r0
56}
57
58// MockAccentKeyHandler_OnKeyPressed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnKeyPressed'
59type MockAccentKeyHandler_OnKeyPressed_Call struct {
60 *mock.Call
61}
62
63// OnKeyPressed is a helper method to define mock.On call
64// - ctx context.Context
65// - char rune
66// - shiftHeld bool
67func (_e *MockAccentKeyHandler_Expecter) OnKeyPressed(ctx any, char any, shiftHeld any) *MockAccentKeyHandler_OnKeyPressed_Call {
68 return &MockAccentKeyHandler_OnKeyPressed_Call{Call: _e.mock.On("OnKeyPressed", ctx, char, shiftHeld)}
69}
70
71func (_c *MockAccentKeyHandler_OnKeyPressed_Call) Run(run func(ctx context.Context, char rune, shiftHeld bool)) *MockAccentKeyHandler_OnKeyPressed_Call {
72 _c.Call.Run(func(args mock.Arguments) {
73 var arg0 context.Context
74 if args[0] != nil {
75 arg0 = args[0].(context.Context)
76 }
77 var arg1 rune
78 if args[1] != nil {
79 arg1 = args[1].(rune)
80 }
81 var arg2 bool
82 if args[2] != nil {
83 arg2 = args[2].(bool)
84 }
85 run(
86 arg0,
87 arg1,
88 arg2,
89 )
90 })
91 return _c
92}
93
94func (_c *MockAccentKeyHandler_OnKeyPressed_Call) Return(b bool) *MockAccentKeyHandler_OnKeyPressed_Call {
95 _c.Call.Return(b)
96 return _c
97}
98
99func (_c *MockAccentKeyHandler_OnKeyPressed_Call) RunAndReturn(run func(ctx context.Context, char rune, shiftHeld bool) bool) *MockAccentKeyHandler_OnKeyPressed_Call {
100 _c.Call.Return(run)
101 return _c
102}
103
104// OnKeyReleased provides a mock function for the type MockAccentKeyHandler
105func (_mock *MockAccentKeyHandler) OnKeyReleased(ctx context.Context, char rune) {
106 _mock.Called(ctx, char)
107 return
108}
109
110// MockAccentKeyHandler_OnKeyReleased_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnKeyReleased'
111type MockAccentKeyHandler_OnKeyReleased_Call struct {
112 *mock.Call
113}
114
115// OnKeyReleased is a helper method to define mock.On call
116// - ctx context.Context
117// - char rune
118func (_e *MockAccentKeyHandler_Expecter) OnKeyReleased(ctx any, char any) *MockAccentKeyHandler_OnKeyReleased_Call {
119 return &MockAccentKeyHandler_OnKeyReleased_Call{Call: _e.mock.On("OnKeyReleased", ctx, char)}
120}
121
122func (_c *MockAccentKeyHandler_OnKeyReleased_Call) Run(run func(ctx context.Context, char rune)) *MockAccentKeyHandler_OnKeyReleased_Call {
123 _c.Call.Run(func(args mock.Arguments) {
124 var arg0 context.Context
125 if args[0] != nil {
126 arg0 = args[0].(context.Context)
127 }
128 var arg1 rune
129 if args[1] != nil {
130 arg1 = args[1].(rune)
131 }
132 run(
133 arg0,
134 arg1,
135 )
136 })
137 return _c
138}
139
140func (_c *MockAccentKeyHandler_OnKeyReleased_Call) Return() *MockAccentKeyHandler_OnKeyReleased_Call {
141 _c.Call.Return()
142 return _c
143}
144
145func (_c *MockAccentKeyHandler_OnKeyReleased_Call) RunAndReturn(run func(ctx context.Context, char rune)) *MockAccentKeyHandler_OnKeyReleased_Call {
146 _c.Run(run)
147 return _c
148}
149
150// NewMockDownloadPreparer creates a new instance of MockDownloadPreparer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
151// The first argument is typically a *testing.T value.
152func NewMockDownloadPreparer(t interface {
153 mock.TestingT
154 Cleanup(func())
155}) *MockDownloadPreparer {
156 mock := &MockDownloadPreparer{}
157 mock.Mock.Test(t)
158
159 t.Cleanup(func() { mock.AssertExpectations(t) })
160
161 return mock
162}
163
164// MockDownloadPreparer is an autogenerated mock type for the DownloadPreparer type
165type MockDownloadPreparer struct {
166 mock.Mock
167}
168
169type MockDownloadPreparer_Expecter struct {
170 mock *mock.Mock
171}
172
173func (_m *MockDownloadPreparer) EXPECT() *MockDownloadPreparer_Expecter {
174 return &MockDownloadPreparer_Expecter{mock: &_m.Mock}
175}
176
177// Execute provides a mock function for the type MockDownloadPreparer
178func (_mock *MockDownloadPreparer) Execute(ctx context.Context, input port.DownloadPrepareInput) *port.DownloadPrepareOutput {
179 ret := _mock.Called(ctx, input)
180
181 if len(ret) == 0 {
182 panic("no return value specified for Execute")
183 }
184
185 var r0 *port.DownloadPrepareOutput
186 if returnFunc, ok := ret.Get(0).(func(context.Context, port.DownloadPrepareInput) *port.DownloadPrepareOutput); ok {
187 r0 = returnFunc(ctx, input)
188 } else {
189 if ret.Get(0) != nil {
190 r0 = ret.Get(0).(*port.DownloadPrepareOutput)
191 }
192 }
193 return r0
194}
195
196// MockDownloadPreparer_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
197type MockDownloadPreparer_Execute_Call struct {
198 *mock.Call
199}
200
201// Execute is a helper method to define mock.On call
202// - ctx context.Context
203// - input port.DownloadPrepareInput
204func (_e *MockDownloadPreparer_Expecter) Execute(ctx any, input any) *MockDownloadPreparer_Execute_Call {
205 return &MockDownloadPreparer_Execute_Call{Call: _e.mock.On("Execute", ctx, input)}
206}
207
208func (_c *MockDownloadPreparer_Execute_Call) Run(run func(ctx context.Context, input port.DownloadPrepareInput)) *MockDownloadPreparer_Execute_Call {
209 _c.Call.Run(func(args mock.Arguments) {
210 var arg0 context.Context
211 if args[0] != nil {
212 arg0 = args[0].(context.Context)
213 }
214 var arg1 port.DownloadPrepareInput
215 if args[1] != nil {
216 arg1 = args[1].(port.DownloadPrepareInput)
217 }
218 run(
219 arg0,
220 arg1,
221 )
222 })
223 return _c
224}
225
226func (_c *MockDownloadPreparer_Execute_Call) Return(downloadPrepareOutput *port.DownloadPrepareOutput) *MockDownloadPreparer_Execute_Call {
227 _c.Call.Return(downloadPrepareOutput)
228 return _c
229}
230
231func (_c *MockDownloadPreparer_Execute_Call) RunAndReturn(run func(ctx context.Context, input port.DownloadPrepareInput) *port.DownloadPrepareOutput) *MockDownloadPreparer_Execute_Call {
232 _c.Call.Return(run)
233 return _c
234}
235
236// NewMockAutoCopyConfig creates a new instance of MockAutoCopyConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
237// The first argument is typically a *testing.T value.
238func NewMockAutoCopyConfig(t interface {
239 mock.TestingT
240 Cleanup(func())
241}) *MockAutoCopyConfig {
242 mock := &MockAutoCopyConfig{}
243 mock.Mock.Test(t)
244
245 t.Cleanup(func() { mock.AssertExpectations(t) })
246
247 return mock
248}
249
250// MockAutoCopyConfig is an autogenerated mock type for the AutoCopyConfig type
251type MockAutoCopyConfig struct {
252 mock.Mock
253}
254
255type MockAutoCopyConfig_Expecter struct {
256 mock *mock.Mock
257}
258
259func (_m *MockAutoCopyConfig) EXPECT() *MockAutoCopyConfig_Expecter {
260 return &MockAutoCopyConfig_Expecter{mock: &_m.Mock}
261}
262
263// IsAutoCopyEnabled provides a mock function for the type MockAutoCopyConfig
264func (_mock *MockAutoCopyConfig) IsAutoCopyEnabled() bool {
265 ret := _mock.Called()
266
267 if len(ret) == 0 {
268 panic("no return value specified for IsAutoCopyEnabled")
269 }
270
271 var r0 bool
272 if returnFunc, ok := ret.Get(0).(func() bool); ok {
273 r0 = returnFunc()
274 } else {
275 r0 = ret.Get(0).(bool)
276 }
277 return r0
278}
279
280// MockAutoCopyConfig_IsAutoCopyEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoCopyEnabled'
281type MockAutoCopyConfig_IsAutoCopyEnabled_Call struct {
282 *mock.Call
283}
284
285// IsAutoCopyEnabled is a helper method to define mock.On call
286func (_e *MockAutoCopyConfig_Expecter) IsAutoCopyEnabled() *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
287 return &MockAutoCopyConfig_IsAutoCopyEnabled_Call{Call: _e.mock.On("IsAutoCopyEnabled")}
288}
289
290func (_c *MockAutoCopyConfig_IsAutoCopyEnabled_Call) Run(run func()) *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
291 _c.Call.Run(func(args mock.Arguments) {
292 run()
293 })
294 return _c
295}
296
297func (_c *MockAutoCopyConfig_IsAutoCopyEnabled_Call) Return(b bool) *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
298 _c.Call.Return(b)
299 return _c
300}
301
302func (_c *MockAutoCopyConfig_IsAutoCopyEnabled_Call) RunAndReturn(run func() bool) *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
303 _c.Call.Return(run)
304 return _c
305}