detached ded032c

chore(mocks): upgrade mockery to v3 format

commit
ded032c3e11e7b8efae6c9f84981874261d1f658
author
brice · · 2025-12-18 22:29 UTC
committer
brice · · 2025-12-18 19:00 UTC
parent
eff419b
signature
unsigned
25 files · +17211 -15015
M .mockery.yaml +42 -33
@@ -1,42 +1,51 @@
1+template: testify
2+template-data:
3+ unroll-variadic: true
4+filename: mocks.go
15 packages:
6+ github.com/bnema/dumber/internal/application/port:
7+ config:
8+ dir: '{{.InterfaceDir}}/mocks'
9+ structname: Mock{{.InterfaceName}}
10+ pkgname: mocks
11+ interfaces:
12+ WebView: {}
13+ WebViewFactory: {}
14+ WebViewPool: {}
215 github.com/bnema/dumber/internal/domain/repository:
316 config:
4- dir: "{{.InterfaceDir}}/mocks"
5- filename: "mock_{{.InterfaceName | snakecase}}.go"
6- mockname: "Mock{{.InterfaceName}}"
7- outpkg: "mocks"
17+ dir: '{{.InterfaceDir}}/mocks'
18+ structname: Mock{{.InterfaceName}}
19+ pkgname: mocks
820 interfaces:
9- HistoryRepository:
10- FavoriteRepository:
11- FolderRepository:
12- TagRepository:
13- ZoomRepository:
14- ContentWhitelistRepository:
15- github.com/bnema/dumber/internal/application/port:
21+ ContentWhitelistRepository: {}
22+ FavoriteRepository: {}
23+ FolderRepository: {}
24+ HistoryRepository: {}
25+ TagRepository: {}
26+ ZoomRepository: {}
27+ github.com/bnema/dumber/internal/infrastructure/filtering:
1628 config:
17- dir: "{{.InterfaceDir}}/mocks"
18- filename: "mock_{{.InterfaceName | snakecase}}.go"
19- mockname: "Mock{{.InterfaceName}}"
20- outpkg: "mocks"
29+ dir: '{{.InterfaceDir}}/mocks'
30+ structname: Mock{{.InterfaceName}}
31+ pkgname: mocks
2132 interfaces:
22- WebView:
23- WebViewPool:
24- WebViewFactory:
33+ FilterDownloader: {}
34+ FilterStore: {}
2535 github.com/bnema/dumber/internal/ui/layout:
2636 config:
27- dir: "{{.InterfaceDir}}/mocks"
28- filename: "mock_{{.InterfaceName | snakecase}}.go"
29- mockname: "Mock{{.InterfaceName}}"
30- outpkg: "mocks"
37+ dir: '{{.InterfaceDir}}/mocks'
38+ structname: Mock{{.InterfaceName}}
39+ pkgname: mocks
3140 interfaces:
32- Widget:
33- PanedWidget:
34- BoxWidget:
35- OverlayWidget:
36- LabelWidget:
37- ButtonWidget:
38- ImageWidget:
39- ProgressBarWidget:
40- WidgetFactory:
41- PaneRenderer:
42- PaneViewFactory:
41+ BoxWidget: {}
42+ ButtonWidget: {}
43+ ImageWidget: {}
44+ LabelWidget: {}
45+ OverlayWidget: {}
46+ PaneRenderer: {}
47+ PaneViewFactory: {}
48+ PanedWidget: {}
49+ ProgressBarWidget: {}
50+ Widget: {}
51+ WidgetFactory: {}
D internal/application/port/mocks/mock_web_view.go +0 -924
@@ -1,924 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- port "github.com/bnema/dumber/internal/application/port"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockWebView is an autogenerated mock type for the WebView type
13-type MockWebView struct {
14- mock.Mock
15-}
16-
17-type MockWebView_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockWebView) EXPECT() *MockWebView_Expecter {
22- return &MockWebView_Expecter{mock: &_m.Mock}
23-}
24-
25-// CanGoBack provides a mock function with no fields
26-func (_m *MockWebView) CanGoBack() bool {
27- ret := _m.Called()
28-
29- if len(ret) == 0 {
30- panic("no return value specified for CanGoBack")
31- }
32-
33- var r0 bool
34- if rf, ok := ret.Get(0).(func() bool); ok {
35- r0 = rf()
36- } else {
37- r0 = ret.Get(0).(bool)
38- }
39-
40- return r0
41-}
42-
43-// MockWebView_CanGoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoBack'
44-type MockWebView_CanGoBack_Call struct {
45- *mock.Call
46-}
47-
48-// CanGoBack is a helper method to define mock.On call
49-func (_e *MockWebView_Expecter) CanGoBack() *MockWebView_CanGoBack_Call {
50- return &MockWebView_CanGoBack_Call{Call: _e.mock.On("CanGoBack")}
51-}
52-
53-func (_c *MockWebView_CanGoBack_Call) Run(run func()) *MockWebView_CanGoBack_Call {
54- _c.Call.Run(func(args mock.Arguments) {
55- run()
56- })
57- return _c
58-}
59-
60-func (_c *MockWebView_CanGoBack_Call) Return(_a0 bool) *MockWebView_CanGoBack_Call {
61- _c.Call.Return(_a0)
62- return _c
63-}
64-
65-func (_c *MockWebView_CanGoBack_Call) RunAndReturn(run func() bool) *MockWebView_CanGoBack_Call {
66- _c.Call.Return(run)
67- return _c
68-}
69-
70-// CanGoForward provides a mock function with no fields
71-func (_m *MockWebView) CanGoForward() bool {
72- ret := _m.Called()
73-
74- if len(ret) == 0 {
75- panic("no return value specified for CanGoForward")
76- }
77-
78- var r0 bool
79- if rf, ok := ret.Get(0).(func() bool); ok {
80- r0 = rf()
81- } else {
82- r0 = ret.Get(0).(bool)
83- }
84-
85- return r0
86-}
87-
88-// MockWebView_CanGoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoForward'
89-type MockWebView_CanGoForward_Call struct {
90- *mock.Call
91-}
92-
93-// CanGoForward is a helper method to define mock.On call
94-func (_e *MockWebView_Expecter) CanGoForward() *MockWebView_CanGoForward_Call {
95- return &MockWebView_CanGoForward_Call{Call: _e.mock.On("CanGoForward")}
96-}
97-
98-func (_c *MockWebView_CanGoForward_Call) Run(run func()) *MockWebView_CanGoForward_Call {
99- _c.Call.Run(func(args mock.Arguments) {
100- run()
101- })
102- return _c
103-}
104-
105-func (_c *MockWebView_CanGoForward_Call) Return(_a0 bool) *MockWebView_CanGoForward_Call {
106- _c.Call.Return(_a0)
107- return _c
108-}
109-
110-func (_c *MockWebView_CanGoForward_Call) RunAndReturn(run func() bool) *MockWebView_CanGoForward_Call {
111- _c.Call.Return(run)
112- return _c
113-}
114-
115-// Destroy provides a mock function with no fields
116-func (_m *MockWebView) Destroy() {
117- _m.Called()
118-}
119-
120-// MockWebView_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
121-type MockWebView_Destroy_Call struct {
122- *mock.Call
123-}
124-
125-// Destroy is a helper method to define mock.On call
126-func (_e *MockWebView_Expecter) Destroy() *MockWebView_Destroy_Call {
127- return &MockWebView_Destroy_Call{Call: _e.mock.On("Destroy")}
128-}
129-
130-func (_c *MockWebView_Destroy_Call) Run(run func()) *MockWebView_Destroy_Call {
131- _c.Call.Run(func(args mock.Arguments) {
132- run()
133- })
134- return _c
135-}
136-
137-func (_c *MockWebView_Destroy_Call) Return() *MockWebView_Destroy_Call {
138- _c.Call.Return()
139- return _c
140-}
141-
142-func (_c *MockWebView_Destroy_Call) RunAndReturn(run func()) *MockWebView_Destroy_Call {
143- _c.Run(run)
144- return _c
145-}
146-
147-// EstimatedProgress provides a mock function with no fields
148-func (_m *MockWebView) EstimatedProgress() float64 {
149- ret := _m.Called()
150-
151- if len(ret) == 0 {
152- panic("no return value specified for EstimatedProgress")
153- }
154-
155- var r0 float64
156- if rf, ok := ret.Get(0).(func() float64); ok {
157- r0 = rf()
158- } else {
159- r0 = ret.Get(0).(float64)
160- }
161-
162- return r0
163-}
164-
165-// MockWebView_EstimatedProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatedProgress'
166-type MockWebView_EstimatedProgress_Call struct {
167- *mock.Call
168-}
169-
170-// EstimatedProgress is a helper method to define mock.On call
171-func (_e *MockWebView_Expecter) EstimatedProgress() *MockWebView_EstimatedProgress_Call {
172- return &MockWebView_EstimatedProgress_Call{Call: _e.mock.On("EstimatedProgress")}
173-}
174-
175-func (_c *MockWebView_EstimatedProgress_Call) Run(run func()) *MockWebView_EstimatedProgress_Call {
176- _c.Call.Run(func(args mock.Arguments) {
177- run()
178- })
179- return _c
180-}
181-
182-func (_c *MockWebView_EstimatedProgress_Call) Return(_a0 float64) *MockWebView_EstimatedProgress_Call {
183- _c.Call.Return(_a0)
184- return _c
185-}
186-
187-func (_c *MockWebView_EstimatedProgress_Call) RunAndReturn(run func() float64) *MockWebView_EstimatedProgress_Call {
188- _c.Call.Return(run)
189- return _c
190-}
191-
192-// GetZoomLevel provides a mock function with no fields
193-func (_m *MockWebView) GetZoomLevel() float64 {
194- ret := _m.Called()
195-
196- if len(ret) == 0 {
197- panic("no return value specified for GetZoomLevel")
198- }
199-
200- var r0 float64
201- if rf, ok := ret.Get(0).(func() float64); ok {
202- r0 = rf()
203- } else {
204- r0 = ret.Get(0).(float64)
205- }
206-
207- return r0
208-}
209-
210-// MockWebView_GetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetZoomLevel'
211-type MockWebView_GetZoomLevel_Call struct {
212- *mock.Call
213-}
214-
215-// GetZoomLevel is a helper method to define mock.On call
216-func (_e *MockWebView_Expecter) GetZoomLevel() *MockWebView_GetZoomLevel_Call {
217- return &MockWebView_GetZoomLevel_Call{Call: _e.mock.On("GetZoomLevel")}
218-}
219-
220-func (_c *MockWebView_GetZoomLevel_Call) Run(run func()) *MockWebView_GetZoomLevel_Call {
221- _c.Call.Run(func(args mock.Arguments) {
222- run()
223- })
224- return _c
225-}
226-
227-func (_c *MockWebView_GetZoomLevel_Call) Return(_a0 float64) *MockWebView_GetZoomLevel_Call {
228- _c.Call.Return(_a0)
229- return _c
230-}
231-
232-func (_c *MockWebView_GetZoomLevel_Call) RunAndReturn(run func() float64) *MockWebView_GetZoomLevel_Call {
233- _c.Call.Return(run)
234- return _c
235-}
236-
237-// GoBack provides a mock function with given fields: ctx
238-func (_m *MockWebView) GoBack(ctx context.Context) error {
239- ret := _m.Called(ctx)
240-
241- if len(ret) == 0 {
242- panic("no return value specified for GoBack")
243- }
244-
245- var r0 error
246- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
247- r0 = rf(ctx)
248- } else {
249- r0 = ret.Error(0)
250- }
251-
252- return r0
253-}
254-
255-// MockWebView_GoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoBack'
256-type MockWebView_GoBack_Call struct {
257- *mock.Call
258-}
259-
260-// GoBack is a helper method to define mock.On call
261-// - ctx context.Context
262-func (_e *MockWebView_Expecter) GoBack(ctx interface{}) *MockWebView_GoBack_Call {
263- return &MockWebView_GoBack_Call{Call: _e.mock.On("GoBack", ctx)}
264-}
265-
266-func (_c *MockWebView_GoBack_Call) Run(run func(ctx context.Context)) *MockWebView_GoBack_Call {
267- _c.Call.Run(func(args mock.Arguments) {
268- run(args[0].(context.Context))
269- })
270- return _c
271-}
272-
273-func (_c *MockWebView_GoBack_Call) Return(_a0 error) *MockWebView_GoBack_Call {
274- _c.Call.Return(_a0)
275- return _c
276-}
277-
278-func (_c *MockWebView_GoBack_Call) RunAndReturn(run func(context.Context) error) *MockWebView_GoBack_Call {
279- _c.Call.Return(run)
280- return _c
281-}
282-
283-// GoForward provides a mock function with given fields: ctx
284-func (_m *MockWebView) GoForward(ctx context.Context) error {
285- ret := _m.Called(ctx)
286-
287- if len(ret) == 0 {
288- panic("no return value specified for GoForward")
289- }
290-
291- var r0 error
292- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
293- r0 = rf(ctx)
294- } else {
295- r0 = ret.Error(0)
296- }
297-
298- return r0
299-}
300-
301-// MockWebView_GoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoForward'
302-type MockWebView_GoForward_Call struct {
303- *mock.Call
304-}
305-
306-// GoForward is a helper method to define mock.On call
307-// - ctx context.Context
308-func (_e *MockWebView_Expecter) GoForward(ctx interface{}) *MockWebView_GoForward_Call {
309- return &MockWebView_GoForward_Call{Call: _e.mock.On("GoForward", ctx)}
310-}
311-
312-func (_c *MockWebView_GoForward_Call) Run(run func(ctx context.Context)) *MockWebView_GoForward_Call {
313- _c.Call.Run(func(args mock.Arguments) {
314- run(args[0].(context.Context))
315- })
316- return _c
317-}
318-
319-func (_c *MockWebView_GoForward_Call) Return(_a0 error) *MockWebView_GoForward_Call {
320- _c.Call.Return(_a0)
321- return _c
322-}
323-
324-func (_c *MockWebView_GoForward_Call) RunAndReturn(run func(context.Context) error) *MockWebView_GoForward_Call {
325- _c.Call.Return(run)
326- return _c
327-}
328-
329-// ID provides a mock function with no fields
330-func (_m *MockWebView) ID() port.WebViewID {
331- ret := _m.Called()
332-
333- if len(ret) == 0 {
334- panic("no return value specified for ID")
335- }
336-
337- var r0 port.WebViewID
338- if rf, ok := ret.Get(0).(func() port.WebViewID); ok {
339- r0 = rf()
340- } else {
341- r0 = ret.Get(0).(port.WebViewID)
342- }
343-
344- return r0
345-}
346-
347-// MockWebView_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
348-type MockWebView_ID_Call struct {
349- *mock.Call
350-}
351-
352-// ID is a helper method to define mock.On call
353-func (_e *MockWebView_Expecter) ID() *MockWebView_ID_Call {
354- return &MockWebView_ID_Call{Call: _e.mock.On("ID")}
355-}
356-
357-func (_c *MockWebView_ID_Call) Run(run func()) *MockWebView_ID_Call {
358- _c.Call.Run(func(args mock.Arguments) {
359- run()
360- })
361- return _c
362-}
363-
364-func (_c *MockWebView_ID_Call) Return(_a0 port.WebViewID) *MockWebView_ID_Call {
365- _c.Call.Return(_a0)
366- return _c
367-}
368-
369-func (_c *MockWebView_ID_Call) RunAndReturn(run func() port.WebViewID) *MockWebView_ID_Call {
370- _c.Call.Return(run)
371- return _c
372-}
373-
374-// IsDestroyed provides a mock function with no fields
375-func (_m *MockWebView) IsDestroyed() bool {
376- ret := _m.Called()
377-
378- if len(ret) == 0 {
379- panic("no return value specified for IsDestroyed")
380- }
381-
382- var r0 bool
383- if rf, ok := ret.Get(0).(func() bool); ok {
384- r0 = rf()
385- } else {
386- r0 = ret.Get(0).(bool)
387- }
388-
389- return r0
390-}
391-
392-// MockWebView_IsDestroyed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDestroyed'
393-type MockWebView_IsDestroyed_Call struct {
394- *mock.Call
395-}
396-
397-// IsDestroyed is a helper method to define mock.On call
398-func (_e *MockWebView_Expecter) IsDestroyed() *MockWebView_IsDestroyed_Call {
399- return &MockWebView_IsDestroyed_Call{Call: _e.mock.On("IsDestroyed")}
400-}
401-
402-func (_c *MockWebView_IsDestroyed_Call) Run(run func()) *MockWebView_IsDestroyed_Call {
403- _c.Call.Run(func(args mock.Arguments) {
404- run()
405- })
406- return _c
407-}
408-
409-func (_c *MockWebView_IsDestroyed_Call) Return(_a0 bool) *MockWebView_IsDestroyed_Call {
410- _c.Call.Return(_a0)
411- return _c
412-}
413-
414-func (_c *MockWebView_IsDestroyed_Call) RunAndReturn(run func() bool) *MockWebView_IsDestroyed_Call {
415- _c.Call.Return(run)
416- return _c
417-}
418-
419-// IsLoading provides a mock function with no fields
420-func (_m *MockWebView) IsLoading() bool {
421- ret := _m.Called()
422-
423- if len(ret) == 0 {
424- panic("no return value specified for IsLoading")
425- }
426-
427- var r0 bool
428- if rf, ok := ret.Get(0).(func() bool); ok {
429- r0 = rf()
430- } else {
431- r0 = ret.Get(0).(bool)
432- }
433-
434- return r0
435-}
436-
437-// MockWebView_IsLoading_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLoading'
438-type MockWebView_IsLoading_Call struct {
439- *mock.Call
440-}
441-
442-// IsLoading is a helper method to define mock.On call
443-func (_e *MockWebView_Expecter) IsLoading() *MockWebView_IsLoading_Call {
444- return &MockWebView_IsLoading_Call{Call: _e.mock.On("IsLoading")}
445-}
446-
447-func (_c *MockWebView_IsLoading_Call) Run(run func()) *MockWebView_IsLoading_Call {
448- _c.Call.Run(func(args mock.Arguments) {
449- run()
450- })
451- return _c
452-}
453-
454-func (_c *MockWebView_IsLoading_Call) Return(_a0 bool) *MockWebView_IsLoading_Call {
455- _c.Call.Return(_a0)
456- return _c
457-}
458-
459-func (_c *MockWebView_IsLoading_Call) RunAndReturn(run func() bool) *MockWebView_IsLoading_Call {
460- _c.Call.Return(run)
461- return _c
462-}
463-
464-// LoadHTML provides a mock function with given fields: ctx, content, baseURI
465-func (_m *MockWebView) LoadHTML(ctx context.Context, content string, baseURI string) error {
466- ret := _m.Called(ctx, content, baseURI)
467-
468- if len(ret) == 0 {
469- panic("no return value specified for LoadHTML")
470- }
471-
472- var r0 error
473- if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
474- r0 = rf(ctx, content, baseURI)
475- } else {
476- r0 = ret.Error(0)
477- }
478-
479- return r0
480-}
481-
482-// MockWebView_LoadHTML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadHTML'
483-type MockWebView_LoadHTML_Call struct {
484- *mock.Call
485-}
486-
487-// LoadHTML is a helper method to define mock.On call
488-// - ctx context.Context
489-// - content string
490-// - baseURI string
491-func (_e *MockWebView_Expecter) LoadHTML(ctx interface{}, content interface{}, baseURI interface{}) *MockWebView_LoadHTML_Call {
492- return &MockWebView_LoadHTML_Call{Call: _e.mock.On("LoadHTML", ctx, content, baseURI)}
493-}
494-
495-func (_c *MockWebView_LoadHTML_Call) Run(run func(ctx context.Context, content string, baseURI string)) *MockWebView_LoadHTML_Call {
496- _c.Call.Run(func(args mock.Arguments) {
497- run(args[0].(context.Context), args[1].(string), args[2].(string))
498- })
499- return _c
500-}
501-
502-func (_c *MockWebView_LoadHTML_Call) Return(_a0 error) *MockWebView_LoadHTML_Call {
503- _c.Call.Return(_a0)
504- return _c
505-}
506-
507-func (_c *MockWebView_LoadHTML_Call) RunAndReturn(run func(context.Context, string, string) error) *MockWebView_LoadHTML_Call {
508- _c.Call.Return(run)
509- return _c
510-}
511-
512-// LoadURI provides a mock function with given fields: ctx, uri
513-func (_m *MockWebView) LoadURI(ctx context.Context, uri string) error {
514- ret := _m.Called(ctx, uri)
515-
516- if len(ret) == 0 {
517- panic("no return value specified for LoadURI")
518- }
519-
520- var r0 error
521- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
522- r0 = rf(ctx, uri)
523- } else {
524- r0 = ret.Error(0)
525- }
526-
527- return r0
528-}
529-
530-// MockWebView_LoadURI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadURI'
531-type MockWebView_LoadURI_Call struct {
532- *mock.Call
533-}
534-
535-// LoadURI is a helper method to define mock.On call
536-// - ctx context.Context
537-// - uri string
538-func (_e *MockWebView_Expecter) LoadURI(ctx interface{}, uri interface{}) *MockWebView_LoadURI_Call {
539- return &MockWebView_LoadURI_Call{Call: _e.mock.On("LoadURI", ctx, uri)}
540-}
541-
542-func (_c *MockWebView_LoadURI_Call) Run(run func(ctx context.Context, uri string)) *MockWebView_LoadURI_Call {
543- _c.Call.Run(func(args mock.Arguments) {
544- run(args[0].(context.Context), args[1].(string))
545- })
546- return _c
547-}
548-
549-func (_c *MockWebView_LoadURI_Call) Return(_a0 error) *MockWebView_LoadURI_Call {
550- _c.Call.Return(_a0)
551- return _c
552-}
553-
554-func (_c *MockWebView_LoadURI_Call) RunAndReturn(run func(context.Context, string) error) *MockWebView_LoadURI_Call {
555- _c.Call.Return(run)
556- return _c
557-}
558-
559-// Reload provides a mock function with given fields: ctx
560-func (_m *MockWebView) Reload(ctx context.Context) error {
561- ret := _m.Called(ctx)
562-
563- if len(ret) == 0 {
564- panic("no return value specified for Reload")
565- }
566-
567- var r0 error
568- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
569- r0 = rf(ctx)
570- } else {
571- r0 = ret.Error(0)
572- }
573-
574- return r0
575-}
576-
577-// MockWebView_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
578-type MockWebView_Reload_Call struct {
579- *mock.Call
580-}
581-
582-// Reload is a helper method to define mock.On call
583-// - ctx context.Context
584-func (_e *MockWebView_Expecter) Reload(ctx interface{}) *MockWebView_Reload_Call {
585- return &MockWebView_Reload_Call{Call: _e.mock.On("Reload", ctx)}
586-}
587-
588-func (_c *MockWebView_Reload_Call) Run(run func(ctx context.Context)) *MockWebView_Reload_Call {
589- _c.Call.Run(func(args mock.Arguments) {
590- run(args[0].(context.Context))
591- })
592- return _c
593-}
594-
595-func (_c *MockWebView_Reload_Call) Return(_a0 error) *MockWebView_Reload_Call {
596- _c.Call.Return(_a0)
597- return _c
598-}
599-
600-func (_c *MockWebView_Reload_Call) RunAndReturn(run func(context.Context) error) *MockWebView_Reload_Call {
601- _c.Call.Return(run)
602- return _c
603-}
604-
605-// ReloadBypassCache provides a mock function with given fields: ctx
606-func (_m *MockWebView) ReloadBypassCache(ctx context.Context) error {
607- ret := _m.Called(ctx)
608-
609- if len(ret) == 0 {
610- panic("no return value specified for ReloadBypassCache")
611- }
612-
613- var r0 error
614- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
615- r0 = rf(ctx)
616- } else {
617- r0 = ret.Error(0)
618- }
619-
620- return r0
621-}
622-
623-// MockWebView_ReloadBypassCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReloadBypassCache'
624-type MockWebView_ReloadBypassCache_Call struct {
625- *mock.Call
626-}
627-
628-// ReloadBypassCache is a helper method to define mock.On call
629-// - ctx context.Context
630-func (_e *MockWebView_Expecter) ReloadBypassCache(ctx interface{}) *MockWebView_ReloadBypassCache_Call {
631- return &MockWebView_ReloadBypassCache_Call{Call: _e.mock.On("ReloadBypassCache", ctx)}
632-}
633-
634-func (_c *MockWebView_ReloadBypassCache_Call) Run(run func(ctx context.Context)) *MockWebView_ReloadBypassCache_Call {
635- _c.Call.Run(func(args mock.Arguments) {
636- run(args[0].(context.Context))
637- })
638- return _c
639-}
640-
641-func (_c *MockWebView_ReloadBypassCache_Call) Return(_a0 error) *MockWebView_ReloadBypassCache_Call {
642- _c.Call.Return(_a0)
643- return _c
644-}
645-
646-func (_c *MockWebView_ReloadBypassCache_Call) RunAndReturn(run func(context.Context) error) *MockWebView_ReloadBypassCache_Call {
647- _c.Call.Return(run)
648- return _c
649-}
650-
651-// SetCallbacks provides a mock function with given fields: callbacks
652-func (_m *MockWebView) SetCallbacks(callbacks *port.WebViewCallbacks) {
653- _m.Called(callbacks)
654-}
655-
656-// MockWebView_SetCallbacks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbacks'
657-type MockWebView_SetCallbacks_Call struct {
658- *mock.Call
659-}
660-
661-// SetCallbacks is a helper method to define mock.On call
662-// - callbacks *port.WebViewCallbacks
663-func (_e *MockWebView_Expecter) SetCallbacks(callbacks interface{}) *MockWebView_SetCallbacks_Call {
664- return &MockWebView_SetCallbacks_Call{Call: _e.mock.On("SetCallbacks", callbacks)}
665-}
666-
667-func (_c *MockWebView_SetCallbacks_Call) Run(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
668- _c.Call.Run(func(args mock.Arguments) {
669- run(args[0].(*port.WebViewCallbacks))
670- })
671- return _c
672-}
673-
674-func (_c *MockWebView_SetCallbacks_Call) Return() *MockWebView_SetCallbacks_Call {
675- _c.Call.Return()
676- return _c
677-}
678-
679-func (_c *MockWebView_SetCallbacks_Call) RunAndReturn(run func(*port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
680- _c.Run(run)
681- return _c
682-}
683-
684-// SetZoomLevel provides a mock function with given fields: ctx, level
685-func (_m *MockWebView) SetZoomLevel(ctx context.Context, level float64) error {
686- ret := _m.Called(ctx, level)
687-
688- if len(ret) == 0 {
689- panic("no return value specified for SetZoomLevel")
690- }
691-
692- var r0 error
693- if rf, ok := ret.Get(0).(func(context.Context, float64) error); ok {
694- r0 = rf(ctx, level)
695- } else {
696- r0 = ret.Error(0)
697- }
698-
699- return r0
700-}
701-
702-// MockWebView_SetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetZoomLevel'
703-type MockWebView_SetZoomLevel_Call struct {
704- *mock.Call
705-}
706-
707-// SetZoomLevel is a helper method to define mock.On call
708-// - ctx context.Context
709-// - level float64
710-func (_e *MockWebView_Expecter) SetZoomLevel(ctx interface{}, level interface{}) *MockWebView_SetZoomLevel_Call {
711- return &MockWebView_SetZoomLevel_Call{Call: _e.mock.On("SetZoomLevel", ctx, level)}
712-}
713-
714-func (_c *MockWebView_SetZoomLevel_Call) Run(run func(ctx context.Context, level float64)) *MockWebView_SetZoomLevel_Call {
715- _c.Call.Run(func(args mock.Arguments) {
716- run(args[0].(context.Context), args[1].(float64))
717- })
718- return _c
719-}
720-
721-func (_c *MockWebView_SetZoomLevel_Call) Return(_a0 error) *MockWebView_SetZoomLevel_Call {
722- _c.Call.Return(_a0)
723- return _c
724-}
725-
726-func (_c *MockWebView_SetZoomLevel_Call) RunAndReturn(run func(context.Context, float64) error) *MockWebView_SetZoomLevel_Call {
727- _c.Call.Return(run)
728- return _c
729-}
730-
731-// State provides a mock function with no fields
732-func (_m *MockWebView) State() port.WebViewState {
733- ret := _m.Called()
734-
735- if len(ret) == 0 {
736- panic("no return value specified for State")
737- }
738-
739- var r0 port.WebViewState
740- if rf, ok := ret.Get(0).(func() port.WebViewState); ok {
741- r0 = rf()
742- } else {
743- r0 = ret.Get(0).(port.WebViewState)
744- }
745-
746- return r0
747-}
748-
749-// MockWebView_State_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'State'
750-type MockWebView_State_Call struct {
751- *mock.Call
752-}
753-
754-// State is a helper method to define mock.On call
755-func (_e *MockWebView_Expecter) State() *MockWebView_State_Call {
756- return &MockWebView_State_Call{Call: _e.mock.On("State")}
757-}
758-
759-func (_c *MockWebView_State_Call) Run(run func()) *MockWebView_State_Call {
760- _c.Call.Run(func(args mock.Arguments) {
761- run()
762- })
763- return _c
764-}
765-
766-func (_c *MockWebView_State_Call) Return(_a0 port.WebViewState) *MockWebView_State_Call {
767- _c.Call.Return(_a0)
768- return _c
769-}
770-
771-func (_c *MockWebView_State_Call) RunAndReturn(run func() port.WebViewState) *MockWebView_State_Call {
772- _c.Call.Return(run)
773- return _c
774-}
775-
776-// Stop provides a mock function with given fields: ctx
777-func (_m *MockWebView) Stop(ctx context.Context) error {
778- ret := _m.Called(ctx)
779-
780- if len(ret) == 0 {
781- panic("no return value specified for Stop")
782- }
783-
784- var r0 error
785- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
786- r0 = rf(ctx)
787- } else {
788- r0 = ret.Error(0)
789- }
790-
791- return r0
792-}
793-
794-// MockWebView_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
795-type MockWebView_Stop_Call struct {
796- *mock.Call
797-}
798-
799-// Stop is a helper method to define mock.On call
800-// - ctx context.Context
801-func (_e *MockWebView_Expecter) Stop(ctx interface{}) *MockWebView_Stop_Call {
802- return &MockWebView_Stop_Call{Call: _e.mock.On("Stop", ctx)}
803-}
804-
805-func (_c *MockWebView_Stop_Call) Run(run func(ctx context.Context)) *MockWebView_Stop_Call {
806- _c.Call.Run(func(args mock.Arguments) {
807- run(args[0].(context.Context))
808- })
809- return _c
810-}
811-
812-func (_c *MockWebView_Stop_Call) Return(_a0 error) *MockWebView_Stop_Call {
813- _c.Call.Return(_a0)
814- return _c
815-}
816-
817-func (_c *MockWebView_Stop_Call) RunAndReturn(run func(context.Context) error) *MockWebView_Stop_Call {
818- _c.Call.Return(run)
819- return _c
820-}
821-
822-// Title provides a mock function with no fields
823-func (_m *MockWebView) Title() string {
824- ret := _m.Called()
825-
826- if len(ret) == 0 {
827- panic("no return value specified for Title")
828- }
829-
830- var r0 string
831- if rf, ok := ret.Get(0).(func() string); ok {
832- r0 = rf()
833- } else {
834- r0 = ret.Get(0).(string)
835- }
836-
837- return r0
838-}
839-
840-// MockWebView_Title_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Title'
841-type MockWebView_Title_Call struct {
842- *mock.Call
843-}
844-
845-// Title is a helper method to define mock.On call
846-func (_e *MockWebView_Expecter) Title() *MockWebView_Title_Call {
847- return &MockWebView_Title_Call{Call: _e.mock.On("Title")}
848-}
849-
850-func (_c *MockWebView_Title_Call) Run(run func()) *MockWebView_Title_Call {
851- _c.Call.Run(func(args mock.Arguments) {
852- run()
853- })
854- return _c
855-}
856-
857-func (_c *MockWebView_Title_Call) Return(_a0 string) *MockWebView_Title_Call {
858- _c.Call.Return(_a0)
859- return _c
860-}
861-
862-func (_c *MockWebView_Title_Call) RunAndReturn(run func() string) *MockWebView_Title_Call {
863- _c.Call.Return(run)
864- return _c
865-}
866-
867-// URI provides a mock function with no fields
868-func (_m *MockWebView) URI() string {
869- ret := _m.Called()
870-
871- if len(ret) == 0 {
872- panic("no return value specified for URI")
873- }
874-
875- var r0 string
876- if rf, ok := ret.Get(0).(func() string); ok {
877- r0 = rf()
878- } else {
879- r0 = ret.Get(0).(string)
880- }
881-
882- return r0
883-}
884-
885-// MockWebView_URI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URI'
886-type MockWebView_URI_Call struct {
887- *mock.Call
888-}
889-
890-// URI is a helper method to define mock.On call
891-func (_e *MockWebView_Expecter) URI() *MockWebView_URI_Call {
892- return &MockWebView_URI_Call{Call: _e.mock.On("URI")}
893-}
894-
895-func (_c *MockWebView_URI_Call) Run(run func()) *MockWebView_URI_Call {
896- _c.Call.Run(func(args mock.Arguments) {
897- run()
898- })
899- return _c
900-}
901-
902-func (_c *MockWebView_URI_Call) Return(_a0 string) *MockWebView_URI_Call {
903- _c.Call.Return(_a0)
904- return _c
905-}
906-
907-func (_c *MockWebView_URI_Call) RunAndReturn(run func() string) *MockWebView_URI_Call {
908- _c.Call.Return(run)
909- return _c
910-}
911-
912-// NewMockWebView creates a new instance of MockWebView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
913-// The first argument is typically a *testing.T value.
914-func NewMockWebView(t interface {
915- mock.TestingT
916- Cleanup(func())
917-}) *MockWebView {
918- mock := &MockWebView{}
919- mock.Mock.Test(t)
920-
921- t.Cleanup(func() { mock.AssertExpectations(t) })
922-
923- return mock
924-}
D internal/application/port/mocks/mock_web_view_factory.go +0 -154
@@ -1,154 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- port "github.com/bnema/dumber/internal/application/port"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockWebViewFactory is an autogenerated mock type for the WebViewFactory type
13-type MockWebViewFactory struct {
14- mock.Mock
15-}
16-
17-type MockWebViewFactory_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockWebViewFactory) EXPECT() *MockWebViewFactory_Expecter {
22- return &MockWebViewFactory_Expecter{mock: &_m.Mock}
23-}
24-
25-// Create provides a mock function with given fields: ctx
26-func (_m *MockWebViewFactory) Create(ctx context.Context) (port.WebView, error) {
27- ret := _m.Called(ctx)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for Create")
31- }
32-
33- var r0 port.WebView
34- var r1 error
35- if rf, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
36- return rf(ctx)
37- }
38- if rf, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
39- r0 = rf(ctx)
40- } else {
41- if ret.Get(0) != nil {
42- r0 = ret.Get(0).(port.WebView)
43- }
44- }
45-
46- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
47- r1 = rf(ctx)
48- } else {
49- r1 = ret.Error(1)
50- }
51-
52- return r0, r1
53-}
54-
55-// MockWebViewFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
56-type MockWebViewFactory_Create_Call struct {
57- *mock.Call
58-}
59-
60-// Create is a helper method to define mock.On call
61-// - ctx context.Context
62-func (_e *MockWebViewFactory_Expecter) Create(ctx interface{}) *MockWebViewFactory_Create_Call {
63- return &MockWebViewFactory_Create_Call{Call: _e.mock.On("Create", ctx)}
64-}
65-
66-func (_c *MockWebViewFactory_Create_Call) Run(run func(ctx context.Context)) *MockWebViewFactory_Create_Call {
67- _c.Call.Run(func(args mock.Arguments) {
68- run(args[0].(context.Context))
69- })
70- return _c
71-}
72-
73-func (_c *MockWebViewFactory_Create_Call) Return(_a0 port.WebView, _a1 error) *MockWebViewFactory_Create_Call {
74- _c.Call.Return(_a0, _a1)
75- return _c
76-}
77-
78-func (_c *MockWebViewFactory_Create_Call) RunAndReturn(run func(context.Context) (port.WebView, error)) *MockWebViewFactory_Create_Call {
79- _c.Call.Return(run)
80- return _c
81-}
82-
83-// CreateRelated provides a mock function with given fields: ctx, parentID
84-func (_m *MockWebViewFactory) CreateRelated(ctx context.Context, parentID port.WebViewID) (port.WebView, error) {
85- ret := _m.Called(ctx, parentID)
86-
87- if len(ret) == 0 {
88- panic("no return value specified for CreateRelated")
89- }
90-
91- var r0 port.WebView
92- var r1 error
93- if rf, ok := ret.Get(0).(func(context.Context, port.WebViewID) (port.WebView, error)); ok {
94- return rf(ctx, parentID)
95- }
96- if rf, ok := ret.Get(0).(func(context.Context, port.WebViewID) port.WebView); ok {
97- r0 = rf(ctx, parentID)
98- } else {
99- if ret.Get(0) != nil {
100- r0 = ret.Get(0).(port.WebView)
101- }
102- }
103-
104- if rf, ok := ret.Get(1).(func(context.Context, port.WebViewID) error); ok {
105- r1 = rf(ctx, parentID)
106- } else {
107- r1 = ret.Error(1)
108- }
109-
110- return r0, r1
111-}
112-
113-// MockWebViewFactory_CreateRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRelated'
114-type MockWebViewFactory_CreateRelated_Call struct {
115- *mock.Call
116-}
117-
118-// CreateRelated is a helper method to define mock.On call
119-// - ctx context.Context
120-// - parentID port.WebViewID
121-func (_e *MockWebViewFactory_Expecter) CreateRelated(ctx interface{}, parentID interface{}) *MockWebViewFactory_CreateRelated_Call {
122- return &MockWebViewFactory_CreateRelated_Call{Call: _e.mock.On("CreateRelated", ctx, parentID)}
123-}
124-
125-func (_c *MockWebViewFactory_CreateRelated_Call) Run(run func(ctx context.Context, parentID port.WebViewID)) *MockWebViewFactory_CreateRelated_Call {
126- _c.Call.Run(func(args mock.Arguments) {
127- run(args[0].(context.Context), args[1].(port.WebViewID))
128- })
129- return _c
130-}
131-
132-func (_c *MockWebViewFactory_CreateRelated_Call) Return(_a0 port.WebView, _a1 error) *MockWebViewFactory_CreateRelated_Call {
133- _c.Call.Return(_a0, _a1)
134- return _c
135-}
136-
137-func (_c *MockWebViewFactory_CreateRelated_Call) RunAndReturn(run func(context.Context, port.WebViewID) (port.WebView, error)) *MockWebViewFactory_CreateRelated_Call {
138- _c.Call.Return(run)
139- return _c
140-}
141-
142-// NewMockWebViewFactory creates a new instance of MockWebViewFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
143-// The first argument is typically a *testing.T value.
144-func NewMockWebViewFactory(t interface {
145- mock.TestingT
146- Cleanup(func())
147-}) *MockWebViewFactory {
148- mock := &MockWebViewFactory{}
149- mock.Mock.Test(t)
150-
151- t.Cleanup(func() { mock.AssertExpectations(t) })
152-
153- return mock
154-}
D internal/application/port/mocks/mock_web_view_pool.go +0 -238
@@ -1,238 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- port "github.com/bnema/dumber/internal/application/port"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockWebViewPool is an autogenerated mock type for the WebViewPool type
13-type MockWebViewPool struct {
14- mock.Mock
15-}
16-
17-type MockWebViewPool_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockWebViewPool) EXPECT() *MockWebViewPool_Expecter {
22- return &MockWebViewPool_Expecter{mock: &_m.Mock}
23-}
24-
25-// Acquire provides a mock function with given fields: ctx
26-func (_m *MockWebViewPool) Acquire(ctx context.Context) (port.WebView, error) {
27- ret := _m.Called(ctx)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for Acquire")
31- }
32-
33- var r0 port.WebView
34- var r1 error
35- if rf, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
36- return rf(ctx)
37- }
38- if rf, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
39- r0 = rf(ctx)
40- } else {
41- if ret.Get(0) != nil {
42- r0 = ret.Get(0).(port.WebView)
43- }
44- }
45-
46- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
47- r1 = rf(ctx)
48- } else {
49- r1 = ret.Error(1)
50- }
51-
52- return r0, r1
53-}
54-
55-// MockWebViewPool_Acquire_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Acquire'
56-type MockWebViewPool_Acquire_Call struct {
57- *mock.Call
58-}
59-
60-// Acquire is a helper method to define mock.On call
61-// - ctx context.Context
62-func (_e *MockWebViewPool_Expecter) Acquire(ctx interface{}) *MockWebViewPool_Acquire_Call {
63- return &MockWebViewPool_Acquire_Call{Call: _e.mock.On("Acquire", ctx)}
64-}
65-
66-func (_c *MockWebViewPool_Acquire_Call) Run(run func(ctx context.Context)) *MockWebViewPool_Acquire_Call {
67- _c.Call.Run(func(args mock.Arguments) {
68- run(args[0].(context.Context))
69- })
70- return _c
71-}
72-
73-func (_c *MockWebViewPool_Acquire_Call) Return(_a0 port.WebView, _a1 error) *MockWebViewPool_Acquire_Call {
74- _c.Call.Return(_a0, _a1)
75- return _c
76-}
77-
78-func (_c *MockWebViewPool_Acquire_Call) RunAndReturn(run func(context.Context) (port.WebView, error)) *MockWebViewPool_Acquire_Call {
79- _c.Call.Return(run)
80- return _c
81-}
82-
83-// Close provides a mock function with no fields
84-func (_m *MockWebViewPool) Close() {
85- _m.Called()
86-}
87-
88-// MockWebViewPool_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
89-type MockWebViewPool_Close_Call struct {
90- *mock.Call
91-}
92-
93-// Close is a helper method to define mock.On call
94-func (_e *MockWebViewPool_Expecter) Close() *MockWebViewPool_Close_Call {
95- return &MockWebViewPool_Close_Call{Call: _e.mock.On("Close")}
96-}
97-
98-func (_c *MockWebViewPool_Close_Call) Run(run func()) *MockWebViewPool_Close_Call {
99- _c.Call.Run(func(args mock.Arguments) {
100- run()
101- })
102- return _c
103-}
104-
105-func (_c *MockWebViewPool_Close_Call) Return() *MockWebViewPool_Close_Call {
106- _c.Call.Return()
107- return _c
108-}
109-
110-func (_c *MockWebViewPool_Close_Call) RunAndReturn(run func()) *MockWebViewPool_Close_Call {
111- _c.Run(run)
112- return _c
113-}
114-
115-// Prewarm provides a mock function with given fields: count
116-func (_m *MockWebViewPool) Prewarm(count int) {
117- _m.Called(count)
118-}
119-
120-// MockWebViewPool_Prewarm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prewarm'
121-type MockWebViewPool_Prewarm_Call struct {
122- *mock.Call
123-}
124-
125-// Prewarm is a helper method to define mock.On call
126-// - count int
127-func (_e *MockWebViewPool_Expecter) Prewarm(count interface{}) *MockWebViewPool_Prewarm_Call {
128- return &MockWebViewPool_Prewarm_Call{Call: _e.mock.On("Prewarm", count)}
129-}
130-
131-func (_c *MockWebViewPool_Prewarm_Call) Run(run func(count int)) *MockWebViewPool_Prewarm_Call {
132- _c.Call.Run(func(args mock.Arguments) {
133- run(args[0].(int))
134- })
135- return _c
136-}
137-
138-func (_c *MockWebViewPool_Prewarm_Call) Return() *MockWebViewPool_Prewarm_Call {
139- _c.Call.Return()
140- return _c
141-}
142-
143-func (_c *MockWebViewPool_Prewarm_Call) RunAndReturn(run func(int)) *MockWebViewPool_Prewarm_Call {
144- _c.Run(run)
145- return _c
146-}
147-
148-// Release provides a mock function with given fields: wv
149-func (_m *MockWebViewPool) Release(wv port.WebView) {
150- _m.Called(wv)
151-}
152-
153-// MockWebViewPool_Release_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Release'
154-type MockWebViewPool_Release_Call struct {
155- *mock.Call
156-}
157-
158-// Release is a helper method to define mock.On call
159-// - wv port.WebView
160-func (_e *MockWebViewPool_Expecter) Release(wv interface{}) *MockWebViewPool_Release_Call {
161- return &MockWebViewPool_Release_Call{Call: _e.mock.On("Release", wv)}
162-}
163-
164-func (_c *MockWebViewPool_Release_Call) Run(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
165- _c.Call.Run(func(args mock.Arguments) {
166- run(args[0].(port.WebView))
167- })
168- return _c
169-}
170-
171-func (_c *MockWebViewPool_Release_Call) Return() *MockWebViewPool_Release_Call {
172- _c.Call.Return()
173- return _c
174-}
175-
176-func (_c *MockWebViewPool_Release_Call) RunAndReturn(run func(port.WebView)) *MockWebViewPool_Release_Call {
177- _c.Run(run)
178- return _c
179-}
180-
181-// Size provides a mock function with no fields
182-func (_m *MockWebViewPool) Size() int {
183- ret := _m.Called()
184-
185- if len(ret) == 0 {
186- panic("no return value specified for Size")
187- }
188-
189- var r0 int
190- if rf, ok := ret.Get(0).(func() int); ok {
191- r0 = rf()
192- } else {
193- r0 = ret.Get(0).(int)
194- }
195-
196- return r0
197-}
198-
199-// MockWebViewPool_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
200-type MockWebViewPool_Size_Call struct {
201- *mock.Call
202-}
203-
204-// Size is a helper method to define mock.On call
205-func (_e *MockWebViewPool_Expecter) Size() *MockWebViewPool_Size_Call {
206- return &MockWebViewPool_Size_Call{Call: _e.mock.On("Size")}
207-}
208-
209-func (_c *MockWebViewPool_Size_Call) Run(run func()) *MockWebViewPool_Size_Call {
210- _c.Call.Run(func(args mock.Arguments) {
211- run()
212- })
213- return _c
214-}
215-
216-func (_c *MockWebViewPool_Size_Call) Return(_a0 int) *MockWebViewPool_Size_Call {
217- _c.Call.Return(_a0)
218- return _c
219-}
220-
221-func (_c *MockWebViewPool_Size_Call) RunAndReturn(run func() int) *MockWebViewPool_Size_Call {
222- _c.Call.Return(run)
223- return _c
224-}
225-
226-// NewMockWebViewPool creates a new instance of MockWebViewPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
227-// The first argument is typically a *testing.T value.
228-func NewMockWebViewPool(t interface {
229- mock.TestingT
230- Cleanup(func())
231-}) *MockWebViewPool {
232- mock := &MockWebViewPool{}
233- mock.Mock.Test(t)
234-
235- t.Cleanup(func() { mock.AssertExpectations(t) })
236-
237- return mock
238-}
A internal/application/port/mocks/mocks.go +1387 -0
@@ -0,0 +1,1387 @@
1+// Code generated by mockery; DO NOT EDIT.
2+// github.com/vektra/mockery
3+// template: testify
4+
5+package mocks
6+
7+import (
8+ "context"
9+
10+ "github.com/bnema/dumber/internal/application/port"
11+ mock "github.com/stretchr/testify/mock"
12+)
13+
14+// NewMockWebView creates a new instance of MockWebView. 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.
16+func NewMockWebView(t interface {
17+ mock.TestingT
18+ Cleanup(func())
19+}) *MockWebView {
20+ mock := &MockWebView{}
21+ mock.Mock.Test(t)
22+
23+ t.Cleanup(func() { mock.AssertExpectations(t) })
24+
25+ return mock
26+}
27+
28+// MockWebView is an autogenerated mock type for the WebView type
29+type MockWebView struct {
30+ mock.Mock
31+}
32+
33+type MockWebView_Expecter struct {
34+ mock *mock.Mock
35+}
36+
37+func (_m *MockWebView) EXPECT() *MockWebView_Expecter {
38+ return &MockWebView_Expecter{mock: &_m.Mock}
39+}
40+
41+// CanGoBack provides a mock function for the type MockWebView
42+func (_mock *MockWebView) CanGoBack() bool {
43+ ret := _mock.Called()
44+
45+ if len(ret) == 0 {
46+ panic("no return value specified for CanGoBack")
47+ }
48+
49+ var r0 bool
50+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
51+ r0 = returnFunc()
52+ } else {
53+ r0 = ret.Get(0).(bool)
54+ }
55+ return r0
56+}
57+
58+// MockWebView_CanGoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoBack'
59+type MockWebView_CanGoBack_Call struct {
60+ *mock.Call
61+}
62+
63+// CanGoBack is a helper method to define mock.On call
64+func (_e *MockWebView_Expecter) CanGoBack() *MockWebView_CanGoBack_Call {
65+ return &MockWebView_CanGoBack_Call{Call: _e.mock.On("CanGoBack")}
66+}
67+
68+func (_c *MockWebView_CanGoBack_Call) Run(run func()) *MockWebView_CanGoBack_Call {
69+ _c.Call.Run(func(args mock.Arguments) {
70+ run()
71+ })
72+ return _c
73+}
74+
75+func (_c *MockWebView_CanGoBack_Call) Return(b bool) *MockWebView_CanGoBack_Call {
76+ _c.Call.Return(b)
77+ return _c
78+}
79+
80+func (_c *MockWebView_CanGoBack_Call) RunAndReturn(run func() bool) *MockWebView_CanGoBack_Call {
81+ _c.Call.Return(run)
82+ return _c
83+}
84+
85+// CanGoForward provides a mock function for the type MockWebView
86+func (_mock *MockWebView) CanGoForward() bool {
87+ ret := _mock.Called()
88+
89+ if len(ret) == 0 {
90+ panic("no return value specified for CanGoForward")
91+ }
92+
93+ var r0 bool
94+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
95+ r0 = returnFunc()
96+ } else {
97+ r0 = ret.Get(0).(bool)
98+ }
99+ return r0
100+}
101+
102+// MockWebView_CanGoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoForward'
103+type MockWebView_CanGoForward_Call struct {
104+ *mock.Call
105+}
106+
107+// CanGoForward is a helper method to define mock.On call
108+func (_e *MockWebView_Expecter) CanGoForward() *MockWebView_CanGoForward_Call {
109+ return &MockWebView_CanGoForward_Call{Call: _e.mock.On("CanGoForward")}
110+}
111+
112+func (_c *MockWebView_CanGoForward_Call) Run(run func()) *MockWebView_CanGoForward_Call {
113+ _c.Call.Run(func(args mock.Arguments) {
114+ run()
115+ })
116+ return _c
117+}
118+
119+func (_c *MockWebView_CanGoForward_Call) Return(b bool) *MockWebView_CanGoForward_Call {
120+ _c.Call.Return(b)
121+ return _c
122+}
123+
124+func (_c *MockWebView_CanGoForward_Call) RunAndReturn(run func() bool) *MockWebView_CanGoForward_Call {
125+ _c.Call.Return(run)
126+ return _c
127+}
128+
129+// Destroy provides a mock function for the type MockWebView
130+func (_mock *MockWebView) Destroy() {
131+ _mock.Called()
132+ return
133+}
134+
135+// MockWebView_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
136+type MockWebView_Destroy_Call struct {
137+ *mock.Call
138+}
139+
140+// Destroy is a helper method to define mock.On call
141+func (_e *MockWebView_Expecter) Destroy() *MockWebView_Destroy_Call {
142+ return &MockWebView_Destroy_Call{Call: _e.mock.On("Destroy")}
143+}
144+
145+func (_c *MockWebView_Destroy_Call) Run(run func()) *MockWebView_Destroy_Call {
146+ _c.Call.Run(func(args mock.Arguments) {
147+ run()
148+ })
149+ return _c
150+}
151+
152+func (_c *MockWebView_Destroy_Call) Return() *MockWebView_Destroy_Call {
153+ _c.Call.Return()
154+ return _c
155+}
156+
157+func (_c *MockWebView_Destroy_Call) RunAndReturn(run func()) *MockWebView_Destroy_Call {
158+ _c.Run(run)
159+ return _c
160+}
161+
162+// EstimatedProgress provides a mock function for the type MockWebView
163+func (_mock *MockWebView) EstimatedProgress() float64 {
164+ ret := _mock.Called()
165+
166+ if len(ret) == 0 {
167+ panic("no return value specified for EstimatedProgress")
168+ }
169+
170+ var r0 float64
171+ if returnFunc, ok := ret.Get(0).(func() float64); ok {
172+ r0 = returnFunc()
173+ } else {
174+ r0 = ret.Get(0).(float64)
175+ }
176+ return r0
177+}
178+
179+// MockWebView_EstimatedProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatedProgress'
180+type MockWebView_EstimatedProgress_Call struct {
181+ *mock.Call
182+}
183+
184+// EstimatedProgress is a helper method to define mock.On call
185+func (_e *MockWebView_Expecter) EstimatedProgress() *MockWebView_EstimatedProgress_Call {
186+ return &MockWebView_EstimatedProgress_Call{Call: _e.mock.On("EstimatedProgress")}
187+}
188+
189+func (_c *MockWebView_EstimatedProgress_Call) Run(run func()) *MockWebView_EstimatedProgress_Call {
190+ _c.Call.Run(func(args mock.Arguments) {
191+ run()
192+ })
193+ return _c
194+}
195+
196+func (_c *MockWebView_EstimatedProgress_Call) Return(f float64) *MockWebView_EstimatedProgress_Call {
197+ _c.Call.Return(f)
198+ return _c
199+}
200+
201+func (_c *MockWebView_EstimatedProgress_Call) RunAndReturn(run func() float64) *MockWebView_EstimatedProgress_Call {
202+ _c.Call.Return(run)
203+ return _c
204+}
205+
206+// GetZoomLevel provides a mock function for the type MockWebView
207+func (_mock *MockWebView) GetZoomLevel() float64 {
208+ ret := _mock.Called()
209+
210+ if len(ret) == 0 {
211+ panic("no return value specified for GetZoomLevel")
212+ }
213+
214+ var r0 float64
215+ if returnFunc, ok := ret.Get(0).(func() float64); ok {
216+ r0 = returnFunc()
217+ } else {
218+ r0 = ret.Get(0).(float64)
219+ }
220+ return r0
221+}
222+
223+// MockWebView_GetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetZoomLevel'
224+type MockWebView_GetZoomLevel_Call struct {
225+ *mock.Call
226+}
227+
228+// GetZoomLevel is a helper method to define mock.On call
229+func (_e *MockWebView_Expecter) GetZoomLevel() *MockWebView_GetZoomLevel_Call {
230+ return &MockWebView_GetZoomLevel_Call{Call: _e.mock.On("GetZoomLevel")}
231+}
232+
233+func (_c *MockWebView_GetZoomLevel_Call) Run(run func()) *MockWebView_GetZoomLevel_Call {
234+ _c.Call.Run(func(args mock.Arguments) {
235+ run()
236+ })
237+ return _c
238+}
239+
240+func (_c *MockWebView_GetZoomLevel_Call) Return(f float64) *MockWebView_GetZoomLevel_Call {
241+ _c.Call.Return(f)
242+ return _c
243+}
244+
245+func (_c *MockWebView_GetZoomLevel_Call) RunAndReturn(run func() float64) *MockWebView_GetZoomLevel_Call {
246+ _c.Call.Return(run)
247+ return _c
248+}
249+
250+// GoBack provides a mock function for the type MockWebView
251+func (_mock *MockWebView) GoBack(ctx context.Context) error {
252+ ret := _mock.Called(ctx)
253+
254+ if len(ret) == 0 {
255+ panic("no return value specified for GoBack")
256+ }
257+
258+ var r0 error
259+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
260+ r0 = returnFunc(ctx)
261+ } else {
262+ r0 = ret.Error(0)
263+ }
264+ return r0
265+}
266+
267+// MockWebView_GoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoBack'
268+type MockWebView_GoBack_Call struct {
269+ *mock.Call
270+}
271+
272+// GoBack is a helper method to define mock.On call
273+// - ctx context.Context
274+func (_e *MockWebView_Expecter) GoBack(ctx interface{}) *MockWebView_GoBack_Call {
275+ return &MockWebView_GoBack_Call{Call: _e.mock.On("GoBack", ctx)}
276+}
277+
278+func (_c *MockWebView_GoBack_Call) Run(run func(ctx context.Context)) *MockWebView_GoBack_Call {
279+ _c.Call.Run(func(args mock.Arguments) {
280+ var arg0 context.Context
281+ if args[0] != nil {
282+ arg0 = args[0].(context.Context)
283+ }
284+ run(
285+ arg0,
286+ )
287+ })
288+ return _c
289+}
290+
291+func (_c *MockWebView_GoBack_Call) Return(err error) *MockWebView_GoBack_Call {
292+ _c.Call.Return(err)
293+ return _c
294+}
295+
296+func (_c *MockWebView_GoBack_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_GoBack_Call {
297+ _c.Call.Return(run)
298+ return _c
299+}
300+
301+// GoForward provides a mock function for the type MockWebView
302+func (_mock *MockWebView) GoForward(ctx context.Context) error {
303+ ret := _mock.Called(ctx)
304+
305+ if len(ret) == 0 {
306+ panic("no return value specified for GoForward")
307+ }
308+
309+ var r0 error
310+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
311+ r0 = returnFunc(ctx)
312+ } else {
313+ r0 = ret.Error(0)
314+ }
315+ return r0
316+}
317+
318+// MockWebView_GoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoForward'
319+type MockWebView_GoForward_Call struct {
320+ *mock.Call
321+}
322+
323+// GoForward is a helper method to define mock.On call
324+// - ctx context.Context
325+func (_e *MockWebView_Expecter) GoForward(ctx interface{}) *MockWebView_GoForward_Call {
326+ return &MockWebView_GoForward_Call{Call: _e.mock.On("GoForward", ctx)}
327+}
328+
329+func (_c *MockWebView_GoForward_Call) Run(run func(ctx context.Context)) *MockWebView_GoForward_Call {
330+ _c.Call.Run(func(args mock.Arguments) {
331+ var arg0 context.Context
332+ if args[0] != nil {
333+ arg0 = args[0].(context.Context)
334+ }
335+ run(
336+ arg0,
337+ )
338+ })
339+ return _c
340+}
341+
342+func (_c *MockWebView_GoForward_Call) Return(err error) *MockWebView_GoForward_Call {
343+ _c.Call.Return(err)
344+ return _c
345+}
346+
347+func (_c *MockWebView_GoForward_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_GoForward_Call {
348+ _c.Call.Return(run)
349+ return _c
350+}
351+
352+// ID provides a mock function for the type MockWebView
353+func (_mock *MockWebView) ID() port.WebViewID {
354+ ret := _mock.Called()
355+
356+ if len(ret) == 0 {
357+ panic("no return value specified for ID")
358+ }
359+
360+ var r0 port.WebViewID
361+ if returnFunc, ok := ret.Get(0).(func() port.WebViewID); ok {
362+ r0 = returnFunc()
363+ } else {
364+ r0 = ret.Get(0).(port.WebViewID)
365+ }
366+ return r0
367+}
368+
369+// MockWebView_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
370+type MockWebView_ID_Call struct {
371+ *mock.Call
372+}
373+
374+// ID is a helper method to define mock.On call
375+func (_e *MockWebView_Expecter) ID() *MockWebView_ID_Call {
376+ return &MockWebView_ID_Call{Call: _e.mock.On("ID")}
377+}
378+
379+func (_c *MockWebView_ID_Call) Run(run func()) *MockWebView_ID_Call {
380+ _c.Call.Run(func(args mock.Arguments) {
381+ run()
382+ })
383+ return _c
384+}
385+
386+func (_c *MockWebView_ID_Call) Return(webViewID port.WebViewID) *MockWebView_ID_Call {
387+ _c.Call.Return(webViewID)
388+ return _c
389+}
390+
391+func (_c *MockWebView_ID_Call) RunAndReturn(run func() port.WebViewID) *MockWebView_ID_Call {
392+ _c.Call.Return(run)
393+ return _c
394+}
395+
396+// IsDestroyed provides a mock function for the type MockWebView
397+func (_mock *MockWebView) IsDestroyed() bool {
398+ ret := _mock.Called()
399+
400+ if len(ret) == 0 {
401+ panic("no return value specified for IsDestroyed")
402+ }
403+
404+ var r0 bool
405+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
406+ r0 = returnFunc()
407+ } else {
408+ r0 = ret.Get(0).(bool)
409+ }
410+ return r0
411+}
412+
413+// MockWebView_IsDestroyed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDestroyed'
414+type MockWebView_IsDestroyed_Call struct {
415+ *mock.Call
416+}
417+
418+// IsDestroyed is a helper method to define mock.On call
419+func (_e *MockWebView_Expecter) IsDestroyed() *MockWebView_IsDestroyed_Call {
420+ return &MockWebView_IsDestroyed_Call{Call: _e.mock.On("IsDestroyed")}
421+}
422+
423+func (_c *MockWebView_IsDestroyed_Call) Run(run func()) *MockWebView_IsDestroyed_Call {
424+ _c.Call.Run(func(args mock.Arguments) {
425+ run()
426+ })
427+ return _c
428+}
429+
430+func (_c *MockWebView_IsDestroyed_Call) Return(b bool) *MockWebView_IsDestroyed_Call {
431+ _c.Call.Return(b)
432+ return _c
433+}
434+
435+func (_c *MockWebView_IsDestroyed_Call) RunAndReturn(run func() bool) *MockWebView_IsDestroyed_Call {
436+ _c.Call.Return(run)
437+ return _c
438+}
439+
440+// IsLoading provides a mock function for the type MockWebView
441+func (_mock *MockWebView) IsLoading() bool {
442+ ret := _mock.Called()
443+
444+ if len(ret) == 0 {
445+ panic("no return value specified for IsLoading")
446+ }
447+
448+ var r0 bool
449+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
450+ r0 = returnFunc()
451+ } else {
452+ r0 = ret.Get(0).(bool)
453+ }
454+ return r0
455+}
456+
457+// MockWebView_IsLoading_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLoading'
458+type MockWebView_IsLoading_Call struct {
459+ *mock.Call
460+}
461+
462+// IsLoading is a helper method to define mock.On call
463+func (_e *MockWebView_Expecter) IsLoading() *MockWebView_IsLoading_Call {
464+ return &MockWebView_IsLoading_Call{Call: _e.mock.On("IsLoading")}
465+}
466+
467+func (_c *MockWebView_IsLoading_Call) Run(run func()) *MockWebView_IsLoading_Call {
468+ _c.Call.Run(func(args mock.Arguments) {
469+ run()
470+ })
471+ return _c
472+}
473+
474+func (_c *MockWebView_IsLoading_Call) Return(b bool) *MockWebView_IsLoading_Call {
475+ _c.Call.Return(b)
476+ return _c
477+}
478+
479+func (_c *MockWebView_IsLoading_Call) RunAndReturn(run func() bool) *MockWebView_IsLoading_Call {
480+ _c.Call.Return(run)
481+ return _c
482+}
483+
484+// LoadHTML provides a mock function for the type MockWebView
485+func (_mock *MockWebView) LoadHTML(ctx context.Context, content string, baseURI string) error {
486+ ret := _mock.Called(ctx, content, baseURI)
487+
488+ if len(ret) == 0 {
489+ panic("no return value specified for LoadHTML")
490+ }
491+
492+ var r0 error
493+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
494+ r0 = returnFunc(ctx, content, baseURI)
495+ } else {
496+ r0 = ret.Error(0)
497+ }
498+ return r0
499+}
500+
501+// MockWebView_LoadHTML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadHTML'
502+type MockWebView_LoadHTML_Call struct {
503+ *mock.Call
504+}
505+
506+// LoadHTML is a helper method to define mock.On call
507+// - ctx context.Context
508+// - content string
509+// - baseURI string
510+func (_e *MockWebView_Expecter) LoadHTML(ctx interface{}, content interface{}, baseURI interface{}) *MockWebView_LoadHTML_Call {
511+ return &MockWebView_LoadHTML_Call{Call: _e.mock.On("LoadHTML", ctx, content, baseURI)}
512+}
513+
514+func (_c *MockWebView_LoadHTML_Call) Run(run func(ctx context.Context, content string, baseURI string)) *MockWebView_LoadHTML_Call {
515+ _c.Call.Run(func(args mock.Arguments) {
516+ var arg0 context.Context
517+ if args[0] != nil {
518+ arg0 = args[0].(context.Context)
519+ }
520+ var arg1 string
521+ if args[1] != nil {
522+ arg1 = args[1].(string)
523+ }
524+ var arg2 string
525+ if args[2] != nil {
526+ arg2 = args[2].(string)
527+ }
528+ run(
529+ arg0,
530+ arg1,
531+ arg2,
532+ )
533+ })
534+ return _c
535+}
536+
537+func (_c *MockWebView_LoadHTML_Call) Return(err error) *MockWebView_LoadHTML_Call {
538+ _c.Call.Return(err)
539+ return _c
540+}
541+
542+func (_c *MockWebView_LoadHTML_Call) RunAndReturn(run func(ctx context.Context, content string, baseURI string) error) *MockWebView_LoadHTML_Call {
543+ _c.Call.Return(run)
544+ return _c
545+}
546+
547+// LoadURI provides a mock function for the type MockWebView
548+func (_mock *MockWebView) LoadURI(ctx context.Context, uri string) error {
549+ ret := _mock.Called(ctx, uri)
550+
551+ if len(ret) == 0 {
552+ panic("no return value specified for LoadURI")
553+ }
554+
555+ var r0 error
556+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
557+ r0 = returnFunc(ctx, uri)
558+ } else {
559+ r0 = ret.Error(0)
560+ }
561+ return r0
562+}
563+
564+// MockWebView_LoadURI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadURI'
565+type MockWebView_LoadURI_Call struct {
566+ *mock.Call
567+}
568+
569+// LoadURI is a helper method to define mock.On call
570+// - ctx context.Context
571+// - uri string
572+func (_e *MockWebView_Expecter) LoadURI(ctx interface{}, uri interface{}) *MockWebView_LoadURI_Call {
573+ return &MockWebView_LoadURI_Call{Call: _e.mock.On("LoadURI", ctx, uri)}
574+}
575+
576+func (_c *MockWebView_LoadURI_Call) Run(run func(ctx context.Context, uri string)) *MockWebView_LoadURI_Call {
577+ _c.Call.Run(func(args mock.Arguments) {
578+ var arg0 context.Context
579+ if args[0] != nil {
580+ arg0 = args[0].(context.Context)
581+ }
582+ var arg1 string
583+ if args[1] != nil {
584+ arg1 = args[1].(string)
585+ }
586+ run(
587+ arg0,
588+ arg1,
589+ )
590+ })
591+ return _c
592+}
593+
594+func (_c *MockWebView_LoadURI_Call) Return(err error) *MockWebView_LoadURI_Call {
595+ _c.Call.Return(err)
596+ return _c
597+}
598+
599+func (_c *MockWebView_LoadURI_Call) RunAndReturn(run func(ctx context.Context, uri string) error) *MockWebView_LoadURI_Call {
600+ _c.Call.Return(run)
601+ return _c
602+}
603+
604+// Reload provides a mock function for the type MockWebView
605+func (_mock *MockWebView) Reload(ctx context.Context) error {
606+ ret := _mock.Called(ctx)
607+
608+ if len(ret) == 0 {
609+ panic("no return value specified for Reload")
610+ }
611+
612+ var r0 error
613+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
614+ r0 = returnFunc(ctx)
615+ } else {
616+ r0 = ret.Error(0)
617+ }
618+ return r0
619+}
620+
621+// MockWebView_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
622+type MockWebView_Reload_Call struct {
623+ *mock.Call
624+}
625+
626+// Reload is a helper method to define mock.On call
627+// - ctx context.Context
628+func (_e *MockWebView_Expecter) Reload(ctx interface{}) *MockWebView_Reload_Call {
629+ return &MockWebView_Reload_Call{Call: _e.mock.On("Reload", ctx)}
630+}
631+
632+func (_c *MockWebView_Reload_Call) Run(run func(ctx context.Context)) *MockWebView_Reload_Call {
633+ _c.Call.Run(func(args mock.Arguments) {
634+ var arg0 context.Context
635+ if args[0] != nil {
636+ arg0 = args[0].(context.Context)
637+ }
638+ run(
639+ arg0,
640+ )
641+ })
642+ return _c
643+}
644+
645+func (_c *MockWebView_Reload_Call) Return(err error) *MockWebView_Reload_Call {
646+ _c.Call.Return(err)
647+ return _c
648+}
649+
650+func (_c *MockWebView_Reload_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_Reload_Call {
651+ _c.Call.Return(run)
652+ return _c
653+}
654+
655+// ReloadBypassCache provides a mock function for the type MockWebView
656+func (_mock *MockWebView) ReloadBypassCache(ctx context.Context) error {
657+ ret := _mock.Called(ctx)
658+
659+ if len(ret) == 0 {
660+ panic("no return value specified for ReloadBypassCache")
661+ }
662+
663+ var r0 error
664+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
665+ r0 = returnFunc(ctx)
666+ } else {
667+ r0 = ret.Error(0)
668+ }
669+ return r0
670+}
671+
672+// MockWebView_ReloadBypassCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReloadBypassCache'
673+type MockWebView_ReloadBypassCache_Call struct {
674+ *mock.Call
675+}
676+
677+// ReloadBypassCache is a helper method to define mock.On call
678+// - ctx context.Context
679+func (_e *MockWebView_Expecter) ReloadBypassCache(ctx interface{}) *MockWebView_ReloadBypassCache_Call {
680+ return &MockWebView_ReloadBypassCache_Call{Call: _e.mock.On("ReloadBypassCache", ctx)}
681+}
682+
683+func (_c *MockWebView_ReloadBypassCache_Call) Run(run func(ctx context.Context)) *MockWebView_ReloadBypassCache_Call {
684+ _c.Call.Run(func(args mock.Arguments) {
685+ var arg0 context.Context
686+ if args[0] != nil {
687+ arg0 = args[0].(context.Context)
688+ }
689+ run(
690+ arg0,
691+ )
692+ })
693+ return _c
694+}
695+
696+func (_c *MockWebView_ReloadBypassCache_Call) Return(err error) *MockWebView_ReloadBypassCache_Call {
697+ _c.Call.Return(err)
698+ return _c
699+}
700+
701+func (_c *MockWebView_ReloadBypassCache_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_ReloadBypassCache_Call {
702+ _c.Call.Return(run)
703+ return _c
704+}
705+
706+// SetCallbacks provides a mock function for the type MockWebView
707+func (_mock *MockWebView) SetCallbacks(callbacks *port.WebViewCallbacks) {
708+ _mock.Called(callbacks)
709+ return
710+}
711+
712+// MockWebView_SetCallbacks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbacks'
713+type MockWebView_SetCallbacks_Call struct {
714+ *mock.Call
715+}
716+
717+// SetCallbacks is a helper method to define mock.On call
718+// - callbacks *port.WebViewCallbacks
719+func (_e *MockWebView_Expecter) SetCallbacks(callbacks interface{}) *MockWebView_SetCallbacks_Call {
720+ return &MockWebView_SetCallbacks_Call{Call: _e.mock.On("SetCallbacks", callbacks)}
721+}
722+
723+func (_c *MockWebView_SetCallbacks_Call) Run(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
724+ _c.Call.Run(func(args mock.Arguments) {
725+ var arg0 *port.WebViewCallbacks
726+ if args[0] != nil {
727+ arg0 = args[0].(*port.WebViewCallbacks)
728+ }
729+ run(
730+ arg0,
731+ )
732+ })
733+ return _c
734+}
735+
736+func (_c *MockWebView_SetCallbacks_Call) Return() *MockWebView_SetCallbacks_Call {
737+ _c.Call.Return()
738+ return _c
739+}
740+
741+func (_c *MockWebView_SetCallbacks_Call) RunAndReturn(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
742+ _c.Run(run)
743+ return _c
744+}
745+
746+// SetZoomLevel provides a mock function for the type MockWebView
747+func (_mock *MockWebView) SetZoomLevel(ctx context.Context, level float64) error {
748+ ret := _mock.Called(ctx, level)
749+
750+ if len(ret) == 0 {
751+ panic("no return value specified for SetZoomLevel")
752+ }
753+
754+ var r0 error
755+ if returnFunc, ok := ret.Get(0).(func(context.Context, float64) error); ok {
756+ r0 = returnFunc(ctx, level)
757+ } else {
758+ r0 = ret.Error(0)
759+ }
760+ return r0
761+}
762+
763+// MockWebView_SetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetZoomLevel'
764+type MockWebView_SetZoomLevel_Call struct {
765+ *mock.Call
766+}
767+
768+// SetZoomLevel is a helper method to define mock.On call
769+// - ctx context.Context
770+// - level float64
771+func (_e *MockWebView_Expecter) SetZoomLevel(ctx interface{}, level interface{}) *MockWebView_SetZoomLevel_Call {
772+ return &MockWebView_SetZoomLevel_Call{Call: _e.mock.On("SetZoomLevel", ctx, level)}
773+}
774+
775+func (_c *MockWebView_SetZoomLevel_Call) Run(run func(ctx context.Context, level float64)) *MockWebView_SetZoomLevel_Call {
776+ _c.Call.Run(func(args mock.Arguments) {
777+ var arg0 context.Context
778+ if args[0] != nil {
779+ arg0 = args[0].(context.Context)
780+ }
781+ var arg1 float64
782+ if args[1] != nil {
783+ arg1 = args[1].(float64)
784+ }
785+ run(
786+ arg0,
787+ arg1,
788+ )
789+ })
790+ return _c
791+}
792+
793+func (_c *MockWebView_SetZoomLevel_Call) Return(err error) *MockWebView_SetZoomLevel_Call {
794+ _c.Call.Return(err)
795+ return _c
796+}
797+
798+func (_c *MockWebView_SetZoomLevel_Call) RunAndReturn(run func(ctx context.Context, level float64) error) *MockWebView_SetZoomLevel_Call {
799+ _c.Call.Return(run)
800+ return _c
801+}
802+
803+// State provides a mock function for the type MockWebView
804+func (_mock *MockWebView) State() port.WebViewState {
805+ ret := _mock.Called()
806+
807+ if len(ret) == 0 {
808+ panic("no return value specified for State")
809+ }
810+
811+ var r0 port.WebViewState
812+ if returnFunc, ok := ret.Get(0).(func() port.WebViewState); ok {
813+ r0 = returnFunc()
814+ } else {
815+ r0 = ret.Get(0).(port.WebViewState)
816+ }
817+ return r0
818+}
819+
820+// MockWebView_State_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'State'
821+type MockWebView_State_Call struct {
822+ *mock.Call
823+}
824+
825+// State is a helper method to define mock.On call
826+func (_e *MockWebView_Expecter) State() *MockWebView_State_Call {
827+ return &MockWebView_State_Call{Call: _e.mock.On("State")}
828+}
829+
830+func (_c *MockWebView_State_Call) Run(run func()) *MockWebView_State_Call {
831+ _c.Call.Run(func(args mock.Arguments) {
832+ run()
833+ })
834+ return _c
835+}
836+
837+func (_c *MockWebView_State_Call) Return(webViewState port.WebViewState) *MockWebView_State_Call {
838+ _c.Call.Return(webViewState)
839+ return _c
840+}
841+
842+func (_c *MockWebView_State_Call) RunAndReturn(run func() port.WebViewState) *MockWebView_State_Call {
843+ _c.Call.Return(run)
844+ return _c
845+}
846+
847+// Stop provides a mock function for the type MockWebView
848+func (_mock *MockWebView) Stop(ctx context.Context) error {
849+ ret := _mock.Called(ctx)
850+
851+ if len(ret) == 0 {
852+ panic("no return value specified for Stop")
853+ }
854+
855+ var r0 error
856+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
857+ r0 = returnFunc(ctx)
858+ } else {
859+ r0 = ret.Error(0)
860+ }
861+ return r0
862+}
863+
864+// MockWebView_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
865+type MockWebView_Stop_Call struct {
866+ *mock.Call
867+}
868+
869+// Stop is a helper method to define mock.On call
870+// - ctx context.Context
871+func (_e *MockWebView_Expecter) Stop(ctx interface{}) *MockWebView_Stop_Call {
872+ return &MockWebView_Stop_Call{Call: _e.mock.On("Stop", ctx)}
873+}
874+
875+func (_c *MockWebView_Stop_Call) Run(run func(ctx context.Context)) *MockWebView_Stop_Call {
876+ _c.Call.Run(func(args mock.Arguments) {
877+ var arg0 context.Context
878+ if args[0] != nil {
879+ arg0 = args[0].(context.Context)
880+ }
881+ run(
882+ arg0,
883+ )
884+ })
885+ return _c
886+}
887+
888+func (_c *MockWebView_Stop_Call) Return(err error) *MockWebView_Stop_Call {
889+ _c.Call.Return(err)
890+ return _c
891+}
892+
893+func (_c *MockWebView_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_Stop_Call {
894+ _c.Call.Return(run)
895+ return _c
896+}
897+
898+// Title provides a mock function for the type MockWebView
899+func (_mock *MockWebView) Title() string {
900+ ret := _mock.Called()
901+
902+ if len(ret) == 0 {
903+ panic("no return value specified for Title")
904+ }
905+
906+ var r0 string
907+ if returnFunc, ok := ret.Get(0).(func() string); ok {
908+ r0 = returnFunc()
909+ } else {
910+ r0 = ret.Get(0).(string)
911+ }
912+ return r0
913+}
914+
915+// MockWebView_Title_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Title'
916+type MockWebView_Title_Call struct {
917+ *mock.Call
918+}
919+
920+// Title is a helper method to define mock.On call
921+func (_e *MockWebView_Expecter) Title() *MockWebView_Title_Call {
922+ return &MockWebView_Title_Call{Call: _e.mock.On("Title")}
923+}
924+
925+func (_c *MockWebView_Title_Call) Run(run func()) *MockWebView_Title_Call {
926+ _c.Call.Run(func(args mock.Arguments) {
927+ run()
928+ })
929+ return _c
930+}
931+
932+func (_c *MockWebView_Title_Call) Return(s string) *MockWebView_Title_Call {
933+ _c.Call.Return(s)
934+ return _c
935+}
936+
937+func (_c *MockWebView_Title_Call) RunAndReturn(run func() string) *MockWebView_Title_Call {
938+ _c.Call.Return(run)
939+ return _c
940+}
941+
942+// URI provides a mock function for the type MockWebView
943+func (_mock *MockWebView) URI() string {
944+ ret := _mock.Called()
945+
946+ if len(ret) == 0 {
947+ panic("no return value specified for URI")
948+ }
949+
950+ var r0 string
951+ if returnFunc, ok := ret.Get(0).(func() string); ok {
952+ r0 = returnFunc()
953+ } else {
954+ r0 = ret.Get(0).(string)
955+ }
956+ return r0
957+}
958+
959+// MockWebView_URI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URI'
960+type MockWebView_URI_Call struct {
961+ *mock.Call
962+}
963+
964+// URI is a helper method to define mock.On call
965+func (_e *MockWebView_Expecter) URI() *MockWebView_URI_Call {
966+ return &MockWebView_URI_Call{Call: _e.mock.On("URI")}
967+}
968+
969+func (_c *MockWebView_URI_Call) Run(run func()) *MockWebView_URI_Call {
970+ _c.Call.Run(func(args mock.Arguments) {
971+ run()
972+ })
973+ return _c
974+}
975+
976+func (_c *MockWebView_URI_Call) Return(s string) *MockWebView_URI_Call {
977+ _c.Call.Return(s)
978+ return _c
979+}
980+
981+func (_c *MockWebView_URI_Call) RunAndReturn(run func() string) *MockWebView_URI_Call {
982+ _c.Call.Return(run)
983+ return _c
984+}
985+
986+// NewMockWebViewPool creates a new instance of MockWebViewPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
987+// The first argument is typically a *testing.T value.
988+func NewMockWebViewPool(t interface {
989+ mock.TestingT
990+ Cleanup(func())
991+}) *MockWebViewPool {
992+ mock := &MockWebViewPool{}
993+ mock.Mock.Test(t)
994+
995+ t.Cleanup(func() { mock.AssertExpectations(t) })
996+
997+ return mock
998+}
999+
1000+// MockWebViewPool is an autogenerated mock type for the WebViewPool type
1001+type MockWebViewPool struct {
1002+ mock.Mock
1003+}
1004+
1005+type MockWebViewPool_Expecter struct {
1006+ mock *mock.Mock
1007+}
1008+
1009+func (_m *MockWebViewPool) EXPECT() *MockWebViewPool_Expecter {
1010+ return &MockWebViewPool_Expecter{mock: &_m.Mock}
1011+}
1012+
1013+// Acquire provides a mock function for the type MockWebViewPool
1014+func (_mock *MockWebViewPool) Acquire(ctx context.Context) (port.WebView, error) {
1015+ ret := _mock.Called(ctx)
1016+
1017+ if len(ret) == 0 {
1018+ panic("no return value specified for Acquire")
1019+ }
1020+
1021+ var r0 port.WebView
1022+ var r1 error
1023+ if returnFunc, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
1024+ return returnFunc(ctx)
1025+ }
1026+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
1027+ r0 = returnFunc(ctx)
1028+ } else {
1029+ if ret.Get(0) != nil {
1030+ r0 = ret.Get(0).(port.WebView)
1031+ }
1032+ }
1033+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
1034+ r1 = returnFunc(ctx)
1035+ } else {
1036+ r1 = ret.Error(1)
1037+ }
1038+ return r0, r1
1039+}
1040+
1041+// MockWebViewPool_Acquire_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Acquire'
1042+type MockWebViewPool_Acquire_Call struct {
1043+ *mock.Call
1044+}
1045+
1046+// Acquire is a helper method to define mock.On call
1047+// - ctx context.Context
1048+func (_e *MockWebViewPool_Expecter) Acquire(ctx interface{}) *MockWebViewPool_Acquire_Call {
1049+ return &MockWebViewPool_Acquire_Call{Call: _e.mock.On("Acquire", ctx)}
1050+}
1051+
1052+func (_c *MockWebViewPool_Acquire_Call) Run(run func(ctx context.Context)) *MockWebViewPool_Acquire_Call {
1053+ _c.Call.Run(func(args mock.Arguments) {
1054+ var arg0 context.Context
1055+ if args[0] != nil {
1056+ arg0 = args[0].(context.Context)
1057+ }
1058+ run(
1059+ arg0,
1060+ )
1061+ })
1062+ return _c
1063+}
1064+
1065+func (_c *MockWebViewPool_Acquire_Call) Return(webView port.WebView, err error) *MockWebViewPool_Acquire_Call {
1066+ _c.Call.Return(webView, err)
1067+ return _c
1068+}
1069+
1070+func (_c *MockWebViewPool_Acquire_Call) RunAndReturn(run func(ctx context.Context) (port.WebView, error)) *MockWebViewPool_Acquire_Call {
1071+ _c.Call.Return(run)
1072+ return _c
1073+}
1074+
1075+// Close provides a mock function for the type MockWebViewPool
1076+func (_mock *MockWebViewPool) Close() {
1077+ _mock.Called()
1078+ return
1079+}
1080+
1081+// MockWebViewPool_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
1082+type MockWebViewPool_Close_Call struct {
1083+ *mock.Call
1084+}
1085+
1086+// Close is a helper method to define mock.On call
1087+func (_e *MockWebViewPool_Expecter) Close() *MockWebViewPool_Close_Call {
1088+ return &MockWebViewPool_Close_Call{Call: _e.mock.On("Close")}
1089+}
1090+
1091+func (_c *MockWebViewPool_Close_Call) Run(run func()) *MockWebViewPool_Close_Call {
1092+ _c.Call.Run(func(args mock.Arguments) {
1093+ run()
1094+ })
1095+ return _c
1096+}
1097+
1098+func (_c *MockWebViewPool_Close_Call) Return() *MockWebViewPool_Close_Call {
1099+ _c.Call.Return()
1100+ return _c
1101+}
1102+
1103+func (_c *MockWebViewPool_Close_Call) RunAndReturn(run func()) *MockWebViewPool_Close_Call {
1104+ _c.Run(run)
1105+ return _c
1106+}
1107+
1108+// Prewarm provides a mock function for the type MockWebViewPool
1109+func (_mock *MockWebViewPool) Prewarm(count int) {
1110+ _mock.Called(count)
1111+ return
1112+}
1113+
1114+// MockWebViewPool_Prewarm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prewarm'
1115+type MockWebViewPool_Prewarm_Call struct {
1116+ *mock.Call
1117+}
1118+
1119+// Prewarm is a helper method to define mock.On call
1120+// - count int
1121+func (_e *MockWebViewPool_Expecter) Prewarm(count interface{}) *MockWebViewPool_Prewarm_Call {
1122+ return &MockWebViewPool_Prewarm_Call{Call: _e.mock.On("Prewarm", count)}
1123+}
1124+
1125+func (_c *MockWebViewPool_Prewarm_Call) Run(run func(count int)) *MockWebViewPool_Prewarm_Call {
1126+ _c.Call.Run(func(args mock.Arguments) {
1127+ var arg0 int
1128+ if args[0] != nil {
1129+ arg0 = args[0].(int)
1130+ }
1131+ run(
1132+ arg0,
1133+ )
1134+ })
1135+ return _c
1136+}
1137+
1138+func (_c *MockWebViewPool_Prewarm_Call) Return() *MockWebViewPool_Prewarm_Call {
1139+ _c.Call.Return()
1140+ return _c
1141+}
1142+
1143+func (_c *MockWebViewPool_Prewarm_Call) RunAndReturn(run func(count int)) *MockWebViewPool_Prewarm_Call {
1144+ _c.Run(run)
1145+ return _c
1146+}
1147+
1148+// Release provides a mock function for the type MockWebViewPool
1149+func (_mock *MockWebViewPool) Release(wv port.WebView) {
1150+ _mock.Called(wv)
1151+ return
1152+}
1153+
1154+// MockWebViewPool_Release_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Release'
1155+type MockWebViewPool_Release_Call struct {
1156+ *mock.Call
1157+}
1158+
1159+// Release is a helper method to define mock.On call
1160+// - wv port.WebView
1161+func (_e *MockWebViewPool_Expecter) Release(wv interface{}) *MockWebViewPool_Release_Call {
1162+ return &MockWebViewPool_Release_Call{Call: _e.mock.On("Release", wv)}
1163+}
1164+
1165+func (_c *MockWebViewPool_Release_Call) Run(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
1166+ _c.Call.Run(func(args mock.Arguments) {
1167+ var arg0 port.WebView
1168+ if args[0] != nil {
1169+ arg0 = args[0].(port.WebView)
1170+ }
1171+ run(
1172+ arg0,
1173+ )
1174+ })
1175+ return _c
1176+}
1177+
1178+func (_c *MockWebViewPool_Release_Call) Return() *MockWebViewPool_Release_Call {
1179+ _c.Call.Return()
1180+ return _c
1181+}
1182+
1183+func (_c *MockWebViewPool_Release_Call) RunAndReturn(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
1184+ _c.Run(run)
1185+ return _c
1186+}
1187+
1188+// Size provides a mock function for the type MockWebViewPool
1189+func (_mock *MockWebViewPool) Size() int {
1190+ ret := _mock.Called()
1191+
1192+ if len(ret) == 0 {
1193+ panic("no return value specified for Size")
1194+ }
1195+
1196+ var r0 int
1197+ if returnFunc, ok := ret.Get(0).(func() int); ok {
1198+ r0 = returnFunc()
1199+ } else {
1200+ r0 = ret.Get(0).(int)
1201+ }
1202+ return r0
1203+}
1204+
1205+// MockWebViewPool_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
1206+type MockWebViewPool_Size_Call struct {
1207+ *mock.Call
1208+}
1209+
1210+// Size is a helper method to define mock.On call
1211+func (_e *MockWebViewPool_Expecter) Size() *MockWebViewPool_Size_Call {
1212+ return &MockWebViewPool_Size_Call{Call: _e.mock.On("Size")}
1213+}
1214+
1215+func (_c *MockWebViewPool_Size_Call) Run(run func()) *MockWebViewPool_Size_Call {
1216+ _c.Call.Run(func(args mock.Arguments) {
1217+ run()
1218+ })
1219+ return _c
1220+}
1221+
1222+func (_c *MockWebViewPool_Size_Call) Return(n int) *MockWebViewPool_Size_Call {
1223+ _c.Call.Return(n)
1224+ return _c
1225+}
1226+
1227+func (_c *MockWebViewPool_Size_Call) RunAndReturn(run func() int) *MockWebViewPool_Size_Call {
1228+ _c.Call.Return(run)
1229+ return _c
1230+}
1231+
1232+// NewMockWebViewFactory creates a new instance of MockWebViewFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1233+// The first argument is typically a *testing.T value.
1234+func NewMockWebViewFactory(t interface {
1235+ mock.TestingT
1236+ Cleanup(func())
1237+}) *MockWebViewFactory {
1238+ mock := &MockWebViewFactory{}
1239+ mock.Mock.Test(t)
1240+
1241+ t.Cleanup(func() { mock.AssertExpectations(t) })
1242+
1243+ return mock
1244+}
1245+
1246+// MockWebViewFactory is an autogenerated mock type for the WebViewFactory type
1247+type MockWebViewFactory struct {
1248+ mock.Mock
1249+}
1250+
1251+type MockWebViewFactory_Expecter struct {
1252+ mock *mock.Mock
1253+}
1254+
1255+func (_m *MockWebViewFactory) EXPECT() *MockWebViewFactory_Expecter {
1256+ return &MockWebViewFactory_Expecter{mock: &_m.Mock}
1257+}
1258+
1259+// Create provides a mock function for the type MockWebViewFactory
1260+func (_mock *MockWebViewFactory) Create(ctx context.Context) (port.WebView, error) {
1261+ ret := _mock.Called(ctx)
1262+
1263+ if len(ret) == 0 {
1264+ panic("no return value specified for Create")
1265+ }
1266+
1267+ var r0 port.WebView
1268+ var r1 error
1269+ if returnFunc, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
1270+ return returnFunc(ctx)
1271+ }
1272+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
1273+ r0 = returnFunc(ctx)
1274+ } else {
1275+ if ret.Get(0) != nil {
1276+ r0 = ret.Get(0).(port.WebView)
1277+ }
1278+ }
1279+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
1280+ r1 = returnFunc(ctx)
1281+ } else {
1282+ r1 = ret.Error(1)
1283+ }
1284+ return r0, r1
1285+}
1286+
1287+// MockWebViewFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
1288+type MockWebViewFactory_Create_Call struct {
1289+ *mock.Call
1290+}
1291+
1292+// Create is a helper method to define mock.On call
1293+// - ctx context.Context
1294+func (_e *MockWebViewFactory_Expecter) Create(ctx interface{}) *MockWebViewFactory_Create_Call {
1295+ return &MockWebViewFactory_Create_Call{Call: _e.mock.On("Create", ctx)}
1296+}
1297+
1298+func (_c *MockWebViewFactory_Create_Call) Run(run func(ctx context.Context)) *MockWebViewFactory_Create_Call {
1299+ _c.Call.Run(func(args mock.Arguments) {
1300+ var arg0 context.Context
1301+ if args[0] != nil {
1302+ arg0 = args[0].(context.Context)
1303+ }
1304+ run(
1305+ arg0,
1306+ )
1307+ })
1308+ return _c
1309+}
1310+
1311+func (_c *MockWebViewFactory_Create_Call) Return(webView port.WebView, err error) *MockWebViewFactory_Create_Call {
1312+ _c.Call.Return(webView, err)
1313+ return _c
1314+}
1315+
1316+func (_c *MockWebViewFactory_Create_Call) RunAndReturn(run func(ctx context.Context) (port.WebView, error)) *MockWebViewFactory_Create_Call {
1317+ _c.Call.Return(run)
1318+ return _c
1319+}
1320+
1321+// CreateRelated provides a mock function for the type MockWebViewFactory
1322+func (_mock *MockWebViewFactory) CreateRelated(ctx context.Context, parentID port.WebViewID) (port.WebView, error) {
1323+ ret := _mock.Called(ctx, parentID)
1324+
1325+ if len(ret) == 0 {
1326+ panic("no return value specified for CreateRelated")
1327+ }
1328+
1329+ var r0 port.WebView
1330+ var r1 error
1331+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebViewID) (port.WebView, error)); ok {
1332+ return returnFunc(ctx, parentID)
1333+ }
1334+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebViewID) port.WebView); ok {
1335+ r0 = returnFunc(ctx, parentID)
1336+ } else {
1337+ if ret.Get(0) != nil {
1338+ r0 = ret.Get(0).(port.WebView)
1339+ }
1340+ }
1341+ if returnFunc, ok := ret.Get(1).(func(context.Context, port.WebViewID) error); ok {
1342+ r1 = returnFunc(ctx, parentID)
1343+ } else {
1344+ r1 = ret.Error(1)
1345+ }
1346+ return r0, r1
1347+}
1348+
1349+// MockWebViewFactory_CreateRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRelated'
1350+type MockWebViewFactory_CreateRelated_Call struct {
1351+ *mock.Call
1352+}
1353+
1354+// CreateRelated is a helper method to define mock.On call
1355+// - ctx context.Context
1356+// - parentID port.WebViewID
1357+func (_e *MockWebViewFactory_Expecter) CreateRelated(ctx interface{}, parentID interface{}) *MockWebViewFactory_CreateRelated_Call {
1358+ return &MockWebViewFactory_CreateRelated_Call{Call: _e.mock.On("CreateRelated", ctx, parentID)}
1359+}
1360+
1361+func (_c *MockWebViewFactory_CreateRelated_Call) Run(run func(ctx context.Context, parentID port.WebViewID)) *MockWebViewFactory_CreateRelated_Call {
1362+ _c.Call.Run(func(args mock.Arguments) {
1363+ var arg0 context.Context
1364+ if args[0] != nil {
1365+ arg0 = args[0].(context.Context)
1366+ }
1367+ var arg1 port.WebViewID
1368+ if args[1] != nil {
1369+ arg1 = args[1].(port.WebViewID)
1370+ }
1371+ run(
1372+ arg0,
1373+ arg1,
1374+ )
1375+ })
1376+ return _c
1377+}
1378+
1379+func (_c *MockWebViewFactory_CreateRelated_Call) Return(webView port.WebView, err error) *MockWebViewFactory_CreateRelated_Call {
1380+ _c.Call.Return(webView, err)
1381+ return _c
1382+}
1383+
1384+func (_c *MockWebViewFactory_CreateRelated_Call) RunAndReturn(run func(ctx context.Context, parentID port.WebViewID) (port.WebView, error)) *MockWebViewFactory_CreateRelated_Call {
1385+ _c.Call.Return(run)
1386+ return _c
1387+}
D internal/domain/repository/mocks/mock_content_whitelist_repository.go +0 -245
@@ -1,245 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- mock "github.com/stretchr/testify/mock"
9-)
10-
11-// MockContentWhitelistRepository is an autogenerated mock type for the ContentWhitelistRepository type
12-type MockContentWhitelistRepository struct {
13- mock.Mock
14-}
15-
16-type MockContentWhitelistRepository_Expecter struct {
17- mock *mock.Mock
18-}
19-
20-func (_m *MockContentWhitelistRepository) EXPECT() *MockContentWhitelistRepository_Expecter {
21- return &MockContentWhitelistRepository_Expecter{mock: &_m.Mock}
22-}
23-
24-// Add provides a mock function with given fields: ctx, domain
25-func (_m *MockContentWhitelistRepository) Add(ctx context.Context, domain string) error {
26- ret := _m.Called(ctx, domain)
27-
28- if len(ret) == 0 {
29- panic("no return value specified for Add")
30- }
31-
32- var r0 error
33- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
34- r0 = rf(ctx, domain)
35- } else {
36- r0 = ret.Error(0)
37- }
38-
39- return r0
40-}
41-
42-// MockContentWhitelistRepository_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
43-type MockContentWhitelistRepository_Add_Call struct {
44- *mock.Call
45-}
46-
47-// Add is a helper method to define mock.On call
48-// - ctx context.Context
49-// - domain string
50-func (_e *MockContentWhitelistRepository_Expecter) Add(ctx interface{}, domain interface{}) *MockContentWhitelistRepository_Add_Call {
51- return &MockContentWhitelistRepository_Add_Call{Call: _e.mock.On("Add", ctx, domain)}
52-}
53-
54-func (_c *MockContentWhitelistRepository_Add_Call) Run(run func(ctx context.Context, domain string)) *MockContentWhitelistRepository_Add_Call {
55- _c.Call.Run(func(args mock.Arguments) {
56- run(args[0].(context.Context), args[1].(string))
57- })
58- return _c
59-}
60-
61-func (_c *MockContentWhitelistRepository_Add_Call) Return(_a0 error) *MockContentWhitelistRepository_Add_Call {
62- _c.Call.Return(_a0)
63- return _c
64-}
65-
66-func (_c *MockContentWhitelistRepository_Add_Call) RunAndReturn(run func(context.Context, string) error) *MockContentWhitelistRepository_Add_Call {
67- _c.Call.Return(run)
68- return _c
69-}
70-
71-// Contains provides a mock function with given fields: ctx, domain
72-func (_m *MockContentWhitelistRepository) Contains(ctx context.Context, domain string) (bool, error) {
73- ret := _m.Called(ctx, domain)
74-
75- if len(ret) == 0 {
76- panic("no return value specified for Contains")
77- }
78-
79- var r0 bool
80- var r1 error
81- if rf, ok := ret.Get(0).(func(context.Context, string) (bool, error)); ok {
82- return rf(ctx, domain)
83- }
84- if rf, ok := ret.Get(0).(func(context.Context, string) bool); ok {
85- r0 = rf(ctx, domain)
86- } else {
87- r0 = ret.Get(0).(bool)
88- }
89-
90- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
91- r1 = rf(ctx, domain)
92- } else {
93- r1 = ret.Error(1)
94- }
95-
96- return r0, r1
97-}
98-
99-// MockContentWhitelistRepository_Contains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Contains'
100-type MockContentWhitelistRepository_Contains_Call struct {
101- *mock.Call
102-}
103-
104-// Contains is a helper method to define mock.On call
105-// - ctx context.Context
106-// - domain string
107-func (_e *MockContentWhitelistRepository_Expecter) Contains(ctx interface{}, domain interface{}) *MockContentWhitelistRepository_Contains_Call {
108- return &MockContentWhitelistRepository_Contains_Call{Call: _e.mock.On("Contains", ctx, domain)}
109-}
110-
111-func (_c *MockContentWhitelistRepository_Contains_Call) Run(run func(ctx context.Context, domain string)) *MockContentWhitelistRepository_Contains_Call {
112- _c.Call.Run(func(args mock.Arguments) {
113- run(args[0].(context.Context), args[1].(string))
114- })
115- return _c
116-}
117-
118-func (_c *MockContentWhitelistRepository_Contains_Call) Return(_a0 bool, _a1 error) *MockContentWhitelistRepository_Contains_Call {
119- _c.Call.Return(_a0, _a1)
120- return _c
121-}
122-
123-func (_c *MockContentWhitelistRepository_Contains_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockContentWhitelistRepository_Contains_Call {
124- _c.Call.Return(run)
125- return _c
126-}
127-
128-// GetAll provides a mock function with given fields: ctx
129-func (_m *MockContentWhitelistRepository) GetAll(ctx context.Context) ([]string, error) {
130- ret := _m.Called(ctx)
131-
132- if len(ret) == 0 {
133- panic("no return value specified for GetAll")
134- }
135-
136- var r0 []string
137- var r1 error
138- if rf, ok := ret.Get(0).(func(context.Context) ([]string, error)); ok {
139- return rf(ctx)
140- }
141- if rf, ok := ret.Get(0).(func(context.Context) []string); ok {
142- r0 = rf(ctx)
143- } else {
144- if ret.Get(0) != nil {
145- r0 = ret.Get(0).([]string)
146- }
147- }
148-
149- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
150- r1 = rf(ctx)
151- } else {
152- r1 = ret.Error(1)
153- }
154-
155- return r0, r1
156-}
157-
158-// MockContentWhitelistRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
159-type MockContentWhitelistRepository_GetAll_Call struct {
160- *mock.Call
161-}
162-
163-// GetAll is a helper method to define mock.On call
164-// - ctx context.Context
165-func (_e *MockContentWhitelistRepository_Expecter) GetAll(ctx interface{}) *MockContentWhitelistRepository_GetAll_Call {
166- return &MockContentWhitelistRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx)}
167-}
168-
169-func (_c *MockContentWhitelistRepository_GetAll_Call) Run(run func(ctx context.Context)) *MockContentWhitelistRepository_GetAll_Call {
170- _c.Call.Run(func(args mock.Arguments) {
171- run(args[0].(context.Context))
172- })
173- return _c
174-}
175-
176-func (_c *MockContentWhitelistRepository_GetAll_Call) Return(_a0 []string, _a1 error) *MockContentWhitelistRepository_GetAll_Call {
177- _c.Call.Return(_a0, _a1)
178- return _c
179-}
180-
181-func (_c *MockContentWhitelistRepository_GetAll_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockContentWhitelistRepository_GetAll_Call {
182- _c.Call.Return(run)
183- return _c
184-}
185-
186-// Remove provides a mock function with given fields: ctx, domain
187-func (_m *MockContentWhitelistRepository) Remove(ctx context.Context, domain string) error {
188- ret := _m.Called(ctx, domain)
189-
190- if len(ret) == 0 {
191- panic("no return value specified for Remove")
192- }
193-
194- var r0 error
195- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
196- r0 = rf(ctx, domain)
197- } else {
198- r0 = ret.Error(0)
199- }
200-
201- return r0
202-}
203-
204-// MockContentWhitelistRepository_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
205-type MockContentWhitelistRepository_Remove_Call struct {
206- *mock.Call
207-}
208-
209-// Remove is a helper method to define mock.On call
210-// - ctx context.Context
211-// - domain string
212-func (_e *MockContentWhitelistRepository_Expecter) Remove(ctx interface{}, domain interface{}) *MockContentWhitelistRepository_Remove_Call {
213- return &MockContentWhitelistRepository_Remove_Call{Call: _e.mock.On("Remove", ctx, domain)}
214-}
215-
216-func (_c *MockContentWhitelistRepository_Remove_Call) Run(run func(ctx context.Context, domain string)) *MockContentWhitelistRepository_Remove_Call {
217- _c.Call.Run(func(args mock.Arguments) {
218- run(args[0].(context.Context), args[1].(string))
219- })
220- return _c
221-}
222-
223-func (_c *MockContentWhitelistRepository_Remove_Call) Return(_a0 error) *MockContentWhitelistRepository_Remove_Call {
224- _c.Call.Return(_a0)
225- return _c
226-}
227-
228-func (_c *MockContentWhitelistRepository_Remove_Call) RunAndReturn(run func(context.Context, string) error) *MockContentWhitelistRepository_Remove_Call {
229- _c.Call.Return(run)
230- return _c
231-}
232-
233-// NewMockContentWhitelistRepository creates a new instance of MockContentWhitelistRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
234-// The first argument is typically a *testing.T value.
235-func NewMockContentWhitelistRepository(t interface {
236- mock.TestingT
237- Cleanup(func())
238-}) *MockContentWhitelistRepository {
239- mock := &MockContentWhitelistRepository{}
240- mock.Mock.Test(t)
241-
242- t.Cleanup(func() { mock.AssertExpectations(t) })
243-
244- return mock
245-}
D internal/domain/repository/mocks/mock_favorite_repository.go +0 -569
@@ -1,569 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- entity "github.com/bnema/dumber/internal/domain/entity"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockFavoriteRepository is an autogenerated mock type for the FavoriteRepository type
13-type MockFavoriteRepository struct {
14- mock.Mock
15-}
16-
17-type MockFavoriteRepository_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockFavoriteRepository) EXPECT() *MockFavoriteRepository_Expecter {
22- return &MockFavoriteRepository_Expecter{mock: &_m.Mock}
23-}
24-
25-// Delete provides a mock function with given fields: ctx, id
26-func (_m *MockFavoriteRepository) Delete(ctx context.Context, id entity.FavoriteID) error {
27- ret := _m.Called(ctx, id)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for Delete")
31- }
32-
33- var r0 error
34- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID) error); ok {
35- r0 = rf(ctx, id)
36- } else {
37- r0 = ret.Error(0)
38- }
39-
40- return r0
41-}
42-
43-// MockFavoriteRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
44-type MockFavoriteRepository_Delete_Call struct {
45- *mock.Call
46-}
47-
48-// Delete is a helper method to define mock.On call
49-// - ctx context.Context
50-// - id entity.FavoriteID
51-func (_e *MockFavoriteRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockFavoriteRepository_Delete_Call {
52- return &MockFavoriteRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, id)}
53-}
54-
55-func (_c *MockFavoriteRepository_Delete_Call) Run(run func(ctx context.Context, id entity.FavoriteID)) *MockFavoriteRepository_Delete_Call {
56- _c.Call.Run(func(args mock.Arguments) {
57- run(args[0].(context.Context), args[1].(entity.FavoriteID))
58- })
59- return _c
60-}
61-
62-func (_c *MockFavoriteRepository_Delete_Call) Return(_a0 error) *MockFavoriteRepository_Delete_Call {
63- _c.Call.Return(_a0)
64- return _c
65-}
66-
67-func (_c *MockFavoriteRepository_Delete_Call) RunAndReturn(run func(context.Context, entity.FavoriteID) error) *MockFavoriteRepository_Delete_Call {
68- _c.Call.Return(run)
69- return _c
70-}
71-
72-// FindByID provides a mock function with given fields: ctx, id
73-func (_m *MockFavoriteRepository) FindByID(ctx context.Context, id entity.FavoriteID) (*entity.Favorite, error) {
74- ret := _m.Called(ctx, id)
75-
76- if len(ret) == 0 {
77- panic("no return value specified for FindByID")
78- }
79-
80- var r0 *entity.Favorite
81- var r1 error
82- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID) (*entity.Favorite, error)); ok {
83- return rf(ctx, id)
84- }
85- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID) *entity.Favorite); ok {
86- r0 = rf(ctx, id)
87- } else {
88- if ret.Get(0) != nil {
89- r0 = ret.Get(0).(*entity.Favorite)
90- }
91- }
92-
93- if rf, ok := ret.Get(1).(func(context.Context, entity.FavoriteID) error); ok {
94- r1 = rf(ctx, id)
95- } else {
96- r1 = ret.Error(1)
97- }
98-
99- return r0, r1
100-}
101-
102-// MockFavoriteRepository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
103-type MockFavoriteRepository_FindByID_Call struct {
104- *mock.Call
105-}
106-
107-// FindByID is a helper method to define mock.On call
108-// - ctx context.Context
109-// - id entity.FavoriteID
110-func (_e *MockFavoriteRepository_Expecter) FindByID(ctx interface{}, id interface{}) *MockFavoriteRepository_FindByID_Call {
111- return &MockFavoriteRepository_FindByID_Call{Call: _e.mock.On("FindByID", ctx, id)}
112-}
113-
114-func (_c *MockFavoriteRepository_FindByID_Call) Run(run func(ctx context.Context, id entity.FavoriteID)) *MockFavoriteRepository_FindByID_Call {
115- _c.Call.Run(func(args mock.Arguments) {
116- run(args[0].(context.Context), args[1].(entity.FavoriteID))
117- })
118- return _c
119-}
120-
121-func (_c *MockFavoriteRepository_FindByID_Call) Return(_a0 *entity.Favorite, _a1 error) *MockFavoriteRepository_FindByID_Call {
122- _c.Call.Return(_a0, _a1)
123- return _c
124-}
125-
126-func (_c *MockFavoriteRepository_FindByID_Call) RunAndReturn(run func(context.Context, entity.FavoriteID) (*entity.Favorite, error)) *MockFavoriteRepository_FindByID_Call {
127- _c.Call.Return(run)
128- return _c
129-}
130-
131-// FindByURL provides a mock function with given fields: ctx, url
132-func (_m *MockFavoriteRepository) FindByURL(ctx context.Context, url string) (*entity.Favorite, error) {
133- ret := _m.Called(ctx, url)
134-
135- if len(ret) == 0 {
136- panic("no return value specified for FindByURL")
137- }
138-
139- var r0 *entity.Favorite
140- var r1 error
141- if rf, ok := ret.Get(0).(func(context.Context, string) (*entity.Favorite, error)); ok {
142- return rf(ctx, url)
143- }
144- if rf, ok := ret.Get(0).(func(context.Context, string) *entity.Favorite); ok {
145- r0 = rf(ctx, url)
146- } else {
147- if ret.Get(0) != nil {
148- r0 = ret.Get(0).(*entity.Favorite)
149- }
150- }
151-
152- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
153- r1 = rf(ctx, url)
154- } else {
155- r1 = ret.Error(1)
156- }
157-
158- return r0, r1
159-}
160-
161-// MockFavoriteRepository_FindByURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByURL'
162-type MockFavoriteRepository_FindByURL_Call struct {
163- *mock.Call
164-}
165-
166-// FindByURL is a helper method to define mock.On call
167-// - ctx context.Context
168-// - url string
169-func (_e *MockFavoriteRepository_Expecter) FindByURL(ctx interface{}, url interface{}) *MockFavoriteRepository_FindByURL_Call {
170- return &MockFavoriteRepository_FindByURL_Call{Call: _e.mock.On("FindByURL", ctx, url)}
171-}
172-
173-func (_c *MockFavoriteRepository_FindByURL_Call) Run(run func(ctx context.Context, url string)) *MockFavoriteRepository_FindByURL_Call {
174- _c.Call.Run(func(args mock.Arguments) {
175- run(args[0].(context.Context), args[1].(string))
176- })
177- return _c
178-}
179-
180-func (_c *MockFavoriteRepository_FindByURL_Call) Return(_a0 *entity.Favorite, _a1 error) *MockFavoriteRepository_FindByURL_Call {
181- _c.Call.Return(_a0, _a1)
182- return _c
183-}
184-
185-func (_c *MockFavoriteRepository_FindByURL_Call) RunAndReturn(run func(context.Context, string) (*entity.Favorite, error)) *MockFavoriteRepository_FindByURL_Call {
186- _c.Call.Return(run)
187- return _c
188-}
189-
190-// GetAll provides a mock function with given fields: ctx
191-func (_m *MockFavoriteRepository) GetAll(ctx context.Context) ([]*entity.Favorite, error) {
192- ret := _m.Called(ctx)
193-
194- if len(ret) == 0 {
195- panic("no return value specified for GetAll")
196- }
197-
198- var r0 []*entity.Favorite
199- var r1 error
200- if rf, ok := ret.Get(0).(func(context.Context) ([]*entity.Favorite, error)); ok {
201- return rf(ctx)
202- }
203- if rf, ok := ret.Get(0).(func(context.Context) []*entity.Favorite); ok {
204- r0 = rf(ctx)
205- } else {
206- if ret.Get(0) != nil {
207- r0 = ret.Get(0).([]*entity.Favorite)
208- }
209- }
210-
211- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
212- r1 = rf(ctx)
213- } else {
214- r1 = ret.Error(1)
215- }
216-
217- return r0, r1
218-}
219-
220-// MockFavoriteRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
221-type MockFavoriteRepository_GetAll_Call struct {
222- *mock.Call
223-}
224-
225-// GetAll is a helper method to define mock.On call
226-// - ctx context.Context
227-func (_e *MockFavoriteRepository_Expecter) GetAll(ctx interface{}) *MockFavoriteRepository_GetAll_Call {
228- return &MockFavoriteRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx)}
229-}
230-
231-func (_c *MockFavoriteRepository_GetAll_Call) Run(run func(ctx context.Context)) *MockFavoriteRepository_GetAll_Call {
232- _c.Call.Run(func(args mock.Arguments) {
233- run(args[0].(context.Context))
234- })
235- return _c
236-}
237-
238-func (_c *MockFavoriteRepository_GetAll_Call) Return(_a0 []*entity.Favorite, _a1 error) *MockFavoriteRepository_GetAll_Call {
239- _c.Call.Return(_a0, _a1)
240- return _c
241-}
242-
243-func (_c *MockFavoriteRepository_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entity.Favorite, error)) *MockFavoriteRepository_GetAll_Call {
244- _c.Call.Return(run)
245- return _c
246-}
247-
248-// GetByFolder provides a mock function with given fields: ctx, folderID
249-func (_m *MockFavoriteRepository) GetByFolder(ctx context.Context, folderID *entity.FolderID) ([]*entity.Favorite, error) {
250- ret := _m.Called(ctx, folderID)
251-
252- if len(ret) == 0 {
253- panic("no return value specified for GetByFolder")
254- }
255-
256- var r0 []*entity.Favorite
257- var r1 error
258- if rf, ok := ret.Get(0).(func(context.Context, *entity.FolderID) ([]*entity.Favorite, error)); ok {
259- return rf(ctx, folderID)
260- }
261- if rf, ok := ret.Get(0).(func(context.Context, *entity.FolderID) []*entity.Favorite); ok {
262- r0 = rf(ctx, folderID)
263- } else {
264- if ret.Get(0) != nil {
265- r0 = ret.Get(0).([]*entity.Favorite)
266- }
267- }
268-
269- if rf, ok := ret.Get(1).(func(context.Context, *entity.FolderID) error); ok {
270- r1 = rf(ctx, folderID)
271- } else {
272- r1 = ret.Error(1)
273- }
274-
275- return r0, r1
276-}
277-
278-// MockFavoriteRepository_GetByFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByFolder'
279-type MockFavoriteRepository_GetByFolder_Call struct {
280- *mock.Call
281-}
282-
283-// GetByFolder is a helper method to define mock.On call
284-// - ctx context.Context
285-// - folderID *entity.FolderID
286-func (_e *MockFavoriteRepository_Expecter) GetByFolder(ctx interface{}, folderID interface{}) *MockFavoriteRepository_GetByFolder_Call {
287- return &MockFavoriteRepository_GetByFolder_Call{Call: _e.mock.On("GetByFolder", ctx, folderID)}
288-}
289-
290-func (_c *MockFavoriteRepository_GetByFolder_Call) Run(run func(ctx context.Context, folderID *entity.FolderID)) *MockFavoriteRepository_GetByFolder_Call {
291- _c.Call.Run(func(args mock.Arguments) {
292- run(args[0].(context.Context), args[1].(*entity.FolderID))
293- })
294- return _c
295-}
296-
297-func (_c *MockFavoriteRepository_GetByFolder_Call) Return(_a0 []*entity.Favorite, _a1 error) *MockFavoriteRepository_GetByFolder_Call {
298- _c.Call.Return(_a0, _a1)
299- return _c
300-}
301-
302-func (_c *MockFavoriteRepository_GetByFolder_Call) RunAndReturn(run func(context.Context, *entity.FolderID) ([]*entity.Favorite, error)) *MockFavoriteRepository_GetByFolder_Call {
303- _c.Call.Return(run)
304- return _c
305-}
306-
307-// GetByShortcut provides a mock function with given fields: ctx, key
308-func (_m *MockFavoriteRepository) GetByShortcut(ctx context.Context, key int) (*entity.Favorite, error) {
309- ret := _m.Called(ctx, key)
310-
311- if len(ret) == 0 {
312- panic("no return value specified for GetByShortcut")
313- }
314-
315- var r0 *entity.Favorite
316- var r1 error
317- if rf, ok := ret.Get(0).(func(context.Context, int) (*entity.Favorite, error)); ok {
318- return rf(ctx, key)
319- }
320- if rf, ok := ret.Get(0).(func(context.Context, int) *entity.Favorite); ok {
321- r0 = rf(ctx, key)
322- } else {
323- if ret.Get(0) != nil {
324- r0 = ret.Get(0).(*entity.Favorite)
325- }
326- }
327-
328- if rf, ok := ret.Get(1).(func(context.Context, int) error); ok {
329- r1 = rf(ctx, key)
330- } else {
331- r1 = ret.Error(1)
332- }
333-
334- return r0, r1
335-}
336-
337-// MockFavoriteRepository_GetByShortcut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByShortcut'
338-type MockFavoriteRepository_GetByShortcut_Call struct {
339- *mock.Call
340-}
341-
342-// GetByShortcut is a helper method to define mock.On call
343-// - ctx context.Context
344-// - key int
345-func (_e *MockFavoriteRepository_Expecter) GetByShortcut(ctx interface{}, key interface{}) *MockFavoriteRepository_GetByShortcut_Call {
346- return &MockFavoriteRepository_GetByShortcut_Call{Call: _e.mock.On("GetByShortcut", ctx, key)}
347-}
348-
349-func (_c *MockFavoriteRepository_GetByShortcut_Call) Run(run func(ctx context.Context, key int)) *MockFavoriteRepository_GetByShortcut_Call {
350- _c.Call.Run(func(args mock.Arguments) {
351- run(args[0].(context.Context), args[1].(int))
352- })
353- return _c
354-}
355-
356-func (_c *MockFavoriteRepository_GetByShortcut_Call) Return(_a0 *entity.Favorite, _a1 error) *MockFavoriteRepository_GetByShortcut_Call {
357- _c.Call.Return(_a0, _a1)
358- return _c
359-}
360-
361-func (_c *MockFavoriteRepository_GetByShortcut_Call) RunAndReturn(run func(context.Context, int) (*entity.Favorite, error)) *MockFavoriteRepository_GetByShortcut_Call {
362- _c.Call.Return(run)
363- return _c
364-}
365-
366-// Save provides a mock function with given fields: ctx, fav
367-func (_m *MockFavoriteRepository) Save(ctx context.Context, fav *entity.Favorite) error {
368- ret := _m.Called(ctx, fav)
369-
370- if len(ret) == 0 {
371- panic("no return value specified for Save")
372- }
373-
374- var r0 error
375- if rf, ok := ret.Get(0).(func(context.Context, *entity.Favorite) error); ok {
376- r0 = rf(ctx, fav)
377- } else {
378- r0 = ret.Error(0)
379- }
380-
381- return r0
382-}
383-
384-// MockFavoriteRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
385-type MockFavoriteRepository_Save_Call struct {
386- *mock.Call
387-}
388-
389-// Save is a helper method to define mock.On call
390-// - ctx context.Context
391-// - fav *entity.Favorite
392-func (_e *MockFavoriteRepository_Expecter) Save(ctx interface{}, fav interface{}) *MockFavoriteRepository_Save_Call {
393- return &MockFavoriteRepository_Save_Call{Call: _e.mock.On("Save", ctx, fav)}
394-}
395-
396-func (_c *MockFavoriteRepository_Save_Call) Run(run func(ctx context.Context, fav *entity.Favorite)) *MockFavoriteRepository_Save_Call {
397- _c.Call.Run(func(args mock.Arguments) {
398- run(args[0].(context.Context), args[1].(*entity.Favorite))
399- })
400- return _c
401-}
402-
403-func (_c *MockFavoriteRepository_Save_Call) Return(_a0 error) *MockFavoriteRepository_Save_Call {
404- _c.Call.Return(_a0)
405- return _c
406-}
407-
408-func (_c *MockFavoriteRepository_Save_Call) RunAndReturn(run func(context.Context, *entity.Favorite) error) *MockFavoriteRepository_Save_Call {
409- _c.Call.Return(run)
410- return _c
411-}
412-
413-// SetFolder provides a mock function with given fields: ctx, id, folderID
414-func (_m *MockFavoriteRepository) SetFolder(ctx context.Context, id entity.FavoriteID, folderID *entity.FolderID) error {
415- ret := _m.Called(ctx, id, folderID)
416-
417- if len(ret) == 0 {
418- panic("no return value specified for SetFolder")
419- }
420-
421- var r0 error
422- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, *entity.FolderID) error); ok {
423- r0 = rf(ctx, id, folderID)
424- } else {
425- r0 = ret.Error(0)
426- }
427-
428- return r0
429-}
430-
431-// MockFavoriteRepository_SetFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFolder'
432-type MockFavoriteRepository_SetFolder_Call struct {
433- *mock.Call
434-}
435-
436-// SetFolder is a helper method to define mock.On call
437-// - ctx context.Context
438-// - id entity.FavoriteID
439-// - folderID *entity.FolderID
440-func (_e *MockFavoriteRepository_Expecter) SetFolder(ctx interface{}, id interface{}, folderID interface{}) *MockFavoriteRepository_SetFolder_Call {
441- return &MockFavoriteRepository_SetFolder_Call{Call: _e.mock.On("SetFolder", ctx, id, folderID)}
442-}
443-
444-func (_c *MockFavoriteRepository_SetFolder_Call) Run(run func(ctx context.Context, id entity.FavoriteID, folderID *entity.FolderID)) *MockFavoriteRepository_SetFolder_Call {
445- _c.Call.Run(func(args mock.Arguments) {
446- run(args[0].(context.Context), args[1].(entity.FavoriteID), args[2].(*entity.FolderID))
447- })
448- return _c
449-}
450-
451-func (_c *MockFavoriteRepository_SetFolder_Call) Return(_a0 error) *MockFavoriteRepository_SetFolder_Call {
452- _c.Call.Return(_a0)
453- return _c
454-}
455-
456-func (_c *MockFavoriteRepository_SetFolder_Call) RunAndReturn(run func(context.Context, entity.FavoriteID, *entity.FolderID) error) *MockFavoriteRepository_SetFolder_Call {
457- _c.Call.Return(run)
458- return _c
459-}
460-
461-// SetShortcut provides a mock function with given fields: ctx, id, key
462-func (_m *MockFavoriteRepository) SetShortcut(ctx context.Context, id entity.FavoriteID, key *int) error {
463- ret := _m.Called(ctx, id, key)
464-
465- if len(ret) == 0 {
466- panic("no return value specified for SetShortcut")
467- }
468-
469- var r0 error
470- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, *int) error); ok {
471- r0 = rf(ctx, id, key)
472- } else {
473- r0 = ret.Error(0)
474- }
475-
476- return r0
477-}
478-
479-// MockFavoriteRepository_SetShortcut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetShortcut'
480-type MockFavoriteRepository_SetShortcut_Call struct {
481- *mock.Call
482-}
483-
484-// SetShortcut is a helper method to define mock.On call
485-// - ctx context.Context
486-// - id entity.FavoriteID
487-// - key *int
488-func (_e *MockFavoriteRepository_Expecter) SetShortcut(ctx interface{}, id interface{}, key interface{}) *MockFavoriteRepository_SetShortcut_Call {
489- return &MockFavoriteRepository_SetShortcut_Call{Call: _e.mock.On("SetShortcut", ctx, id, key)}
490-}
491-
492-func (_c *MockFavoriteRepository_SetShortcut_Call) Run(run func(ctx context.Context, id entity.FavoriteID, key *int)) *MockFavoriteRepository_SetShortcut_Call {
493- _c.Call.Run(func(args mock.Arguments) {
494- run(args[0].(context.Context), args[1].(entity.FavoriteID), args[2].(*int))
495- })
496- return _c
497-}
498-
499-func (_c *MockFavoriteRepository_SetShortcut_Call) Return(_a0 error) *MockFavoriteRepository_SetShortcut_Call {
500- _c.Call.Return(_a0)
501- return _c
502-}
503-
504-func (_c *MockFavoriteRepository_SetShortcut_Call) RunAndReturn(run func(context.Context, entity.FavoriteID, *int) error) *MockFavoriteRepository_SetShortcut_Call {
505- _c.Call.Return(run)
506- return _c
507-}
508-
509-// UpdatePosition provides a mock function with given fields: ctx, id, position
510-func (_m *MockFavoriteRepository) UpdatePosition(ctx context.Context, id entity.FavoriteID, position int) error {
511- ret := _m.Called(ctx, id, position)
512-
513- if len(ret) == 0 {
514- panic("no return value specified for UpdatePosition")
515- }
516-
517- var r0 error
518- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, int) error); ok {
519- r0 = rf(ctx, id, position)
520- } else {
521- r0 = ret.Error(0)
522- }
523-
524- return r0
525-}
526-
527-// MockFavoriteRepository_UpdatePosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePosition'
528-type MockFavoriteRepository_UpdatePosition_Call struct {
529- *mock.Call
530-}
531-
532-// UpdatePosition is a helper method to define mock.On call
533-// - ctx context.Context
534-// - id entity.FavoriteID
535-// - position int
536-func (_e *MockFavoriteRepository_Expecter) UpdatePosition(ctx interface{}, id interface{}, position interface{}) *MockFavoriteRepository_UpdatePosition_Call {
537- return &MockFavoriteRepository_UpdatePosition_Call{Call: _e.mock.On("UpdatePosition", ctx, id, position)}
538-}
539-
540-func (_c *MockFavoriteRepository_UpdatePosition_Call) Run(run func(ctx context.Context, id entity.FavoriteID, position int)) *MockFavoriteRepository_UpdatePosition_Call {
541- _c.Call.Run(func(args mock.Arguments) {
542- run(args[0].(context.Context), args[1].(entity.FavoriteID), args[2].(int))
543- })
544- return _c
545-}
546-
547-func (_c *MockFavoriteRepository_UpdatePosition_Call) Return(_a0 error) *MockFavoriteRepository_UpdatePosition_Call {
548- _c.Call.Return(_a0)
549- return _c
550-}
551-
552-func (_c *MockFavoriteRepository_UpdatePosition_Call) RunAndReturn(run func(context.Context, entity.FavoriteID, int) error) *MockFavoriteRepository_UpdatePosition_Call {
553- _c.Call.Return(run)
554- return _c
555-}
556-
557-// NewMockFavoriteRepository creates a new instance of MockFavoriteRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
558-// The first argument is typically a *testing.T value.
559-func NewMockFavoriteRepository(t interface {
560- mock.TestingT
561- Cleanup(func())
562-}) *MockFavoriteRepository {
563- mock := &MockFavoriteRepository{}
564- mock.Mock.Test(t)
565-
566- t.Cleanup(func() { mock.AssertExpectations(t) })
567-
568- return mock
569-}
D internal/domain/repository/mocks/mock_folder_repository.go +0 -355
@@ -1,355 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- entity "github.com/bnema/dumber/internal/domain/entity"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockFolderRepository is an autogenerated mock type for the FolderRepository type
13-type MockFolderRepository struct {
14- mock.Mock
15-}
16-
17-type MockFolderRepository_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockFolderRepository) EXPECT() *MockFolderRepository_Expecter {
22- return &MockFolderRepository_Expecter{mock: &_m.Mock}
23-}
24-
25-// Delete provides a mock function with given fields: ctx, id
26-func (_m *MockFolderRepository) Delete(ctx context.Context, id entity.FolderID) error {
27- ret := _m.Called(ctx, id)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for Delete")
31- }
32-
33- var r0 error
34- if rf, ok := ret.Get(0).(func(context.Context, entity.FolderID) error); ok {
35- r0 = rf(ctx, id)
36- } else {
37- r0 = ret.Error(0)
38- }
39-
40- return r0
41-}
42-
43-// MockFolderRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
44-type MockFolderRepository_Delete_Call struct {
45- *mock.Call
46-}
47-
48-// Delete is a helper method to define mock.On call
49-// - ctx context.Context
50-// - id entity.FolderID
51-func (_e *MockFolderRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockFolderRepository_Delete_Call {
52- return &MockFolderRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, id)}
53-}
54-
55-func (_c *MockFolderRepository_Delete_Call) Run(run func(ctx context.Context, id entity.FolderID)) *MockFolderRepository_Delete_Call {
56- _c.Call.Run(func(args mock.Arguments) {
57- run(args[0].(context.Context), args[1].(entity.FolderID))
58- })
59- return _c
60-}
61-
62-func (_c *MockFolderRepository_Delete_Call) Return(_a0 error) *MockFolderRepository_Delete_Call {
63- _c.Call.Return(_a0)
64- return _c
65-}
66-
67-func (_c *MockFolderRepository_Delete_Call) RunAndReturn(run func(context.Context, entity.FolderID) error) *MockFolderRepository_Delete_Call {
68- _c.Call.Return(run)
69- return _c
70-}
71-
72-// FindByID provides a mock function with given fields: ctx, id
73-func (_m *MockFolderRepository) FindByID(ctx context.Context, id entity.FolderID) (*entity.Folder, error) {
74- ret := _m.Called(ctx, id)
75-
76- if len(ret) == 0 {
77- panic("no return value specified for FindByID")
78- }
79-
80- var r0 *entity.Folder
81- var r1 error
82- if rf, ok := ret.Get(0).(func(context.Context, entity.FolderID) (*entity.Folder, error)); ok {
83- return rf(ctx, id)
84- }
85- if rf, ok := ret.Get(0).(func(context.Context, entity.FolderID) *entity.Folder); ok {
86- r0 = rf(ctx, id)
87- } else {
88- if ret.Get(0) != nil {
89- r0 = ret.Get(0).(*entity.Folder)
90- }
91- }
92-
93- if rf, ok := ret.Get(1).(func(context.Context, entity.FolderID) error); ok {
94- r1 = rf(ctx, id)
95- } else {
96- r1 = ret.Error(1)
97- }
98-
99- return r0, r1
100-}
101-
102-// MockFolderRepository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
103-type MockFolderRepository_FindByID_Call struct {
104- *mock.Call
105-}
106-
107-// FindByID is a helper method to define mock.On call
108-// - ctx context.Context
109-// - id entity.FolderID
110-func (_e *MockFolderRepository_Expecter) FindByID(ctx interface{}, id interface{}) *MockFolderRepository_FindByID_Call {
111- return &MockFolderRepository_FindByID_Call{Call: _e.mock.On("FindByID", ctx, id)}
112-}
113-
114-func (_c *MockFolderRepository_FindByID_Call) Run(run func(ctx context.Context, id entity.FolderID)) *MockFolderRepository_FindByID_Call {
115- _c.Call.Run(func(args mock.Arguments) {
116- run(args[0].(context.Context), args[1].(entity.FolderID))
117- })
118- return _c
119-}
120-
121-func (_c *MockFolderRepository_FindByID_Call) Return(_a0 *entity.Folder, _a1 error) *MockFolderRepository_FindByID_Call {
122- _c.Call.Return(_a0, _a1)
123- return _c
124-}
125-
126-func (_c *MockFolderRepository_FindByID_Call) RunAndReturn(run func(context.Context, entity.FolderID) (*entity.Folder, error)) *MockFolderRepository_FindByID_Call {
127- _c.Call.Return(run)
128- return _c
129-}
130-
131-// GetAll provides a mock function with given fields: ctx
132-func (_m *MockFolderRepository) GetAll(ctx context.Context) ([]*entity.Folder, error) {
133- ret := _m.Called(ctx)
134-
135- if len(ret) == 0 {
136- panic("no return value specified for GetAll")
137- }
138-
139- var r0 []*entity.Folder
140- var r1 error
141- if rf, ok := ret.Get(0).(func(context.Context) ([]*entity.Folder, error)); ok {
142- return rf(ctx)
143- }
144- if rf, ok := ret.Get(0).(func(context.Context) []*entity.Folder); ok {
145- r0 = rf(ctx)
146- } else {
147- if ret.Get(0) != nil {
148- r0 = ret.Get(0).([]*entity.Folder)
149- }
150- }
151-
152- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
153- r1 = rf(ctx)
154- } else {
155- r1 = ret.Error(1)
156- }
157-
158- return r0, r1
159-}
160-
161-// MockFolderRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
162-type MockFolderRepository_GetAll_Call struct {
163- *mock.Call
164-}
165-
166-// GetAll is a helper method to define mock.On call
167-// - ctx context.Context
168-func (_e *MockFolderRepository_Expecter) GetAll(ctx interface{}) *MockFolderRepository_GetAll_Call {
169- return &MockFolderRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx)}
170-}
171-
172-func (_c *MockFolderRepository_GetAll_Call) Run(run func(ctx context.Context)) *MockFolderRepository_GetAll_Call {
173- _c.Call.Run(func(args mock.Arguments) {
174- run(args[0].(context.Context))
175- })
176- return _c
177-}
178-
179-func (_c *MockFolderRepository_GetAll_Call) Return(_a0 []*entity.Folder, _a1 error) *MockFolderRepository_GetAll_Call {
180- _c.Call.Return(_a0, _a1)
181- return _c
182-}
183-
184-func (_c *MockFolderRepository_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entity.Folder, error)) *MockFolderRepository_GetAll_Call {
185- _c.Call.Return(run)
186- return _c
187-}
188-
189-// GetChildren provides a mock function with given fields: ctx, parentID
190-func (_m *MockFolderRepository) GetChildren(ctx context.Context, parentID *entity.FolderID) ([]*entity.Folder, error) {
191- ret := _m.Called(ctx, parentID)
192-
193- if len(ret) == 0 {
194- panic("no return value specified for GetChildren")
195- }
196-
197- var r0 []*entity.Folder
198- var r1 error
199- if rf, ok := ret.Get(0).(func(context.Context, *entity.FolderID) ([]*entity.Folder, error)); ok {
200- return rf(ctx, parentID)
201- }
202- if rf, ok := ret.Get(0).(func(context.Context, *entity.FolderID) []*entity.Folder); ok {
203- r0 = rf(ctx, parentID)
204- } else {
205- if ret.Get(0) != nil {
206- r0 = ret.Get(0).([]*entity.Folder)
207- }
208- }
209-
210- if rf, ok := ret.Get(1).(func(context.Context, *entity.FolderID) error); ok {
211- r1 = rf(ctx, parentID)
212- } else {
213- r1 = ret.Error(1)
214- }
215-
216- return r0, r1
217-}
218-
219-// MockFolderRepository_GetChildren_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChildren'
220-type MockFolderRepository_GetChildren_Call struct {
221- *mock.Call
222-}
223-
224-// GetChildren is a helper method to define mock.On call
225-// - ctx context.Context
226-// - parentID *entity.FolderID
227-func (_e *MockFolderRepository_Expecter) GetChildren(ctx interface{}, parentID interface{}) *MockFolderRepository_GetChildren_Call {
228- return &MockFolderRepository_GetChildren_Call{Call: _e.mock.On("GetChildren", ctx, parentID)}
229-}
230-
231-func (_c *MockFolderRepository_GetChildren_Call) Run(run func(ctx context.Context, parentID *entity.FolderID)) *MockFolderRepository_GetChildren_Call {
232- _c.Call.Run(func(args mock.Arguments) {
233- run(args[0].(context.Context), args[1].(*entity.FolderID))
234- })
235- return _c
236-}
237-
238-func (_c *MockFolderRepository_GetChildren_Call) Return(_a0 []*entity.Folder, _a1 error) *MockFolderRepository_GetChildren_Call {
239- _c.Call.Return(_a0, _a1)
240- return _c
241-}
242-
243-func (_c *MockFolderRepository_GetChildren_Call) RunAndReturn(run func(context.Context, *entity.FolderID) ([]*entity.Folder, error)) *MockFolderRepository_GetChildren_Call {
244- _c.Call.Return(run)
245- return _c
246-}
247-
248-// Save provides a mock function with given fields: ctx, folder
249-func (_m *MockFolderRepository) Save(ctx context.Context, folder *entity.Folder) error {
250- ret := _m.Called(ctx, folder)
251-
252- if len(ret) == 0 {
253- panic("no return value specified for Save")
254- }
255-
256- var r0 error
257- if rf, ok := ret.Get(0).(func(context.Context, *entity.Folder) error); ok {
258- r0 = rf(ctx, folder)
259- } else {
260- r0 = ret.Error(0)
261- }
262-
263- return r0
264-}
265-
266-// MockFolderRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
267-type MockFolderRepository_Save_Call struct {
268- *mock.Call
269-}
270-
271-// Save is a helper method to define mock.On call
272-// - ctx context.Context
273-// - folder *entity.Folder
274-func (_e *MockFolderRepository_Expecter) Save(ctx interface{}, folder interface{}) *MockFolderRepository_Save_Call {
275- return &MockFolderRepository_Save_Call{Call: _e.mock.On("Save", ctx, folder)}
276-}
277-
278-func (_c *MockFolderRepository_Save_Call) Run(run func(ctx context.Context, folder *entity.Folder)) *MockFolderRepository_Save_Call {
279- _c.Call.Run(func(args mock.Arguments) {
280- run(args[0].(context.Context), args[1].(*entity.Folder))
281- })
282- return _c
283-}
284-
285-func (_c *MockFolderRepository_Save_Call) Return(_a0 error) *MockFolderRepository_Save_Call {
286- _c.Call.Return(_a0)
287- return _c
288-}
289-
290-func (_c *MockFolderRepository_Save_Call) RunAndReturn(run func(context.Context, *entity.Folder) error) *MockFolderRepository_Save_Call {
291- _c.Call.Return(run)
292- return _c
293-}
294-
295-// UpdatePosition provides a mock function with given fields: ctx, id, position
296-func (_m *MockFolderRepository) UpdatePosition(ctx context.Context, id entity.FolderID, position int) error {
297- ret := _m.Called(ctx, id, position)
298-
299- if len(ret) == 0 {
300- panic("no return value specified for UpdatePosition")
301- }
302-
303- var r0 error
304- if rf, ok := ret.Get(0).(func(context.Context, entity.FolderID, int) error); ok {
305- r0 = rf(ctx, id, position)
306- } else {
307- r0 = ret.Error(0)
308- }
309-
310- return r0
311-}
312-
313-// MockFolderRepository_UpdatePosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePosition'
314-type MockFolderRepository_UpdatePosition_Call struct {
315- *mock.Call
316-}
317-
318-// UpdatePosition is a helper method to define mock.On call
319-// - ctx context.Context
320-// - id entity.FolderID
321-// - position int
322-func (_e *MockFolderRepository_Expecter) UpdatePosition(ctx interface{}, id interface{}, position interface{}) *MockFolderRepository_UpdatePosition_Call {
323- return &MockFolderRepository_UpdatePosition_Call{Call: _e.mock.On("UpdatePosition", ctx, id, position)}
324-}
325-
326-func (_c *MockFolderRepository_UpdatePosition_Call) Run(run func(ctx context.Context, id entity.FolderID, position int)) *MockFolderRepository_UpdatePosition_Call {
327- _c.Call.Run(func(args mock.Arguments) {
328- run(args[0].(context.Context), args[1].(entity.FolderID), args[2].(int))
329- })
330- return _c
331-}
332-
333-func (_c *MockFolderRepository_UpdatePosition_Call) Return(_a0 error) *MockFolderRepository_UpdatePosition_Call {
334- _c.Call.Return(_a0)
335- return _c
336-}
337-
338-func (_c *MockFolderRepository_UpdatePosition_Call) RunAndReturn(run func(context.Context, entity.FolderID, int) error) *MockFolderRepository_UpdatePosition_Call {
339- _c.Call.Return(run)
340- return _c
341-}
342-
343-// NewMockFolderRepository creates a new instance of MockFolderRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
344-// The first argument is typically a *testing.T value.
345-func NewMockFolderRepository(t interface {
346- mock.TestingT
347- Cleanup(func())
348-}) *MockFolderRepository {
349- mock := &MockFolderRepository{}
350- mock.Mock.Test(t)
351-
352- t.Cleanup(func() { mock.AssertExpectations(t) })
353-
354- return mock
355-}
D internal/domain/repository/mocks/mock_history_repository.go +0 -733
@@ -1,733 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- entity "github.com/bnema/dumber/internal/domain/entity"
9- mock "github.com/stretchr/testify/mock"
10-
11- time "time"
12-)
13-
14-// MockHistoryRepository is an autogenerated mock type for the HistoryRepository type
15-type MockHistoryRepository struct {
16- mock.Mock
17-}
18-
19-type MockHistoryRepository_Expecter struct {
20- mock *mock.Mock
21-}
22-
23-func (_m *MockHistoryRepository) EXPECT() *MockHistoryRepository_Expecter {
24- return &MockHistoryRepository_Expecter{mock: &_m.Mock}
25-}
26-
27-// Delete provides a mock function with given fields: ctx, id
28-func (_m *MockHistoryRepository) Delete(ctx context.Context, id int64) error {
29- ret := _m.Called(ctx, id)
30-
31- if len(ret) == 0 {
32- panic("no return value specified for Delete")
33- }
34-
35- var r0 error
36- if rf, ok := ret.Get(0).(func(context.Context, int64) error); ok {
37- r0 = rf(ctx, id)
38- } else {
39- r0 = ret.Error(0)
40- }
41-
42- return r0
43-}
44-
45-// MockHistoryRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
46-type MockHistoryRepository_Delete_Call struct {
47- *mock.Call
48-}
49-
50-// Delete is a helper method to define mock.On call
51-// - ctx context.Context
52-// - id int64
53-func (_e *MockHistoryRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockHistoryRepository_Delete_Call {
54- return &MockHistoryRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, id)}
55-}
56-
57-func (_c *MockHistoryRepository_Delete_Call) Run(run func(ctx context.Context, id int64)) *MockHistoryRepository_Delete_Call {
58- _c.Call.Run(func(args mock.Arguments) {
59- run(args[0].(context.Context), args[1].(int64))
60- })
61- return _c
62-}
63-
64-func (_c *MockHistoryRepository_Delete_Call) Return(_a0 error) *MockHistoryRepository_Delete_Call {
65- _c.Call.Return(_a0)
66- return _c
67-}
68-
69-func (_c *MockHistoryRepository_Delete_Call) RunAndReturn(run func(context.Context, int64) error) *MockHistoryRepository_Delete_Call {
70- _c.Call.Return(run)
71- return _c
72-}
73-
74-// DeleteAll provides a mock function with given fields: ctx
75-func (_m *MockHistoryRepository) DeleteAll(ctx context.Context) error {
76- ret := _m.Called(ctx)
77-
78- if len(ret) == 0 {
79- panic("no return value specified for DeleteAll")
80- }
81-
82- var r0 error
83- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
84- r0 = rf(ctx)
85- } else {
86- r0 = ret.Error(0)
87- }
88-
89- return r0
90-}
91-
92-// MockHistoryRepository_DeleteAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAll'
93-type MockHistoryRepository_DeleteAll_Call struct {
94- *mock.Call
95-}
96-
97-// DeleteAll is a helper method to define mock.On call
98-// - ctx context.Context
99-func (_e *MockHistoryRepository_Expecter) DeleteAll(ctx interface{}) *MockHistoryRepository_DeleteAll_Call {
100- return &MockHistoryRepository_DeleteAll_Call{Call: _e.mock.On("DeleteAll", ctx)}
101-}
102-
103-func (_c *MockHistoryRepository_DeleteAll_Call) Run(run func(ctx context.Context)) *MockHistoryRepository_DeleteAll_Call {
104- _c.Call.Run(func(args mock.Arguments) {
105- run(args[0].(context.Context))
106- })
107- return _c
108-}
109-
110-func (_c *MockHistoryRepository_DeleteAll_Call) Return(_a0 error) *MockHistoryRepository_DeleteAll_Call {
111- _c.Call.Return(_a0)
112- return _c
113-}
114-
115-func (_c *MockHistoryRepository_DeleteAll_Call) RunAndReturn(run func(context.Context) error) *MockHistoryRepository_DeleteAll_Call {
116- _c.Call.Return(run)
117- return _c
118-}
119-
120-// DeleteByDomain provides a mock function with given fields: ctx, domain
121-func (_m *MockHistoryRepository) DeleteByDomain(ctx context.Context, domain string) error {
122- ret := _m.Called(ctx, domain)
123-
124- if len(ret) == 0 {
125- panic("no return value specified for DeleteByDomain")
126- }
127-
128- var r0 error
129- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
130- r0 = rf(ctx, domain)
131- } else {
132- r0 = ret.Error(0)
133- }
134-
135- return r0
136-}
137-
138-// MockHistoryRepository_DeleteByDomain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByDomain'
139-type MockHistoryRepository_DeleteByDomain_Call struct {
140- *mock.Call
141-}
142-
143-// DeleteByDomain is a helper method to define mock.On call
144-// - ctx context.Context
145-// - domain string
146-func (_e *MockHistoryRepository_Expecter) DeleteByDomain(ctx interface{}, domain interface{}) *MockHistoryRepository_DeleteByDomain_Call {
147- return &MockHistoryRepository_DeleteByDomain_Call{Call: _e.mock.On("DeleteByDomain", ctx, domain)}
148-}
149-
150-func (_c *MockHistoryRepository_DeleteByDomain_Call) Run(run func(ctx context.Context, domain string)) *MockHistoryRepository_DeleteByDomain_Call {
151- _c.Call.Run(func(args mock.Arguments) {
152- run(args[0].(context.Context), args[1].(string))
153- })
154- return _c
155-}
156-
157-func (_c *MockHistoryRepository_DeleteByDomain_Call) Return(_a0 error) *MockHistoryRepository_DeleteByDomain_Call {
158- _c.Call.Return(_a0)
159- return _c
160-}
161-
162-func (_c *MockHistoryRepository_DeleteByDomain_Call) RunAndReturn(run func(context.Context, string) error) *MockHistoryRepository_DeleteByDomain_Call {
163- _c.Call.Return(run)
164- return _c
165-}
166-
167-// DeleteOlderThan provides a mock function with given fields: ctx, before
168-func (_m *MockHistoryRepository) DeleteOlderThan(ctx context.Context, before time.Time) error {
169- ret := _m.Called(ctx, before)
170-
171- if len(ret) == 0 {
172- panic("no return value specified for DeleteOlderThan")
173- }
174-
175- var r0 error
176- if rf, ok := ret.Get(0).(func(context.Context, time.Time) error); ok {
177- r0 = rf(ctx, before)
178- } else {
179- r0 = ret.Error(0)
180- }
181-
182- return r0
183-}
184-
185-// MockHistoryRepository_DeleteOlderThan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOlderThan'
186-type MockHistoryRepository_DeleteOlderThan_Call struct {
187- *mock.Call
188-}
189-
190-// DeleteOlderThan is a helper method to define mock.On call
191-// - ctx context.Context
192-// - before time.Time
193-func (_e *MockHistoryRepository_Expecter) DeleteOlderThan(ctx interface{}, before interface{}) *MockHistoryRepository_DeleteOlderThan_Call {
194- return &MockHistoryRepository_DeleteOlderThan_Call{Call: _e.mock.On("DeleteOlderThan", ctx, before)}
195-}
196-
197-func (_c *MockHistoryRepository_DeleteOlderThan_Call) Run(run func(ctx context.Context, before time.Time)) *MockHistoryRepository_DeleteOlderThan_Call {
198- _c.Call.Run(func(args mock.Arguments) {
199- run(args[0].(context.Context), args[1].(time.Time))
200- })
201- return _c
202-}
203-
204-func (_c *MockHistoryRepository_DeleteOlderThan_Call) Return(_a0 error) *MockHistoryRepository_DeleteOlderThan_Call {
205- _c.Call.Return(_a0)
206- return _c
207-}
208-
209-func (_c *MockHistoryRepository_DeleteOlderThan_Call) RunAndReturn(run func(context.Context, time.Time) error) *MockHistoryRepository_DeleteOlderThan_Call {
210- _c.Call.Return(run)
211- return _c
212-}
213-
214-// FindByURL provides a mock function with given fields: ctx, url
215-func (_m *MockHistoryRepository) FindByURL(ctx context.Context, url string) (*entity.HistoryEntry, error) {
216- ret := _m.Called(ctx, url)
217-
218- if len(ret) == 0 {
219- panic("no return value specified for FindByURL")
220- }
221-
222- var r0 *entity.HistoryEntry
223- var r1 error
224- if rf, ok := ret.Get(0).(func(context.Context, string) (*entity.HistoryEntry, error)); ok {
225- return rf(ctx, url)
226- }
227- if rf, ok := ret.Get(0).(func(context.Context, string) *entity.HistoryEntry); ok {
228- r0 = rf(ctx, url)
229- } else {
230- if ret.Get(0) != nil {
231- r0 = ret.Get(0).(*entity.HistoryEntry)
232- }
233- }
234-
235- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
236- r1 = rf(ctx, url)
237- } else {
238- r1 = ret.Error(1)
239- }
240-
241- return r0, r1
242-}
243-
244-// MockHistoryRepository_FindByURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByURL'
245-type MockHistoryRepository_FindByURL_Call struct {
246- *mock.Call
247-}
248-
249-// FindByURL is a helper method to define mock.On call
250-// - ctx context.Context
251-// - url string
252-func (_e *MockHistoryRepository_Expecter) FindByURL(ctx interface{}, url interface{}) *MockHistoryRepository_FindByURL_Call {
253- return &MockHistoryRepository_FindByURL_Call{Call: _e.mock.On("FindByURL", ctx, url)}
254-}
255-
256-func (_c *MockHistoryRepository_FindByURL_Call) Run(run func(ctx context.Context, url string)) *MockHistoryRepository_FindByURL_Call {
257- _c.Call.Run(func(args mock.Arguments) {
258- run(args[0].(context.Context), args[1].(string))
259- })
260- return _c
261-}
262-
263-func (_c *MockHistoryRepository_FindByURL_Call) Return(_a0 *entity.HistoryEntry, _a1 error) *MockHistoryRepository_FindByURL_Call {
264- _c.Call.Return(_a0, _a1)
265- return _c
266-}
267-
268-func (_c *MockHistoryRepository_FindByURL_Call) RunAndReturn(run func(context.Context, string) (*entity.HistoryEntry, error)) *MockHistoryRepository_FindByURL_Call {
269- _c.Call.Return(run)
270- return _c
271-}
272-
273-// GetDailyVisitCount provides a mock function with given fields: ctx, daysAgo
274-func (_m *MockHistoryRepository) GetDailyVisitCount(ctx context.Context, daysAgo string) ([]*entity.DailyVisitCount, error) {
275- ret := _m.Called(ctx, daysAgo)
276-
277- if len(ret) == 0 {
278- panic("no return value specified for GetDailyVisitCount")
279- }
280-
281- var r0 []*entity.DailyVisitCount
282- var r1 error
283- if rf, ok := ret.Get(0).(func(context.Context, string) ([]*entity.DailyVisitCount, error)); ok {
284- return rf(ctx, daysAgo)
285- }
286- if rf, ok := ret.Get(0).(func(context.Context, string) []*entity.DailyVisitCount); ok {
287- r0 = rf(ctx, daysAgo)
288- } else {
289- if ret.Get(0) != nil {
290- r0 = ret.Get(0).([]*entity.DailyVisitCount)
291- }
292- }
293-
294- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
295- r1 = rf(ctx, daysAgo)
296- } else {
297- r1 = ret.Error(1)
298- }
299-
300- return r0, r1
301-}
302-
303-// MockHistoryRepository_GetDailyVisitCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDailyVisitCount'
304-type MockHistoryRepository_GetDailyVisitCount_Call struct {
305- *mock.Call
306-}
307-
308-// GetDailyVisitCount is a helper method to define mock.On call
309-// - ctx context.Context
310-// - daysAgo string
311-func (_e *MockHistoryRepository_Expecter) GetDailyVisitCount(ctx interface{}, daysAgo interface{}) *MockHistoryRepository_GetDailyVisitCount_Call {
312- return &MockHistoryRepository_GetDailyVisitCount_Call{Call: _e.mock.On("GetDailyVisitCount", ctx, daysAgo)}
313-}
314-
315-func (_c *MockHistoryRepository_GetDailyVisitCount_Call) Run(run func(ctx context.Context, daysAgo string)) *MockHistoryRepository_GetDailyVisitCount_Call {
316- _c.Call.Run(func(args mock.Arguments) {
317- run(args[0].(context.Context), args[1].(string))
318- })
319- return _c
320-}
321-
322-func (_c *MockHistoryRepository_GetDailyVisitCount_Call) Return(_a0 []*entity.DailyVisitCount, _a1 error) *MockHistoryRepository_GetDailyVisitCount_Call {
323- _c.Call.Return(_a0, _a1)
324- return _c
325-}
326-
327-func (_c *MockHistoryRepository_GetDailyVisitCount_Call) RunAndReturn(run func(context.Context, string) ([]*entity.DailyVisitCount, error)) *MockHistoryRepository_GetDailyVisitCount_Call {
328- _c.Call.Return(run)
329- return _c
330-}
331-
332-// GetDomainStats provides a mock function with given fields: ctx, limit
333-func (_m *MockHistoryRepository) GetDomainStats(ctx context.Context, limit int) ([]*entity.DomainStat, error) {
334- ret := _m.Called(ctx, limit)
335-
336- if len(ret) == 0 {
337- panic("no return value specified for GetDomainStats")
338- }
339-
340- var r0 []*entity.DomainStat
341- var r1 error
342- if rf, ok := ret.Get(0).(func(context.Context, int) ([]*entity.DomainStat, error)); ok {
343- return rf(ctx, limit)
344- }
345- if rf, ok := ret.Get(0).(func(context.Context, int) []*entity.DomainStat); ok {
346- r0 = rf(ctx, limit)
347- } else {
348- if ret.Get(0) != nil {
349- r0 = ret.Get(0).([]*entity.DomainStat)
350- }
351- }
352-
353- if rf, ok := ret.Get(1).(func(context.Context, int) error); ok {
354- r1 = rf(ctx, limit)
355- } else {
356- r1 = ret.Error(1)
357- }
358-
359- return r0, r1
360-}
361-
362-// MockHistoryRepository_GetDomainStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDomainStats'
363-type MockHistoryRepository_GetDomainStats_Call struct {
364- *mock.Call
365-}
366-
367-// GetDomainStats is a helper method to define mock.On call
368-// - ctx context.Context
369-// - limit int
370-func (_e *MockHistoryRepository_Expecter) GetDomainStats(ctx interface{}, limit interface{}) *MockHistoryRepository_GetDomainStats_Call {
371- return &MockHistoryRepository_GetDomainStats_Call{Call: _e.mock.On("GetDomainStats", ctx, limit)}
372-}
373-
374-func (_c *MockHistoryRepository_GetDomainStats_Call) Run(run func(ctx context.Context, limit int)) *MockHistoryRepository_GetDomainStats_Call {
375- _c.Call.Run(func(args mock.Arguments) {
376- run(args[0].(context.Context), args[1].(int))
377- })
378- return _c
379-}
380-
381-func (_c *MockHistoryRepository_GetDomainStats_Call) Return(_a0 []*entity.DomainStat, _a1 error) *MockHistoryRepository_GetDomainStats_Call {
382- _c.Call.Return(_a0, _a1)
383- return _c
384-}
385-
386-func (_c *MockHistoryRepository_GetDomainStats_Call) RunAndReturn(run func(context.Context, int) ([]*entity.DomainStat, error)) *MockHistoryRepository_GetDomainStats_Call {
387- _c.Call.Return(run)
388- return _c
389-}
390-
391-// GetHourlyDistribution provides a mock function with given fields: ctx
392-func (_m *MockHistoryRepository) GetHourlyDistribution(ctx context.Context) ([]*entity.HourlyDistribution, error) {
393- ret := _m.Called(ctx)
394-
395- if len(ret) == 0 {
396- panic("no return value specified for GetHourlyDistribution")
397- }
398-
399- var r0 []*entity.HourlyDistribution
400- var r1 error
401- if rf, ok := ret.Get(0).(func(context.Context) ([]*entity.HourlyDistribution, error)); ok {
402- return rf(ctx)
403- }
404- if rf, ok := ret.Get(0).(func(context.Context) []*entity.HourlyDistribution); ok {
405- r0 = rf(ctx)
406- } else {
407- if ret.Get(0) != nil {
408- r0 = ret.Get(0).([]*entity.HourlyDistribution)
409- }
410- }
411-
412- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
413- r1 = rf(ctx)
414- } else {
415- r1 = ret.Error(1)
416- }
417-
418- return r0, r1
419-}
420-
421-// MockHistoryRepository_GetHourlyDistribution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHourlyDistribution'
422-type MockHistoryRepository_GetHourlyDistribution_Call struct {
423- *mock.Call
424-}
425-
426-// GetHourlyDistribution is a helper method to define mock.On call
427-// - ctx context.Context
428-func (_e *MockHistoryRepository_Expecter) GetHourlyDistribution(ctx interface{}) *MockHistoryRepository_GetHourlyDistribution_Call {
429- return &MockHistoryRepository_GetHourlyDistribution_Call{Call: _e.mock.On("GetHourlyDistribution", ctx)}
430-}
431-
432-func (_c *MockHistoryRepository_GetHourlyDistribution_Call) Run(run func(ctx context.Context)) *MockHistoryRepository_GetHourlyDistribution_Call {
433- _c.Call.Run(func(args mock.Arguments) {
434- run(args[0].(context.Context))
435- })
436- return _c
437-}
438-
439-func (_c *MockHistoryRepository_GetHourlyDistribution_Call) Return(_a0 []*entity.HourlyDistribution, _a1 error) *MockHistoryRepository_GetHourlyDistribution_Call {
440- _c.Call.Return(_a0, _a1)
441- return _c
442-}
443-
444-func (_c *MockHistoryRepository_GetHourlyDistribution_Call) RunAndReturn(run func(context.Context) ([]*entity.HourlyDistribution, error)) *MockHistoryRepository_GetHourlyDistribution_Call {
445- _c.Call.Return(run)
446- return _c
447-}
448-
449-// GetRecent provides a mock function with given fields: ctx, limit, offset
450-func (_m *MockHistoryRepository) GetRecent(ctx context.Context, limit int, offset int) ([]*entity.HistoryEntry, error) {
451- ret := _m.Called(ctx, limit, offset)
452-
453- if len(ret) == 0 {
454- panic("no return value specified for GetRecent")
455- }
456-
457- var r0 []*entity.HistoryEntry
458- var r1 error
459- if rf, ok := ret.Get(0).(func(context.Context, int, int) ([]*entity.HistoryEntry, error)); ok {
460- return rf(ctx, limit, offset)
461- }
462- if rf, ok := ret.Get(0).(func(context.Context, int, int) []*entity.HistoryEntry); ok {
463- r0 = rf(ctx, limit, offset)
464- } else {
465- if ret.Get(0) != nil {
466- r0 = ret.Get(0).([]*entity.HistoryEntry)
467- }
468- }
469-
470- if rf, ok := ret.Get(1).(func(context.Context, int, int) error); ok {
471- r1 = rf(ctx, limit, offset)
472- } else {
473- r1 = ret.Error(1)
474- }
475-
476- return r0, r1
477-}
478-
479-// MockHistoryRepository_GetRecent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRecent'
480-type MockHistoryRepository_GetRecent_Call struct {
481- *mock.Call
482-}
483-
484-// GetRecent is a helper method to define mock.On call
485-// - ctx context.Context
486-// - limit int
487-// - offset int
488-func (_e *MockHistoryRepository_Expecter) GetRecent(ctx interface{}, limit interface{}, offset interface{}) *MockHistoryRepository_GetRecent_Call {
489- return &MockHistoryRepository_GetRecent_Call{Call: _e.mock.On("GetRecent", ctx, limit, offset)}
490-}
491-
492-func (_c *MockHistoryRepository_GetRecent_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockHistoryRepository_GetRecent_Call {
493- _c.Call.Run(func(args mock.Arguments) {
494- run(args[0].(context.Context), args[1].(int), args[2].(int))
495- })
496- return _c
497-}
498-
499-func (_c *MockHistoryRepository_GetRecent_Call) Return(_a0 []*entity.HistoryEntry, _a1 error) *MockHistoryRepository_GetRecent_Call {
500- _c.Call.Return(_a0, _a1)
501- return _c
502-}
503-
504-func (_c *MockHistoryRepository_GetRecent_Call) RunAndReturn(run func(context.Context, int, int) ([]*entity.HistoryEntry, error)) *MockHistoryRepository_GetRecent_Call {
505- _c.Call.Return(run)
506- return _c
507-}
508-
509-// GetStats provides a mock function with given fields: ctx
510-func (_m *MockHistoryRepository) GetStats(ctx context.Context) (*entity.HistoryStats, error) {
511- ret := _m.Called(ctx)
512-
513- if len(ret) == 0 {
514- panic("no return value specified for GetStats")
515- }
516-
517- var r0 *entity.HistoryStats
518- var r1 error
519- if rf, ok := ret.Get(0).(func(context.Context) (*entity.HistoryStats, error)); ok {
520- return rf(ctx)
521- }
522- if rf, ok := ret.Get(0).(func(context.Context) *entity.HistoryStats); ok {
523- r0 = rf(ctx)
524- } else {
525- if ret.Get(0) != nil {
526- r0 = ret.Get(0).(*entity.HistoryStats)
527- }
528- }
529-
530- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
531- r1 = rf(ctx)
532- } else {
533- r1 = ret.Error(1)
534- }
535-
536- return r0, r1
537-}
538-
539-// MockHistoryRepository_GetStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStats'
540-type MockHistoryRepository_GetStats_Call struct {
541- *mock.Call
542-}
543-
544-// GetStats is a helper method to define mock.On call
545-// - ctx context.Context
546-func (_e *MockHistoryRepository_Expecter) GetStats(ctx interface{}) *MockHistoryRepository_GetStats_Call {
547- return &MockHistoryRepository_GetStats_Call{Call: _e.mock.On("GetStats", ctx)}
548-}
549-
550-func (_c *MockHistoryRepository_GetStats_Call) Run(run func(ctx context.Context)) *MockHistoryRepository_GetStats_Call {
551- _c.Call.Run(func(args mock.Arguments) {
552- run(args[0].(context.Context))
553- })
554- return _c
555-}
556-
557-func (_c *MockHistoryRepository_GetStats_Call) Return(_a0 *entity.HistoryStats, _a1 error) *MockHistoryRepository_GetStats_Call {
558- _c.Call.Return(_a0, _a1)
559- return _c
560-}
561-
562-func (_c *MockHistoryRepository_GetStats_Call) RunAndReturn(run func(context.Context) (*entity.HistoryStats, error)) *MockHistoryRepository_GetStats_Call {
563- _c.Call.Return(run)
564- return _c
565-}
566-
567-// IncrementVisitCount provides a mock function with given fields: ctx, url
568-func (_m *MockHistoryRepository) IncrementVisitCount(ctx context.Context, url string) error {
569- ret := _m.Called(ctx, url)
570-
571- if len(ret) == 0 {
572- panic("no return value specified for IncrementVisitCount")
573- }
574-
575- var r0 error
576- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
577- r0 = rf(ctx, url)
578- } else {
579- r0 = ret.Error(0)
580- }
581-
582- return r0
583-}
584-
585-// MockHistoryRepository_IncrementVisitCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IncrementVisitCount'
586-type MockHistoryRepository_IncrementVisitCount_Call struct {
587- *mock.Call
588-}
589-
590-// IncrementVisitCount is a helper method to define mock.On call
591-// - ctx context.Context
592-// - url string
593-func (_e *MockHistoryRepository_Expecter) IncrementVisitCount(ctx interface{}, url interface{}) *MockHistoryRepository_IncrementVisitCount_Call {
594- return &MockHistoryRepository_IncrementVisitCount_Call{Call: _e.mock.On("IncrementVisitCount", ctx, url)}
595-}
596-
597-func (_c *MockHistoryRepository_IncrementVisitCount_Call) Run(run func(ctx context.Context, url string)) *MockHistoryRepository_IncrementVisitCount_Call {
598- _c.Call.Run(func(args mock.Arguments) {
599- run(args[0].(context.Context), args[1].(string))
600- })
601- return _c
602-}
603-
604-func (_c *MockHistoryRepository_IncrementVisitCount_Call) Return(_a0 error) *MockHistoryRepository_IncrementVisitCount_Call {
605- _c.Call.Return(_a0)
606- return _c
607-}
608-
609-func (_c *MockHistoryRepository_IncrementVisitCount_Call) RunAndReturn(run func(context.Context, string) error) *MockHistoryRepository_IncrementVisitCount_Call {
610- _c.Call.Return(run)
611- return _c
612-}
613-
614-// Save provides a mock function with given fields: ctx, entry
615-func (_m *MockHistoryRepository) Save(ctx context.Context, entry *entity.HistoryEntry) error {
616- ret := _m.Called(ctx, entry)
617-
618- if len(ret) == 0 {
619- panic("no return value specified for Save")
620- }
621-
622- var r0 error
623- if rf, ok := ret.Get(0).(func(context.Context, *entity.HistoryEntry) error); ok {
624- r0 = rf(ctx, entry)
625- } else {
626- r0 = ret.Error(0)
627- }
628-
629- return r0
630-}
631-
632-// MockHistoryRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
633-type MockHistoryRepository_Save_Call struct {
634- *mock.Call
635-}
636-
637-// Save is a helper method to define mock.On call
638-// - ctx context.Context
639-// - entry *entity.HistoryEntry
640-func (_e *MockHistoryRepository_Expecter) Save(ctx interface{}, entry interface{}) *MockHistoryRepository_Save_Call {
641- return &MockHistoryRepository_Save_Call{Call: _e.mock.On("Save", ctx, entry)}
642-}
643-
644-func (_c *MockHistoryRepository_Save_Call) Run(run func(ctx context.Context, entry *entity.HistoryEntry)) *MockHistoryRepository_Save_Call {
645- _c.Call.Run(func(args mock.Arguments) {
646- run(args[0].(context.Context), args[1].(*entity.HistoryEntry))
647- })
648- return _c
649-}
650-
651-func (_c *MockHistoryRepository_Save_Call) Return(_a0 error) *MockHistoryRepository_Save_Call {
652- _c.Call.Return(_a0)
653- return _c
654-}
655-
656-func (_c *MockHistoryRepository_Save_Call) RunAndReturn(run func(context.Context, *entity.HistoryEntry) error) *MockHistoryRepository_Save_Call {
657- _c.Call.Return(run)
658- return _c
659-}
660-
661-// Search provides a mock function with given fields: ctx, query, limit
662-func (_m *MockHistoryRepository) Search(ctx context.Context, query string, limit int) ([]entity.HistoryMatch, error) {
663- ret := _m.Called(ctx, query, limit)
664-
665- if len(ret) == 0 {
666- panic("no return value specified for Search")
667- }
668-
669- var r0 []entity.HistoryMatch
670- var r1 error
671- if rf, ok := ret.Get(0).(func(context.Context, string, int) ([]entity.HistoryMatch, error)); ok {
672- return rf(ctx, query, limit)
673- }
674- if rf, ok := ret.Get(0).(func(context.Context, string, int) []entity.HistoryMatch); ok {
675- r0 = rf(ctx, query, limit)
676- } else {
677- if ret.Get(0) != nil {
678- r0 = ret.Get(0).([]entity.HistoryMatch)
679- }
680- }
681-
682- if rf, ok := ret.Get(1).(func(context.Context, string, int) error); ok {
683- r1 = rf(ctx, query, limit)
684- } else {
685- r1 = ret.Error(1)
686- }
687-
688- return r0, r1
689-}
690-
691-// MockHistoryRepository_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
692-type MockHistoryRepository_Search_Call struct {
693- *mock.Call
694-}
695-
696-// Search is a helper method to define mock.On call
697-// - ctx context.Context
698-// - query string
699-// - limit int
700-func (_e *MockHistoryRepository_Expecter) Search(ctx interface{}, query interface{}, limit interface{}) *MockHistoryRepository_Search_Call {
701- return &MockHistoryRepository_Search_Call{Call: _e.mock.On("Search", ctx, query, limit)}
702-}
703-
704-func (_c *MockHistoryRepository_Search_Call) Run(run func(ctx context.Context, query string, limit int)) *MockHistoryRepository_Search_Call {
705- _c.Call.Run(func(args mock.Arguments) {
706- run(args[0].(context.Context), args[1].(string), args[2].(int))
707- })
708- return _c
709-}
710-
711-func (_c *MockHistoryRepository_Search_Call) Return(_a0 []entity.HistoryMatch, _a1 error) *MockHistoryRepository_Search_Call {
712- _c.Call.Return(_a0, _a1)
713- return _c
714-}
715-
716-func (_c *MockHistoryRepository_Search_Call) RunAndReturn(run func(context.Context, string, int) ([]entity.HistoryMatch, error)) *MockHistoryRepository_Search_Call {
717- _c.Call.Return(run)
718- return _c
719-}
720-
721-// NewMockHistoryRepository creates a new instance of MockHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
722-// The first argument is typically a *testing.T value.
723-func NewMockHistoryRepository(t interface {
724- mock.TestingT
725- Cleanup(func())
726-}) *MockHistoryRepository {
727- mock := &MockHistoryRepository{}
728- mock.Mock.Test(t)
729-
730- t.Cleanup(func() { mock.AssertExpectations(t) })
731-
732- return mock
733-}
D internal/domain/repository/mocks/mock_tag_repository.go +0 -462
@@ -1,462 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- entity "github.com/bnema/dumber/internal/domain/entity"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockTagRepository is an autogenerated mock type for the TagRepository type
13-type MockTagRepository struct {
14- mock.Mock
15-}
16-
17-type MockTagRepository_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockTagRepository) EXPECT() *MockTagRepository_Expecter {
22- return &MockTagRepository_Expecter{mock: &_m.Mock}
23-}
24-
25-// AssignToFavorite provides a mock function with given fields: ctx, tagID, favID
26-func (_m *MockTagRepository) AssignToFavorite(ctx context.Context, tagID entity.TagID, favID entity.FavoriteID) error {
27- ret := _m.Called(ctx, tagID, favID)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for AssignToFavorite")
31- }
32-
33- var r0 error
34- if rf, ok := ret.Get(0).(func(context.Context, entity.TagID, entity.FavoriteID) error); ok {
35- r0 = rf(ctx, tagID, favID)
36- } else {
37- r0 = ret.Error(0)
38- }
39-
40- return r0
41-}
42-
43-// MockTagRepository_AssignToFavorite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignToFavorite'
44-type MockTagRepository_AssignToFavorite_Call struct {
45- *mock.Call
46-}
47-
48-// AssignToFavorite is a helper method to define mock.On call
49-// - ctx context.Context
50-// - tagID entity.TagID
51-// - favID entity.FavoriteID
52-func (_e *MockTagRepository_Expecter) AssignToFavorite(ctx interface{}, tagID interface{}, favID interface{}) *MockTagRepository_AssignToFavorite_Call {
53- return &MockTagRepository_AssignToFavorite_Call{Call: _e.mock.On("AssignToFavorite", ctx, tagID, favID)}
54-}
55-
56-func (_c *MockTagRepository_AssignToFavorite_Call) Run(run func(ctx context.Context, tagID entity.TagID, favID entity.FavoriteID)) *MockTagRepository_AssignToFavorite_Call {
57- _c.Call.Run(func(args mock.Arguments) {
58- run(args[0].(context.Context), args[1].(entity.TagID), args[2].(entity.FavoriteID))
59- })
60- return _c
61-}
62-
63-func (_c *MockTagRepository_AssignToFavorite_Call) Return(_a0 error) *MockTagRepository_AssignToFavorite_Call {
64- _c.Call.Return(_a0)
65- return _c
66-}
67-
68-func (_c *MockTagRepository_AssignToFavorite_Call) RunAndReturn(run func(context.Context, entity.TagID, entity.FavoriteID) error) *MockTagRepository_AssignToFavorite_Call {
69- _c.Call.Return(run)
70- return _c
71-}
72-
73-// Delete provides a mock function with given fields: ctx, id
74-func (_m *MockTagRepository) Delete(ctx context.Context, id entity.TagID) error {
75- ret := _m.Called(ctx, id)
76-
77- if len(ret) == 0 {
78- panic("no return value specified for Delete")
79- }
80-
81- var r0 error
82- if rf, ok := ret.Get(0).(func(context.Context, entity.TagID) error); ok {
83- r0 = rf(ctx, id)
84- } else {
85- r0 = ret.Error(0)
86- }
87-
88- return r0
89-}
90-
91-// MockTagRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
92-type MockTagRepository_Delete_Call struct {
93- *mock.Call
94-}
95-
96-// Delete is a helper method to define mock.On call
97-// - ctx context.Context
98-// - id entity.TagID
99-func (_e *MockTagRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockTagRepository_Delete_Call {
100- return &MockTagRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, id)}
101-}
102-
103-func (_c *MockTagRepository_Delete_Call) Run(run func(ctx context.Context, id entity.TagID)) *MockTagRepository_Delete_Call {
104- _c.Call.Run(func(args mock.Arguments) {
105- run(args[0].(context.Context), args[1].(entity.TagID))
106- })
107- return _c
108-}
109-
110-func (_c *MockTagRepository_Delete_Call) Return(_a0 error) *MockTagRepository_Delete_Call {
111- _c.Call.Return(_a0)
112- return _c
113-}
114-
115-func (_c *MockTagRepository_Delete_Call) RunAndReturn(run func(context.Context, entity.TagID) error) *MockTagRepository_Delete_Call {
116- _c.Call.Return(run)
117- return _c
118-}
119-
120-// FindByID provides a mock function with given fields: ctx, id
121-func (_m *MockTagRepository) FindByID(ctx context.Context, id entity.TagID) (*entity.Tag, error) {
122- ret := _m.Called(ctx, id)
123-
124- if len(ret) == 0 {
125- panic("no return value specified for FindByID")
126- }
127-
128- var r0 *entity.Tag
129- var r1 error
130- if rf, ok := ret.Get(0).(func(context.Context, entity.TagID) (*entity.Tag, error)); ok {
131- return rf(ctx, id)
132- }
133- if rf, ok := ret.Get(0).(func(context.Context, entity.TagID) *entity.Tag); ok {
134- r0 = rf(ctx, id)
135- } else {
136- if ret.Get(0) != nil {
137- r0 = ret.Get(0).(*entity.Tag)
138- }
139- }
140-
141- if rf, ok := ret.Get(1).(func(context.Context, entity.TagID) error); ok {
142- r1 = rf(ctx, id)
143- } else {
144- r1 = ret.Error(1)
145- }
146-
147- return r0, r1
148-}
149-
150-// MockTagRepository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
151-type MockTagRepository_FindByID_Call struct {
152- *mock.Call
153-}
154-
155-// FindByID is a helper method to define mock.On call
156-// - ctx context.Context
157-// - id entity.TagID
158-func (_e *MockTagRepository_Expecter) FindByID(ctx interface{}, id interface{}) *MockTagRepository_FindByID_Call {
159- return &MockTagRepository_FindByID_Call{Call: _e.mock.On("FindByID", ctx, id)}
160-}
161-
162-func (_c *MockTagRepository_FindByID_Call) Run(run func(ctx context.Context, id entity.TagID)) *MockTagRepository_FindByID_Call {
163- _c.Call.Run(func(args mock.Arguments) {
164- run(args[0].(context.Context), args[1].(entity.TagID))
165- })
166- return _c
167-}
168-
169-func (_c *MockTagRepository_FindByID_Call) Return(_a0 *entity.Tag, _a1 error) *MockTagRepository_FindByID_Call {
170- _c.Call.Return(_a0, _a1)
171- return _c
172-}
173-
174-func (_c *MockTagRepository_FindByID_Call) RunAndReturn(run func(context.Context, entity.TagID) (*entity.Tag, error)) *MockTagRepository_FindByID_Call {
175- _c.Call.Return(run)
176- return _c
177-}
178-
179-// FindByName provides a mock function with given fields: ctx, name
180-func (_m *MockTagRepository) FindByName(ctx context.Context, name string) (*entity.Tag, error) {
181- ret := _m.Called(ctx, name)
182-
183- if len(ret) == 0 {
184- panic("no return value specified for FindByName")
185- }
186-
187- var r0 *entity.Tag
188- var r1 error
189- if rf, ok := ret.Get(0).(func(context.Context, string) (*entity.Tag, error)); ok {
190- return rf(ctx, name)
191- }
192- if rf, ok := ret.Get(0).(func(context.Context, string) *entity.Tag); ok {
193- r0 = rf(ctx, name)
194- } else {
195- if ret.Get(0) != nil {
196- r0 = ret.Get(0).(*entity.Tag)
197- }
198- }
199-
200- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
201- r1 = rf(ctx, name)
202- } else {
203- r1 = ret.Error(1)
204- }
205-
206- return r0, r1
207-}
208-
209-// MockTagRepository_FindByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByName'
210-type MockTagRepository_FindByName_Call struct {
211- *mock.Call
212-}
213-
214-// FindByName is a helper method to define mock.On call
215-// - ctx context.Context
216-// - name string
217-func (_e *MockTagRepository_Expecter) FindByName(ctx interface{}, name interface{}) *MockTagRepository_FindByName_Call {
218- return &MockTagRepository_FindByName_Call{Call: _e.mock.On("FindByName", ctx, name)}
219-}
220-
221-func (_c *MockTagRepository_FindByName_Call) Run(run func(ctx context.Context, name string)) *MockTagRepository_FindByName_Call {
222- _c.Call.Run(func(args mock.Arguments) {
223- run(args[0].(context.Context), args[1].(string))
224- })
225- return _c
226-}
227-
228-func (_c *MockTagRepository_FindByName_Call) Return(_a0 *entity.Tag, _a1 error) *MockTagRepository_FindByName_Call {
229- _c.Call.Return(_a0, _a1)
230- return _c
231-}
232-
233-func (_c *MockTagRepository_FindByName_Call) RunAndReturn(run func(context.Context, string) (*entity.Tag, error)) *MockTagRepository_FindByName_Call {
234- _c.Call.Return(run)
235- return _c
236-}
237-
238-// GetAll provides a mock function with given fields: ctx
239-func (_m *MockTagRepository) GetAll(ctx context.Context) ([]*entity.Tag, error) {
240- ret := _m.Called(ctx)
241-
242- if len(ret) == 0 {
243- panic("no return value specified for GetAll")
244- }
245-
246- var r0 []*entity.Tag
247- var r1 error
248- if rf, ok := ret.Get(0).(func(context.Context) ([]*entity.Tag, error)); ok {
249- return rf(ctx)
250- }
251- if rf, ok := ret.Get(0).(func(context.Context) []*entity.Tag); ok {
252- r0 = rf(ctx)
253- } else {
254- if ret.Get(0) != nil {
255- r0 = ret.Get(0).([]*entity.Tag)
256- }
257- }
258-
259- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
260- r1 = rf(ctx)
261- } else {
262- r1 = ret.Error(1)
263- }
264-
265- return r0, r1
266-}
267-
268-// MockTagRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
269-type MockTagRepository_GetAll_Call struct {
270- *mock.Call
271-}
272-
273-// GetAll is a helper method to define mock.On call
274-// - ctx context.Context
275-func (_e *MockTagRepository_Expecter) GetAll(ctx interface{}) *MockTagRepository_GetAll_Call {
276- return &MockTagRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx)}
277-}
278-
279-func (_c *MockTagRepository_GetAll_Call) Run(run func(ctx context.Context)) *MockTagRepository_GetAll_Call {
280- _c.Call.Run(func(args mock.Arguments) {
281- run(args[0].(context.Context))
282- })
283- return _c
284-}
285-
286-func (_c *MockTagRepository_GetAll_Call) Return(_a0 []*entity.Tag, _a1 error) *MockTagRepository_GetAll_Call {
287- _c.Call.Return(_a0, _a1)
288- return _c
289-}
290-
291-func (_c *MockTagRepository_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entity.Tag, error)) *MockTagRepository_GetAll_Call {
292- _c.Call.Return(run)
293- return _c
294-}
295-
296-// GetForFavorite provides a mock function with given fields: ctx, favID
297-func (_m *MockTagRepository) GetForFavorite(ctx context.Context, favID entity.FavoriteID) ([]*entity.Tag, error) {
298- ret := _m.Called(ctx, favID)
299-
300- if len(ret) == 0 {
301- panic("no return value specified for GetForFavorite")
302- }
303-
304- var r0 []*entity.Tag
305- var r1 error
306- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID) ([]*entity.Tag, error)); ok {
307- return rf(ctx, favID)
308- }
309- if rf, ok := ret.Get(0).(func(context.Context, entity.FavoriteID) []*entity.Tag); ok {
310- r0 = rf(ctx, favID)
311- } else {
312- if ret.Get(0) != nil {
313- r0 = ret.Get(0).([]*entity.Tag)
314- }
315- }
316-
317- if rf, ok := ret.Get(1).(func(context.Context, entity.FavoriteID) error); ok {
318- r1 = rf(ctx, favID)
319- } else {
320- r1 = ret.Error(1)
321- }
322-
323- return r0, r1
324-}
325-
326-// MockTagRepository_GetForFavorite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetForFavorite'
327-type MockTagRepository_GetForFavorite_Call struct {
328- *mock.Call
329-}
330-
331-// GetForFavorite is a helper method to define mock.On call
332-// - ctx context.Context
333-// - favID entity.FavoriteID
334-func (_e *MockTagRepository_Expecter) GetForFavorite(ctx interface{}, favID interface{}) *MockTagRepository_GetForFavorite_Call {
335- return &MockTagRepository_GetForFavorite_Call{Call: _e.mock.On("GetForFavorite", ctx, favID)}
336-}
337-
338-func (_c *MockTagRepository_GetForFavorite_Call) Run(run func(ctx context.Context, favID entity.FavoriteID)) *MockTagRepository_GetForFavorite_Call {
339- _c.Call.Run(func(args mock.Arguments) {
340- run(args[0].(context.Context), args[1].(entity.FavoriteID))
341- })
342- return _c
343-}
344-
345-func (_c *MockTagRepository_GetForFavorite_Call) Return(_a0 []*entity.Tag, _a1 error) *MockTagRepository_GetForFavorite_Call {
346- _c.Call.Return(_a0, _a1)
347- return _c
348-}
349-
350-func (_c *MockTagRepository_GetForFavorite_Call) RunAndReturn(run func(context.Context, entity.FavoriteID) ([]*entity.Tag, error)) *MockTagRepository_GetForFavorite_Call {
351- _c.Call.Return(run)
352- return _c
353-}
354-
355-// RemoveFromFavorite provides a mock function with given fields: ctx, tagID, favID
356-func (_m *MockTagRepository) RemoveFromFavorite(ctx context.Context, tagID entity.TagID, favID entity.FavoriteID) error {
357- ret := _m.Called(ctx, tagID, favID)
358-
359- if len(ret) == 0 {
360- panic("no return value specified for RemoveFromFavorite")
361- }
362-
363- var r0 error
364- if rf, ok := ret.Get(0).(func(context.Context, entity.TagID, entity.FavoriteID) error); ok {
365- r0 = rf(ctx, tagID, favID)
366- } else {
367- r0 = ret.Error(0)
368- }
369-
370- return r0
371-}
372-
373-// MockTagRepository_RemoveFromFavorite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveFromFavorite'
374-type MockTagRepository_RemoveFromFavorite_Call struct {
375- *mock.Call
376-}
377-
378-// RemoveFromFavorite is a helper method to define mock.On call
379-// - ctx context.Context
380-// - tagID entity.TagID
381-// - favID entity.FavoriteID
382-func (_e *MockTagRepository_Expecter) RemoveFromFavorite(ctx interface{}, tagID interface{}, favID interface{}) *MockTagRepository_RemoveFromFavorite_Call {
383- return &MockTagRepository_RemoveFromFavorite_Call{Call: _e.mock.On("RemoveFromFavorite", ctx, tagID, favID)}
384-}
385-
386-func (_c *MockTagRepository_RemoveFromFavorite_Call) Run(run func(ctx context.Context, tagID entity.TagID, favID entity.FavoriteID)) *MockTagRepository_RemoveFromFavorite_Call {
387- _c.Call.Run(func(args mock.Arguments) {
388- run(args[0].(context.Context), args[1].(entity.TagID), args[2].(entity.FavoriteID))
389- })
390- return _c
391-}
392-
393-func (_c *MockTagRepository_RemoveFromFavorite_Call) Return(_a0 error) *MockTagRepository_RemoveFromFavorite_Call {
394- _c.Call.Return(_a0)
395- return _c
396-}
397-
398-func (_c *MockTagRepository_RemoveFromFavorite_Call) RunAndReturn(run func(context.Context, entity.TagID, entity.FavoriteID) error) *MockTagRepository_RemoveFromFavorite_Call {
399- _c.Call.Return(run)
400- return _c
401-}
402-
403-// Save provides a mock function with given fields: ctx, tag
404-func (_m *MockTagRepository) Save(ctx context.Context, tag *entity.Tag) error {
405- ret := _m.Called(ctx, tag)
406-
407- if len(ret) == 0 {
408- panic("no return value specified for Save")
409- }
410-
411- var r0 error
412- if rf, ok := ret.Get(0).(func(context.Context, *entity.Tag) error); ok {
413- r0 = rf(ctx, tag)
414- } else {
415- r0 = ret.Error(0)
416- }
417-
418- return r0
419-}
420-
421-// MockTagRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
422-type MockTagRepository_Save_Call struct {
423- *mock.Call
424-}
425-
426-// Save is a helper method to define mock.On call
427-// - ctx context.Context
428-// - tag *entity.Tag
429-func (_e *MockTagRepository_Expecter) Save(ctx interface{}, tag interface{}) *MockTagRepository_Save_Call {
430- return &MockTagRepository_Save_Call{Call: _e.mock.On("Save", ctx, tag)}
431-}
432-
433-func (_c *MockTagRepository_Save_Call) Run(run func(ctx context.Context, tag *entity.Tag)) *MockTagRepository_Save_Call {
434- _c.Call.Run(func(args mock.Arguments) {
435- run(args[0].(context.Context), args[1].(*entity.Tag))
436- })
437- return _c
438-}
439-
440-func (_c *MockTagRepository_Save_Call) Return(_a0 error) *MockTagRepository_Save_Call {
441- _c.Call.Return(_a0)
442- return _c
443-}
444-
445-func (_c *MockTagRepository_Save_Call) RunAndReturn(run func(context.Context, *entity.Tag) error) *MockTagRepository_Save_Call {
446- _c.Call.Return(run)
447- return _c
448-}
449-
450-// NewMockTagRepository creates a new instance of MockTagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
451-// The first argument is typically a *testing.T value.
452-func NewMockTagRepository(t interface {
453- mock.TestingT
454- Cleanup(func())
455-}) *MockTagRepository {
456- mock := &MockTagRepository{}
457- mock.Mock.Test(t)
458-
459- t.Cleanup(func() { mock.AssertExpectations(t) })
460-
461- return mock
462-}
D internal/domain/repository/mocks/mock_zoom_repository.go +0 -248
@@ -1,248 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- context "context"
7-
8- entity "github.com/bnema/dumber/internal/domain/entity"
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockZoomRepository is an autogenerated mock type for the ZoomRepository type
13-type MockZoomRepository struct {
14- mock.Mock
15-}
16-
17-type MockZoomRepository_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockZoomRepository) EXPECT() *MockZoomRepository_Expecter {
22- return &MockZoomRepository_Expecter{mock: &_m.Mock}
23-}
24-
25-// Delete provides a mock function with given fields: ctx, domain
26-func (_m *MockZoomRepository) Delete(ctx context.Context, domain string) error {
27- ret := _m.Called(ctx, domain)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for Delete")
31- }
32-
33- var r0 error
34- if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
35- r0 = rf(ctx, domain)
36- } else {
37- r0 = ret.Error(0)
38- }
39-
40- return r0
41-}
42-
43-// MockZoomRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
44-type MockZoomRepository_Delete_Call struct {
45- *mock.Call
46-}
47-
48-// Delete is a helper method to define mock.On call
49-// - ctx context.Context
50-// - domain string
51-func (_e *MockZoomRepository_Expecter) Delete(ctx interface{}, domain interface{}) *MockZoomRepository_Delete_Call {
52- return &MockZoomRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, domain)}
53-}
54-
55-func (_c *MockZoomRepository_Delete_Call) Run(run func(ctx context.Context, domain string)) *MockZoomRepository_Delete_Call {
56- _c.Call.Run(func(args mock.Arguments) {
57- run(args[0].(context.Context), args[1].(string))
58- })
59- return _c
60-}
61-
62-func (_c *MockZoomRepository_Delete_Call) Return(_a0 error) *MockZoomRepository_Delete_Call {
63- _c.Call.Return(_a0)
64- return _c
65-}
66-
67-func (_c *MockZoomRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MockZoomRepository_Delete_Call {
68- _c.Call.Return(run)
69- return _c
70-}
71-
72-// Get provides a mock function with given fields: ctx, domain
73-func (_m *MockZoomRepository) Get(ctx context.Context, domain string) (*entity.ZoomLevel, error) {
74- ret := _m.Called(ctx, domain)
75-
76- if len(ret) == 0 {
77- panic("no return value specified for Get")
78- }
79-
80- var r0 *entity.ZoomLevel
81- var r1 error
82- if rf, ok := ret.Get(0).(func(context.Context, string) (*entity.ZoomLevel, error)); ok {
83- return rf(ctx, domain)
84- }
85- if rf, ok := ret.Get(0).(func(context.Context, string) *entity.ZoomLevel); ok {
86- r0 = rf(ctx, domain)
87- } else {
88- if ret.Get(0) != nil {
89- r0 = ret.Get(0).(*entity.ZoomLevel)
90- }
91- }
92-
93- if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
94- r1 = rf(ctx, domain)
95- } else {
96- r1 = ret.Error(1)
97- }
98-
99- return r0, r1
100-}
101-
102-// MockZoomRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
103-type MockZoomRepository_Get_Call struct {
104- *mock.Call
105-}
106-
107-// Get is a helper method to define mock.On call
108-// - ctx context.Context
109-// - domain string
110-func (_e *MockZoomRepository_Expecter) Get(ctx interface{}, domain interface{}) *MockZoomRepository_Get_Call {
111- return &MockZoomRepository_Get_Call{Call: _e.mock.On("Get", ctx, domain)}
112-}
113-
114-func (_c *MockZoomRepository_Get_Call) Run(run func(ctx context.Context, domain string)) *MockZoomRepository_Get_Call {
115- _c.Call.Run(func(args mock.Arguments) {
116- run(args[0].(context.Context), args[1].(string))
117- })
118- return _c
119-}
120-
121-func (_c *MockZoomRepository_Get_Call) Return(_a0 *entity.ZoomLevel, _a1 error) *MockZoomRepository_Get_Call {
122- _c.Call.Return(_a0, _a1)
123- return _c
124-}
125-
126-func (_c *MockZoomRepository_Get_Call) RunAndReturn(run func(context.Context, string) (*entity.ZoomLevel, error)) *MockZoomRepository_Get_Call {
127- _c.Call.Return(run)
128- return _c
129-}
130-
131-// GetAll provides a mock function with given fields: ctx
132-func (_m *MockZoomRepository) GetAll(ctx context.Context) ([]*entity.ZoomLevel, error) {
133- ret := _m.Called(ctx)
134-
135- if len(ret) == 0 {
136- panic("no return value specified for GetAll")
137- }
138-
139- var r0 []*entity.ZoomLevel
140- var r1 error
141- if rf, ok := ret.Get(0).(func(context.Context) ([]*entity.ZoomLevel, error)); ok {
142- return rf(ctx)
143- }
144- if rf, ok := ret.Get(0).(func(context.Context) []*entity.ZoomLevel); ok {
145- r0 = rf(ctx)
146- } else {
147- if ret.Get(0) != nil {
148- r0 = ret.Get(0).([]*entity.ZoomLevel)
149- }
150- }
151-
152- if rf, ok := ret.Get(1).(func(context.Context) error); ok {
153- r1 = rf(ctx)
154- } else {
155- r1 = ret.Error(1)
156- }
157-
158- return r0, r1
159-}
160-
161-// MockZoomRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
162-type MockZoomRepository_GetAll_Call struct {
163- *mock.Call
164-}
165-
166-// GetAll is a helper method to define mock.On call
167-// - ctx context.Context
168-func (_e *MockZoomRepository_Expecter) GetAll(ctx interface{}) *MockZoomRepository_GetAll_Call {
169- return &MockZoomRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx)}
170-}
171-
172-func (_c *MockZoomRepository_GetAll_Call) Run(run func(ctx context.Context)) *MockZoomRepository_GetAll_Call {
173- _c.Call.Run(func(args mock.Arguments) {
174- run(args[0].(context.Context))
175- })
176- return _c
177-}
178-
179-func (_c *MockZoomRepository_GetAll_Call) Return(_a0 []*entity.ZoomLevel, _a1 error) *MockZoomRepository_GetAll_Call {
180- _c.Call.Return(_a0, _a1)
181- return _c
182-}
183-
184-func (_c *MockZoomRepository_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entity.ZoomLevel, error)) *MockZoomRepository_GetAll_Call {
185- _c.Call.Return(run)
186- return _c
187-}
188-
189-// Set provides a mock function with given fields: ctx, level
190-func (_m *MockZoomRepository) Set(ctx context.Context, level *entity.ZoomLevel) error {
191- ret := _m.Called(ctx, level)
192-
193- if len(ret) == 0 {
194- panic("no return value specified for Set")
195- }
196-
197- var r0 error
198- if rf, ok := ret.Get(0).(func(context.Context, *entity.ZoomLevel) error); ok {
199- r0 = rf(ctx, level)
200- } else {
201- r0 = ret.Error(0)
202- }
203-
204- return r0
205-}
206-
207-// MockZoomRepository_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
208-type MockZoomRepository_Set_Call struct {
209- *mock.Call
210-}
211-
212-// Set is a helper method to define mock.On call
213-// - ctx context.Context
214-// - level *entity.ZoomLevel
215-func (_e *MockZoomRepository_Expecter) Set(ctx interface{}, level interface{}) *MockZoomRepository_Set_Call {
216- return &MockZoomRepository_Set_Call{Call: _e.mock.On("Set", ctx, level)}
217-}
218-
219-func (_c *MockZoomRepository_Set_Call) Run(run func(ctx context.Context, level *entity.ZoomLevel)) *MockZoomRepository_Set_Call {
220- _c.Call.Run(func(args mock.Arguments) {
221- run(args[0].(context.Context), args[1].(*entity.ZoomLevel))
222- })
223- return _c
224-}
225-
226-func (_c *MockZoomRepository_Set_Call) Return(_a0 error) *MockZoomRepository_Set_Call {
227- _c.Call.Return(_a0)
228- return _c
229-}
230-
231-func (_c *MockZoomRepository_Set_Call) RunAndReturn(run func(context.Context, *entity.ZoomLevel) error) *MockZoomRepository_Set_Call {
232- _c.Call.Return(run)
233- return _c
234-}
235-
236-// NewMockZoomRepository creates a new instance of MockZoomRepository. 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.
238-func NewMockZoomRepository(t interface {
239- mock.TestingT
240- Cleanup(func())
241-}) *MockZoomRepository {
242- mock := &MockZoomRepository{}
243- mock.Mock.Test(t)
244-
245- t.Cleanup(func() { mock.AssertExpectations(t) })
246-
247- return mock
248-}
A internal/domain/repository/mocks/mocks.go +2991 -0 large diff (2991 lines changed): collapsed
A internal/infrastructure/filtering/mocks/mocks.go +808 -0
@@ -0,0 +1,808 @@
1+// Code generated by mockery; DO NOT EDIT.
2+// github.com/vektra/mockery
3+// template: testify
4+
5+package mocks
6+
7+import (
8+ "context"
9+
10+ "github.com/bnema/dumber/internal/infrastructure/filtering"
11+ "github.com/bnema/puregotk-webkit/webkit"
12+ mock "github.com/stretchr/testify/mock"
13+)
14+
15+// NewMockFilterStore creates a new instance of MockFilterStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
16+// The first argument is typically a *testing.T value.
17+func NewMockFilterStore(t interface {
18+ mock.TestingT
19+ Cleanup(func())
20+}) *MockFilterStore {
21+ mock := &MockFilterStore{}
22+ mock.Mock.Test(t)
23+
24+ t.Cleanup(func() { mock.AssertExpectations(t) })
25+
26+ return mock
27+}
28+
29+// MockFilterStore is an autogenerated mock type for the FilterStore type
30+type MockFilterStore struct {
31+ mock.Mock
32+}
33+
34+type MockFilterStore_Expecter struct {
35+ mock *mock.Mock
36+}
37+
38+func (_m *MockFilterStore) EXPECT() *MockFilterStore_Expecter {
39+ return &MockFilterStore_Expecter{mock: &_m.Mock}
40+}
41+
42+// Compile provides a mock function for the type MockFilterStore
43+func (_mock *MockFilterStore) Compile(ctx context.Context, identifier string, jsonPath string) (*webkit.UserContentFilter, error) {
44+ ret := _mock.Called(ctx, identifier, jsonPath)
45+
46+ if len(ret) == 0 {
47+ panic("no return value specified for Compile")
48+ }
49+
50+ var r0 *webkit.UserContentFilter
51+ var r1 error
52+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (*webkit.UserContentFilter, error)); ok {
53+ return returnFunc(ctx, identifier, jsonPath)
54+ }
55+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) *webkit.UserContentFilter); ok {
56+ r0 = returnFunc(ctx, identifier, jsonPath)
57+ } else {
58+ if ret.Get(0) != nil {
59+ r0 = ret.Get(0).(*webkit.UserContentFilter)
60+ }
61+ }
62+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
63+ r1 = returnFunc(ctx, identifier, jsonPath)
64+ } else {
65+ r1 = ret.Error(1)
66+ }
67+ return r0, r1
68+}
69+
70+// MockFilterStore_Compile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compile'
71+type MockFilterStore_Compile_Call struct {
72+ *mock.Call
73+}
74+
75+// Compile is a helper method to define mock.On call
76+// - ctx context.Context
77+// - identifier string
78+// - jsonPath string
79+func (_e *MockFilterStore_Expecter) Compile(ctx interface{}, identifier interface{}, jsonPath interface{}) *MockFilterStore_Compile_Call {
80+ return &MockFilterStore_Compile_Call{Call: _e.mock.On("Compile", ctx, identifier, jsonPath)}
81+}
82+
83+func (_c *MockFilterStore_Compile_Call) Run(run func(ctx context.Context, identifier string, jsonPath string)) *MockFilterStore_Compile_Call {
84+ _c.Call.Run(func(args mock.Arguments) {
85+ var arg0 context.Context
86+ if args[0] != nil {
87+ arg0 = args[0].(context.Context)
88+ }
89+ var arg1 string
90+ if args[1] != nil {
91+ arg1 = args[1].(string)
92+ }
93+ var arg2 string
94+ if args[2] != nil {
95+ arg2 = args[2].(string)
96+ }
97+ run(
98+ arg0,
99+ arg1,
100+ arg2,
101+ )
102+ })
103+ return _c
104+}
105+
106+func (_c *MockFilterStore_Compile_Call) Return(userContentFilter *webkit.UserContentFilter, err error) *MockFilterStore_Compile_Call {
107+ _c.Call.Return(userContentFilter, err)
108+ return _c
109+}
110+
111+func (_c *MockFilterStore_Compile_Call) RunAndReturn(run func(ctx context.Context, identifier string, jsonPath string) (*webkit.UserContentFilter, error)) *MockFilterStore_Compile_Call {
112+ _c.Call.Return(run)
113+ return _c
114+}
115+
116+// FetchIdentifiers provides a mock function for the type MockFilterStore
117+func (_mock *MockFilterStore) FetchIdentifiers(ctx context.Context) ([]string, error) {
118+ ret := _mock.Called(ctx)
119+
120+ if len(ret) == 0 {
121+ panic("no return value specified for FetchIdentifiers")
122+ }
123+
124+ var r0 []string
125+ var r1 error
126+ if returnFunc, ok := ret.Get(0).(func(context.Context) ([]string, error)); ok {
127+ return returnFunc(ctx)
128+ }
129+ if returnFunc, ok := ret.Get(0).(func(context.Context) []string); ok {
130+ r0 = returnFunc(ctx)
131+ } else {
132+ if ret.Get(0) != nil {
133+ r0 = ret.Get(0).([]string)
134+ }
135+ }
136+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
137+ r1 = returnFunc(ctx)
138+ } else {
139+ r1 = ret.Error(1)
140+ }
141+ return r0, r1
142+}
143+
144+// MockFilterStore_FetchIdentifiers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchIdentifiers'
145+type MockFilterStore_FetchIdentifiers_Call struct {
146+ *mock.Call
147+}
148+
149+// FetchIdentifiers is a helper method to define mock.On call
150+// - ctx context.Context
151+func (_e *MockFilterStore_Expecter) FetchIdentifiers(ctx interface{}) *MockFilterStore_FetchIdentifiers_Call {
152+ return &MockFilterStore_FetchIdentifiers_Call{Call: _e.mock.On("FetchIdentifiers", ctx)}
153+}
154+
155+func (_c *MockFilterStore_FetchIdentifiers_Call) Run(run func(ctx context.Context)) *MockFilterStore_FetchIdentifiers_Call {
156+ _c.Call.Run(func(args mock.Arguments) {
157+ var arg0 context.Context
158+ if args[0] != nil {
159+ arg0 = args[0].(context.Context)
160+ }
161+ run(
162+ arg0,
163+ )
164+ })
165+ return _c
166+}
167+
168+func (_c *MockFilterStore_FetchIdentifiers_Call) Return(strings []string, err error) *MockFilterStore_FetchIdentifiers_Call {
169+ _c.Call.Return(strings, err)
170+ return _c
171+}
172+
173+func (_c *MockFilterStore_FetchIdentifiers_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockFilterStore_FetchIdentifiers_Call {
174+ _c.Call.Return(run)
175+ return _c
176+}
177+
178+// HasCompiledFilter provides a mock function for the type MockFilterStore
179+func (_mock *MockFilterStore) HasCompiledFilter(ctx context.Context, identifier string) bool {
180+ ret := _mock.Called(ctx, identifier)
181+
182+ if len(ret) == 0 {
183+ panic("no return value specified for HasCompiledFilter")
184+ }
185+
186+ var r0 bool
187+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) bool); ok {
188+ r0 = returnFunc(ctx, identifier)
189+ } else {
190+ r0 = ret.Get(0).(bool)
191+ }
192+ return r0
193+}
194+
195+// MockFilterStore_HasCompiledFilter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCompiledFilter'
196+type MockFilterStore_HasCompiledFilter_Call struct {
197+ *mock.Call
198+}
199+
200+// HasCompiledFilter is a helper method to define mock.On call
201+// - ctx context.Context
202+// - identifier string
203+func (_e *MockFilterStore_Expecter) HasCompiledFilter(ctx interface{}, identifier interface{}) *MockFilterStore_HasCompiledFilter_Call {
204+ return &MockFilterStore_HasCompiledFilter_Call{Call: _e.mock.On("HasCompiledFilter", ctx, identifier)}
205+}
206+
207+func (_c *MockFilterStore_HasCompiledFilter_Call) Run(run func(ctx context.Context, identifier string)) *MockFilterStore_HasCompiledFilter_Call {
208+ _c.Call.Run(func(args mock.Arguments) {
209+ var arg0 context.Context
210+ if args[0] != nil {
211+ arg0 = args[0].(context.Context)
212+ }
213+ var arg1 string
214+ if args[1] != nil {
215+ arg1 = args[1].(string)
216+ }
217+ run(
218+ arg0,
219+ arg1,
220+ )
221+ })
222+ return _c
223+}
224+
225+func (_c *MockFilterStore_HasCompiledFilter_Call) Return(b bool) *MockFilterStore_HasCompiledFilter_Call {
226+ _c.Call.Return(b)
227+ return _c
228+}
229+
230+func (_c *MockFilterStore_HasCompiledFilter_Call) RunAndReturn(run func(ctx context.Context, identifier string) bool) *MockFilterStore_HasCompiledFilter_Call {
231+ _c.Call.Return(run)
232+ return _c
233+}
234+
235+// Load provides a mock function for the type MockFilterStore
236+func (_mock *MockFilterStore) Load(ctx context.Context, identifier string) (*webkit.UserContentFilter, error) {
237+ ret := _mock.Called(ctx, identifier)
238+
239+ if len(ret) == 0 {
240+ panic("no return value specified for Load")
241+ }
242+
243+ var r0 *webkit.UserContentFilter
244+ var r1 error
245+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*webkit.UserContentFilter, error)); ok {
246+ return returnFunc(ctx, identifier)
247+ }
248+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) *webkit.UserContentFilter); ok {
249+ r0 = returnFunc(ctx, identifier)
250+ } else {
251+ if ret.Get(0) != nil {
252+ r0 = ret.Get(0).(*webkit.UserContentFilter)
253+ }
254+ }
255+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
256+ r1 = returnFunc(ctx, identifier)
257+ } else {
258+ r1 = ret.Error(1)
259+ }
260+ return r0, r1
261+}
262+
263+// MockFilterStore_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
264+type MockFilterStore_Load_Call struct {
265+ *mock.Call
266+}
267+
268+// Load is a helper method to define mock.On call
269+// - ctx context.Context
270+// - identifier string
271+func (_e *MockFilterStore_Expecter) Load(ctx interface{}, identifier interface{}) *MockFilterStore_Load_Call {
272+ return &MockFilterStore_Load_Call{Call: _e.mock.On("Load", ctx, identifier)}
273+}
274+
275+func (_c *MockFilterStore_Load_Call) Run(run func(ctx context.Context, identifier string)) *MockFilterStore_Load_Call {
276+ _c.Call.Run(func(args mock.Arguments) {
277+ var arg0 context.Context
278+ if args[0] != nil {
279+ arg0 = args[0].(context.Context)
280+ }
281+ var arg1 string
282+ if args[1] != nil {
283+ arg1 = args[1].(string)
284+ }
285+ run(
286+ arg0,
287+ arg1,
288+ )
289+ })
290+ return _c
291+}
292+
293+func (_c *MockFilterStore_Load_Call) Return(userContentFilter *webkit.UserContentFilter, err error) *MockFilterStore_Load_Call {
294+ _c.Call.Return(userContentFilter, err)
295+ return _c
296+}
297+
298+func (_c *MockFilterStore_Load_Call) RunAndReturn(run func(ctx context.Context, identifier string) (*webkit.UserContentFilter, error)) *MockFilterStore_Load_Call {
299+ _c.Call.Return(run)
300+ return _c
301+}
302+
303+// Path provides a mock function for the type MockFilterStore
304+func (_mock *MockFilterStore) Path() string {
305+ ret := _mock.Called()
306+
307+ if len(ret) == 0 {
308+ panic("no return value specified for Path")
309+ }
310+
311+ var r0 string
312+ if returnFunc, ok := ret.Get(0).(func() string); ok {
313+ r0 = returnFunc()
314+ } else {
315+ r0 = ret.Get(0).(string)
316+ }
317+ return r0
318+}
319+
320+// MockFilterStore_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
321+type MockFilterStore_Path_Call struct {
322+ *mock.Call
323+}
324+
325+// Path is a helper method to define mock.On call
326+func (_e *MockFilterStore_Expecter) Path() *MockFilterStore_Path_Call {
327+ return &MockFilterStore_Path_Call{Call: _e.mock.On("Path")}
328+}
329+
330+func (_c *MockFilterStore_Path_Call) Run(run func()) *MockFilterStore_Path_Call {
331+ _c.Call.Run(func(args mock.Arguments) {
332+ run()
333+ })
334+ return _c
335+}
336+
337+func (_c *MockFilterStore_Path_Call) Return(s string) *MockFilterStore_Path_Call {
338+ _c.Call.Return(s)
339+ return _c
340+}
341+
342+func (_c *MockFilterStore_Path_Call) RunAndReturn(run func() string) *MockFilterStore_Path_Call {
343+ _c.Call.Return(run)
344+ return _c
345+}
346+
347+// Remove provides a mock function for the type MockFilterStore
348+func (_mock *MockFilterStore) Remove(ctx context.Context, identifier string) error {
349+ ret := _mock.Called(ctx, identifier)
350+
351+ if len(ret) == 0 {
352+ panic("no return value specified for Remove")
353+ }
354+
355+ var r0 error
356+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
357+ r0 = returnFunc(ctx, identifier)
358+ } else {
359+ r0 = ret.Error(0)
360+ }
361+ return r0
362+}
363+
364+// MockFilterStore_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
365+type MockFilterStore_Remove_Call struct {
366+ *mock.Call
367+}
368+
369+// Remove is a helper method to define mock.On call
370+// - ctx context.Context
371+// - identifier string
372+func (_e *MockFilterStore_Expecter) Remove(ctx interface{}, identifier interface{}) *MockFilterStore_Remove_Call {
373+ return &MockFilterStore_Remove_Call{Call: _e.mock.On("Remove", ctx, identifier)}
374+}
375+
376+func (_c *MockFilterStore_Remove_Call) Run(run func(ctx context.Context, identifier string)) *MockFilterStore_Remove_Call {
377+ _c.Call.Run(func(args mock.Arguments) {
378+ var arg0 context.Context
379+ if args[0] != nil {
380+ arg0 = args[0].(context.Context)
381+ }
382+ var arg1 string
383+ if args[1] != nil {
384+ arg1 = args[1].(string)
385+ }
386+ run(
387+ arg0,
388+ arg1,
389+ )
390+ })
391+ return _c
392+}
393+
394+func (_c *MockFilterStore_Remove_Call) Return(err error) *MockFilterStore_Remove_Call {
395+ _c.Call.Return(err)
396+ return _c
397+}
398+
399+func (_c *MockFilterStore_Remove_Call) RunAndReturn(run func(ctx context.Context, identifier string) error) *MockFilterStore_Remove_Call {
400+ _c.Call.Return(run)
401+ return _c
402+}
403+
404+// NewMockFilterDownloader creates a new instance of MockFilterDownloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
405+// The first argument is typically a *testing.T value.
406+func NewMockFilterDownloader(t interface {
407+ mock.TestingT
408+ Cleanup(func())
409+}) *MockFilterDownloader {
410+ mock := &MockFilterDownloader{}
411+ mock.Mock.Test(t)
412+
413+ t.Cleanup(func() { mock.AssertExpectations(t) })
414+
415+ return mock
416+}
417+
418+// MockFilterDownloader is an autogenerated mock type for the FilterDownloader type
419+type MockFilterDownloader struct {
420+ mock.Mock
421+}
422+
423+type MockFilterDownloader_Expecter struct {
424+ mock *mock.Mock
425+}
426+
427+func (_m *MockFilterDownloader) EXPECT() *MockFilterDownloader_Expecter {
428+ return &MockFilterDownloader_Expecter{mock: &_m.Mock}
429+}
430+
431+// ClearCache provides a mock function for the type MockFilterDownloader
432+func (_mock *MockFilterDownloader) ClearCache() error {
433+ ret := _mock.Called()
434+
435+ if len(ret) == 0 {
436+ panic("no return value specified for ClearCache")
437+ }
438+
439+ var r0 error
440+ if returnFunc, ok := ret.Get(0).(func() error); ok {
441+ r0 = returnFunc()
442+ } else {
443+ r0 = ret.Error(0)
444+ }
445+ return r0
446+}
447+
448+// MockFilterDownloader_ClearCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearCache'
449+type MockFilterDownloader_ClearCache_Call struct {
450+ *mock.Call
451+}
452+
453+// ClearCache is a helper method to define mock.On call
454+func (_e *MockFilterDownloader_Expecter) ClearCache() *MockFilterDownloader_ClearCache_Call {
455+ return &MockFilterDownloader_ClearCache_Call{Call: _e.mock.On("ClearCache")}
456+}
457+
458+func (_c *MockFilterDownloader_ClearCache_Call) Run(run func()) *MockFilterDownloader_ClearCache_Call {
459+ _c.Call.Run(func(args mock.Arguments) {
460+ run()
461+ })
462+ return _c
463+}
464+
465+func (_c *MockFilterDownloader_ClearCache_Call) Return(err error) *MockFilterDownloader_ClearCache_Call {
466+ _c.Call.Return(err)
467+ return _c
468+}
469+
470+func (_c *MockFilterDownloader_ClearCache_Call) RunAndReturn(run func() error) *MockFilterDownloader_ClearCache_Call {
471+ _c.Call.Return(run)
472+ return _c
473+}
474+
475+// DownloadFilters provides a mock function for the type MockFilterDownloader
476+func (_mock *MockFilterDownloader) DownloadFilters(ctx context.Context, onProgress func(filtering.DownloadProgress)) ([]string, error) {
477+ ret := _mock.Called(ctx, onProgress)
478+
479+ if len(ret) == 0 {
480+ panic("no return value specified for DownloadFilters")
481+ }
482+
483+ var r0 []string
484+ var r1 error
485+ if returnFunc, ok := ret.Get(0).(func(context.Context, func(filtering.DownloadProgress)) ([]string, error)); ok {
486+ return returnFunc(ctx, onProgress)
487+ }
488+ if returnFunc, ok := ret.Get(0).(func(context.Context, func(filtering.DownloadProgress)) []string); ok {
489+ r0 = returnFunc(ctx, onProgress)
490+ } else {
491+ if ret.Get(0) != nil {
492+ r0 = ret.Get(0).([]string)
493+ }
494+ }
495+ if returnFunc, ok := ret.Get(1).(func(context.Context, func(filtering.DownloadProgress)) error); ok {
496+ r1 = returnFunc(ctx, onProgress)
497+ } else {
498+ r1 = ret.Error(1)
499+ }
500+ return r0, r1
501+}
502+
503+// MockFilterDownloader_DownloadFilters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadFilters'
504+type MockFilterDownloader_DownloadFilters_Call struct {
505+ *mock.Call
506+}
507+
508+// DownloadFilters is a helper method to define mock.On call
509+// - ctx context.Context
510+// - onProgress func(filtering.DownloadProgress)
511+func (_e *MockFilterDownloader_Expecter) DownloadFilters(ctx interface{}, onProgress interface{}) *MockFilterDownloader_DownloadFilters_Call {
512+ return &MockFilterDownloader_DownloadFilters_Call{Call: _e.mock.On("DownloadFilters", ctx, onProgress)}
513+}
514+
515+func (_c *MockFilterDownloader_DownloadFilters_Call) Run(run func(ctx context.Context, onProgress func(filtering.DownloadProgress))) *MockFilterDownloader_DownloadFilters_Call {
516+ _c.Call.Run(func(args mock.Arguments) {
517+ var arg0 context.Context
518+ if args[0] != nil {
519+ arg0 = args[0].(context.Context)
520+ }
521+ var arg1 func(filtering.DownloadProgress)
522+ if args[1] != nil {
523+ arg1 = args[1].(func(filtering.DownloadProgress))
524+ }
525+ run(
526+ arg0,
527+ arg1,
528+ )
529+ })
530+ return _c
531+}
532+
533+func (_c *MockFilterDownloader_DownloadFilters_Call) Return(strings []string, err error) *MockFilterDownloader_DownloadFilters_Call {
534+ _c.Call.Return(strings, err)
535+ return _c
536+}
537+
538+func (_c *MockFilterDownloader_DownloadFilters_Call) RunAndReturn(run func(ctx context.Context, onProgress func(filtering.DownloadProgress)) ([]string, error)) *MockFilterDownloader_DownloadFilters_Call {
539+ _c.Call.Return(run)
540+ return _c
541+}
542+
543+// FetchManifest provides a mock function for the type MockFilterDownloader
544+func (_mock *MockFilterDownloader) FetchManifest(ctx context.Context) (*filtering.Manifest, error) {
545+ ret := _mock.Called(ctx)
546+
547+ if len(ret) == 0 {
548+ panic("no return value specified for FetchManifest")
549+ }
550+
551+ var r0 *filtering.Manifest
552+ var r1 error
553+ if returnFunc, ok := ret.Get(0).(func(context.Context) (*filtering.Manifest, error)); ok {
554+ return returnFunc(ctx)
555+ }
556+ if returnFunc, ok := ret.Get(0).(func(context.Context) *filtering.Manifest); ok {
557+ r0 = returnFunc(ctx)
558+ } else {
559+ if ret.Get(0) != nil {
560+ r0 = ret.Get(0).(*filtering.Manifest)
561+ }
562+ }
563+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
564+ r1 = returnFunc(ctx)
565+ } else {
566+ r1 = ret.Error(1)
567+ }
568+ return r0, r1
569+}
570+
571+// MockFilterDownloader_FetchManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchManifest'
572+type MockFilterDownloader_FetchManifest_Call struct {
573+ *mock.Call
574+}
575+
576+// FetchManifest is a helper method to define mock.On call
577+// - ctx context.Context
578+func (_e *MockFilterDownloader_Expecter) FetchManifest(ctx interface{}) *MockFilterDownloader_FetchManifest_Call {
579+ return &MockFilterDownloader_FetchManifest_Call{Call: _e.mock.On("FetchManifest", ctx)}
580+}
581+
582+func (_c *MockFilterDownloader_FetchManifest_Call) Run(run func(ctx context.Context)) *MockFilterDownloader_FetchManifest_Call {
583+ _c.Call.Run(func(args mock.Arguments) {
584+ var arg0 context.Context
585+ if args[0] != nil {
586+ arg0 = args[0].(context.Context)
587+ }
588+ run(
589+ arg0,
590+ )
591+ })
592+ return _c
593+}
594+
595+func (_c *MockFilterDownloader_FetchManifest_Call) Return(manifest *filtering.Manifest, err error) *MockFilterDownloader_FetchManifest_Call {
596+ _c.Call.Return(manifest, err)
597+ return _c
598+}
599+
600+func (_c *MockFilterDownloader_FetchManifest_Call) RunAndReturn(run func(ctx context.Context) (*filtering.Manifest, error)) *MockFilterDownloader_FetchManifest_Call {
601+ _c.Call.Return(run)
602+ return _c
603+}
604+
605+// GetCachedFilterPaths provides a mock function for the type MockFilterDownloader
606+func (_mock *MockFilterDownloader) GetCachedFilterPaths() []string {
607+ ret := _mock.Called()
608+
609+ if len(ret) == 0 {
610+ panic("no return value specified for GetCachedFilterPaths")
611+ }
612+
613+ var r0 []string
614+ if returnFunc, ok := ret.Get(0).(func() []string); ok {
615+ r0 = returnFunc()
616+ } else {
617+ if ret.Get(0) != nil {
618+ r0 = ret.Get(0).([]string)
619+ }
620+ }
621+ return r0
622+}
623+
624+// MockFilterDownloader_GetCachedFilterPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedFilterPaths'
625+type MockFilterDownloader_GetCachedFilterPaths_Call struct {
626+ *mock.Call
627+}
628+
629+// GetCachedFilterPaths is a helper method to define mock.On call
630+func (_e *MockFilterDownloader_Expecter) GetCachedFilterPaths() *MockFilterDownloader_GetCachedFilterPaths_Call {
631+ return &MockFilterDownloader_GetCachedFilterPaths_Call{Call: _e.mock.On("GetCachedFilterPaths")}
632+}
633+
634+func (_c *MockFilterDownloader_GetCachedFilterPaths_Call) Run(run func()) *MockFilterDownloader_GetCachedFilterPaths_Call {
635+ _c.Call.Run(func(args mock.Arguments) {
636+ run()
637+ })
638+ return _c
639+}
640+
641+func (_c *MockFilterDownloader_GetCachedFilterPaths_Call) Return(strings []string) *MockFilterDownloader_GetCachedFilterPaths_Call {
642+ _c.Call.Return(strings)
643+ return _c
644+}
645+
646+func (_c *MockFilterDownloader_GetCachedFilterPaths_Call) RunAndReturn(run func() []string) *MockFilterDownloader_GetCachedFilterPaths_Call {
647+ _c.Call.Return(run)
648+ return _c
649+}
650+
651+// GetCachedManifest provides a mock function for the type MockFilterDownloader
652+func (_mock *MockFilterDownloader) GetCachedManifest() (*filtering.Manifest, error) {
653+ ret := _mock.Called()
654+
655+ if len(ret) == 0 {
656+ panic("no return value specified for GetCachedManifest")
657+ }
658+
659+ var r0 *filtering.Manifest
660+ var r1 error
661+ if returnFunc, ok := ret.Get(0).(func() (*filtering.Manifest, error)); ok {
662+ return returnFunc()
663+ }
664+ if returnFunc, ok := ret.Get(0).(func() *filtering.Manifest); ok {
665+ r0 = returnFunc()
666+ } else {
667+ if ret.Get(0) != nil {
668+ r0 = ret.Get(0).(*filtering.Manifest)
669+ }
670+ }
671+ if returnFunc, ok := ret.Get(1).(func() error); ok {
672+ r1 = returnFunc()
673+ } else {
674+ r1 = ret.Error(1)
675+ }
676+ return r0, r1
677+}
678+
679+// MockFilterDownloader_GetCachedManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedManifest'
680+type MockFilterDownloader_GetCachedManifest_Call struct {
681+ *mock.Call
682+}
683+
684+// GetCachedManifest is a helper method to define mock.On call
685+func (_e *MockFilterDownloader_Expecter) GetCachedManifest() *MockFilterDownloader_GetCachedManifest_Call {
686+ return &MockFilterDownloader_GetCachedManifest_Call{Call: _e.mock.On("GetCachedManifest")}
687+}
688+
689+func (_c *MockFilterDownloader_GetCachedManifest_Call) Run(run func()) *MockFilterDownloader_GetCachedManifest_Call {
690+ _c.Call.Run(func(args mock.Arguments) {
691+ run()
692+ })
693+ return _c
694+}
695+
696+func (_c *MockFilterDownloader_GetCachedManifest_Call) Return(manifest *filtering.Manifest, err error) *MockFilterDownloader_GetCachedManifest_Call {
697+ _c.Call.Return(manifest, err)
698+ return _c
699+}
700+
701+func (_c *MockFilterDownloader_GetCachedManifest_Call) RunAndReturn(run func() (*filtering.Manifest, error)) *MockFilterDownloader_GetCachedManifest_Call {
702+ _c.Call.Return(run)
703+ return _c
704+}
705+
706+// HasCachedFilters provides a mock function for the type MockFilterDownloader
707+func (_mock *MockFilterDownloader) HasCachedFilters() bool {
708+ ret := _mock.Called()
709+
710+ if len(ret) == 0 {
711+ panic("no return value specified for HasCachedFilters")
712+ }
713+
714+ var r0 bool
715+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
716+ r0 = returnFunc()
717+ } else {
718+ r0 = ret.Get(0).(bool)
719+ }
720+ return r0
721+}
722+
723+// MockFilterDownloader_HasCachedFilters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCachedFilters'
724+type MockFilterDownloader_HasCachedFilters_Call struct {
725+ *mock.Call
726+}
727+
728+// HasCachedFilters is a helper method to define mock.On call
729+func (_e *MockFilterDownloader_Expecter) HasCachedFilters() *MockFilterDownloader_HasCachedFilters_Call {
730+ return &MockFilterDownloader_HasCachedFilters_Call{Call: _e.mock.On("HasCachedFilters")}
731+}
732+
733+func (_c *MockFilterDownloader_HasCachedFilters_Call) Run(run func()) *MockFilterDownloader_HasCachedFilters_Call {
734+ _c.Call.Run(func(args mock.Arguments) {
735+ run()
736+ })
737+ return _c
738+}
739+
740+func (_c *MockFilterDownloader_HasCachedFilters_Call) Return(b bool) *MockFilterDownloader_HasCachedFilters_Call {
741+ _c.Call.Return(b)
742+ return _c
743+}
744+
745+func (_c *MockFilterDownloader_HasCachedFilters_Call) RunAndReturn(run func() bool) *MockFilterDownloader_HasCachedFilters_Call {
746+ _c.Call.Return(run)
747+ return _c
748+}
749+
750+// NeedsUpdate provides a mock function for the type MockFilterDownloader
751+func (_mock *MockFilterDownloader) NeedsUpdate(ctx context.Context) (bool, error) {
752+ ret := _mock.Called(ctx)
753+
754+ if len(ret) == 0 {
755+ panic("no return value specified for NeedsUpdate")
756+ }
757+
758+ var r0 bool
759+ var r1 error
760+ if returnFunc, ok := ret.Get(0).(func(context.Context) (bool, error)); ok {
761+ return returnFunc(ctx)
762+ }
763+ if returnFunc, ok := ret.Get(0).(func(context.Context) bool); ok {
764+ r0 = returnFunc(ctx)
765+ } else {
766+ r0 = ret.Get(0).(bool)
767+ }
768+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
769+ r1 = returnFunc(ctx)
770+ } else {
771+ r1 = ret.Error(1)
772+ }
773+ return r0, r1
774+}
775+
776+// MockFilterDownloader_NeedsUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NeedsUpdate'
777+type MockFilterDownloader_NeedsUpdate_Call struct {
778+ *mock.Call
779+}
780+
781+// NeedsUpdate is a helper method to define mock.On call
782+// - ctx context.Context
783+func (_e *MockFilterDownloader_Expecter) NeedsUpdate(ctx interface{}) *MockFilterDownloader_NeedsUpdate_Call {
784+ return &MockFilterDownloader_NeedsUpdate_Call{Call: _e.mock.On("NeedsUpdate", ctx)}
785+}
786+
787+func (_c *MockFilterDownloader_NeedsUpdate_Call) Run(run func(ctx context.Context)) *MockFilterDownloader_NeedsUpdate_Call {
788+ _c.Call.Run(func(args mock.Arguments) {
789+ var arg0 context.Context
790+ if args[0] != nil {
791+ arg0 = args[0].(context.Context)
792+ }
793+ run(
794+ arg0,
795+ )
796+ })
797+ return _c
798+}
799+
800+func (_c *MockFilterDownloader_NeedsUpdate_Call) Return(b bool, err error) *MockFilterDownloader_NeedsUpdate_Call {
801+ _c.Call.Return(b, err)
802+ return _c
803+}
804+
805+func (_c *MockFilterDownloader_NeedsUpdate_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *MockFilterDownloader_NeedsUpdate_Call {
806+ _c.Call.Return(run)
807+ return _c
808+}
D internal/ui/layout/mocks/mock_box_widget.go +0 -1449
@@ -1,1449 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockBoxWidget is an autogenerated mock type for the BoxWidget type
13-type MockBoxWidget struct {
14- mock.Mock
15-}
16-
17-type MockBoxWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockBoxWidget) EXPECT() *MockBoxWidget_Expecter {
22- return &MockBoxWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockBoxWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockBoxWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockBoxWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockBoxWidget_Expecter) AddController(controller interface{}) *MockBoxWidget_AddController_Call {
38- return &MockBoxWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockBoxWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockBoxWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockBoxWidget_AddController_Call) Return() *MockBoxWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockBoxWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockBoxWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockBoxWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockBoxWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockBoxWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockBoxWidget_Expecter) AddCssClass(cssClass interface{}) *MockBoxWidget_AddCssClass_Call {
71- return &MockBoxWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockBoxWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockBoxWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockBoxWidget_AddCssClass_Call) Return() *MockBoxWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockBoxWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockBoxWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// Append provides a mock function with given fields: child
92-func (_m *MockBoxWidget) Append(child layout.Widget) {
93- _m.Called(child)
94-}
95-
96-// MockBoxWidget_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'
97-type MockBoxWidget_Append_Call struct {
98- *mock.Call
99-}
100-
101-// Append is a helper method to define mock.On call
102-// - child layout.Widget
103-func (_e *MockBoxWidget_Expecter) Append(child interface{}) *MockBoxWidget_Append_Call {
104- return &MockBoxWidget_Append_Call{Call: _e.mock.On("Append", child)}
105-}
106-
107-func (_c *MockBoxWidget_Append_Call) Run(run func(child layout.Widget)) *MockBoxWidget_Append_Call {
108- _c.Call.Run(func(args mock.Arguments) {
109- run(args[0].(layout.Widget))
110- })
111- return _c
112-}
113-
114-func (_c *MockBoxWidget_Append_Call) Return() *MockBoxWidget_Append_Call {
115- _c.Call.Return()
116- return _c
117-}
118-
119-func (_c *MockBoxWidget_Append_Call) RunAndReturn(run func(layout.Widget)) *MockBoxWidget_Append_Call {
120- _c.Run(run)
121- return _c
122-}
123-
124-// ComputePoint provides a mock function with given fields: target
125-func (_m *MockBoxWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
126- ret := _m.Called(target)
127-
128- if len(ret) == 0 {
129- panic("no return value specified for ComputePoint")
130- }
131-
132- var r0 float64
133- var r1 float64
134- var r2 bool
135- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
136- return rf(target)
137- }
138- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
139- r0 = rf(target)
140- } else {
141- r0 = ret.Get(0).(float64)
142- }
143-
144- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
145- r1 = rf(target)
146- } else {
147- r1 = ret.Get(1).(float64)
148- }
149-
150- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
151- r2 = rf(target)
152- } else {
153- r2 = ret.Get(2).(bool)
154- }
155-
156- return r0, r1, r2
157-}
158-
159-// MockBoxWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
160-type MockBoxWidget_ComputePoint_Call struct {
161- *mock.Call
162-}
163-
164-// ComputePoint is a helper method to define mock.On call
165-// - target layout.Widget
166-func (_e *MockBoxWidget_Expecter) ComputePoint(target interface{}) *MockBoxWidget_ComputePoint_Call {
167- return &MockBoxWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
168-}
169-
170-func (_c *MockBoxWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockBoxWidget_ComputePoint_Call {
171- _c.Call.Run(func(args mock.Arguments) {
172- run(args[0].(layout.Widget))
173- })
174- return _c
175-}
176-
177-func (_c *MockBoxWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockBoxWidget_ComputePoint_Call {
178- _c.Call.Return(x, y, ok)
179- return _c
180-}
181-
182-func (_c *MockBoxWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockBoxWidget_ComputePoint_Call {
183- _c.Call.Return(run)
184- return _c
185-}
186-
187-// GetAllocatedHeight provides a mock function with no fields
188-func (_m *MockBoxWidget) GetAllocatedHeight() int {
189- ret := _m.Called()
190-
191- if len(ret) == 0 {
192- panic("no return value specified for GetAllocatedHeight")
193- }
194-
195- var r0 int
196- if rf, ok := ret.Get(0).(func() int); ok {
197- r0 = rf()
198- } else {
199- r0 = ret.Get(0).(int)
200- }
201-
202- return r0
203-}
204-
205-// MockBoxWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
206-type MockBoxWidget_GetAllocatedHeight_Call struct {
207- *mock.Call
208-}
209-
210-// GetAllocatedHeight is a helper method to define mock.On call
211-func (_e *MockBoxWidget_Expecter) GetAllocatedHeight() *MockBoxWidget_GetAllocatedHeight_Call {
212- return &MockBoxWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
213-}
214-
215-func (_c *MockBoxWidget_GetAllocatedHeight_Call) Run(run func()) *MockBoxWidget_GetAllocatedHeight_Call {
216- _c.Call.Run(func(args mock.Arguments) {
217- run()
218- })
219- return _c
220-}
221-
222-func (_c *MockBoxWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockBoxWidget_GetAllocatedHeight_Call {
223- _c.Call.Return(_a0)
224- return _c
225-}
226-
227-func (_c *MockBoxWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockBoxWidget_GetAllocatedHeight_Call {
228- _c.Call.Return(run)
229- return _c
230-}
231-
232-// GetAllocatedWidth provides a mock function with no fields
233-func (_m *MockBoxWidget) GetAllocatedWidth() int {
234- ret := _m.Called()
235-
236- if len(ret) == 0 {
237- panic("no return value specified for GetAllocatedWidth")
238- }
239-
240- var r0 int
241- if rf, ok := ret.Get(0).(func() int); ok {
242- r0 = rf()
243- } else {
244- r0 = ret.Get(0).(int)
245- }
246-
247- return r0
248-}
249-
250-// MockBoxWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
251-type MockBoxWidget_GetAllocatedWidth_Call struct {
252- *mock.Call
253-}
254-
255-// GetAllocatedWidth is a helper method to define mock.On call
256-func (_e *MockBoxWidget_Expecter) GetAllocatedWidth() *MockBoxWidget_GetAllocatedWidth_Call {
257- return &MockBoxWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
258-}
259-
260-func (_c *MockBoxWidget_GetAllocatedWidth_Call) Run(run func()) *MockBoxWidget_GetAllocatedWidth_Call {
261- _c.Call.Run(func(args mock.Arguments) {
262- run()
263- })
264- return _c
265-}
266-
267-func (_c *MockBoxWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockBoxWidget_GetAllocatedWidth_Call {
268- _c.Call.Return(_a0)
269- return _c
270-}
271-
272-func (_c *MockBoxWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockBoxWidget_GetAllocatedWidth_Call {
273- _c.Call.Return(run)
274- return _c
275-}
276-
277-// GetHexpand provides a mock function with no fields
278-func (_m *MockBoxWidget) GetHexpand() bool {
279- ret := _m.Called()
280-
281- if len(ret) == 0 {
282- panic("no return value specified for GetHexpand")
283- }
284-
285- var r0 bool
286- if rf, ok := ret.Get(0).(func() bool); ok {
287- r0 = rf()
288- } else {
289- r0 = ret.Get(0).(bool)
290- }
291-
292- return r0
293-}
294-
295-// MockBoxWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
296-type MockBoxWidget_GetHexpand_Call struct {
297- *mock.Call
298-}
299-
300-// GetHexpand is a helper method to define mock.On call
301-func (_e *MockBoxWidget_Expecter) GetHexpand() *MockBoxWidget_GetHexpand_Call {
302- return &MockBoxWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
303-}
304-
305-func (_c *MockBoxWidget_GetHexpand_Call) Run(run func()) *MockBoxWidget_GetHexpand_Call {
306- _c.Call.Run(func(args mock.Arguments) {
307- run()
308- })
309- return _c
310-}
311-
312-func (_c *MockBoxWidget_GetHexpand_Call) Return(_a0 bool) *MockBoxWidget_GetHexpand_Call {
313- _c.Call.Return(_a0)
314- return _c
315-}
316-
317-func (_c *MockBoxWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockBoxWidget_GetHexpand_Call {
318- _c.Call.Return(run)
319- return _c
320-}
321-
322-// GetHomogeneous provides a mock function with no fields
323-func (_m *MockBoxWidget) GetHomogeneous() bool {
324- ret := _m.Called()
325-
326- if len(ret) == 0 {
327- panic("no return value specified for GetHomogeneous")
328- }
329-
330- var r0 bool
331- if rf, ok := ret.Get(0).(func() bool); ok {
332- r0 = rf()
333- } else {
334- r0 = ret.Get(0).(bool)
335- }
336-
337- return r0
338-}
339-
340-// MockBoxWidget_GetHomogeneous_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomogeneous'
341-type MockBoxWidget_GetHomogeneous_Call struct {
342- *mock.Call
343-}
344-
345-// GetHomogeneous is a helper method to define mock.On call
346-func (_e *MockBoxWidget_Expecter) GetHomogeneous() *MockBoxWidget_GetHomogeneous_Call {
347- return &MockBoxWidget_GetHomogeneous_Call{Call: _e.mock.On("GetHomogeneous")}
348-}
349-
350-func (_c *MockBoxWidget_GetHomogeneous_Call) Run(run func()) *MockBoxWidget_GetHomogeneous_Call {
351- _c.Call.Run(func(args mock.Arguments) {
352- run()
353- })
354- return _c
355-}
356-
357-func (_c *MockBoxWidget_GetHomogeneous_Call) Return(_a0 bool) *MockBoxWidget_GetHomogeneous_Call {
358- _c.Call.Return(_a0)
359- return _c
360-}
361-
362-func (_c *MockBoxWidget_GetHomogeneous_Call) RunAndReturn(run func() bool) *MockBoxWidget_GetHomogeneous_Call {
363- _c.Call.Return(run)
364- return _c
365-}
366-
367-// GetOrientation provides a mock function with no fields
368-func (_m *MockBoxWidget) GetOrientation() gtk.Orientation {
369- ret := _m.Called()
370-
371- if len(ret) == 0 {
372- panic("no return value specified for GetOrientation")
373- }
374-
375- var r0 gtk.Orientation
376- if rf, ok := ret.Get(0).(func() gtk.Orientation); ok {
377- r0 = rf()
378- } else {
379- r0 = ret.Get(0).(gtk.Orientation)
380- }
381-
382- return r0
383-}
384-
385-// MockBoxWidget_GetOrientation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrientation'
386-type MockBoxWidget_GetOrientation_Call struct {
387- *mock.Call
388-}
389-
390-// GetOrientation is a helper method to define mock.On call
391-func (_e *MockBoxWidget_Expecter) GetOrientation() *MockBoxWidget_GetOrientation_Call {
392- return &MockBoxWidget_GetOrientation_Call{Call: _e.mock.On("GetOrientation")}
393-}
394-
395-func (_c *MockBoxWidget_GetOrientation_Call) Run(run func()) *MockBoxWidget_GetOrientation_Call {
396- _c.Call.Run(func(args mock.Arguments) {
397- run()
398- })
399- return _c
400-}
401-
402-func (_c *MockBoxWidget_GetOrientation_Call) Return(_a0 gtk.Orientation) *MockBoxWidget_GetOrientation_Call {
403- _c.Call.Return(_a0)
404- return _c
405-}
406-
407-func (_c *MockBoxWidget_GetOrientation_Call) RunAndReturn(run func() gtk.Orientation) *MockBoxWidget_GetOrientation_Call {
408- _c.Call.Return(run)
409- return _c
410-}
411-
412-// GetParent provides a mock function with no fields
413-func (_m *MockBoxWidget) GetParent() layout.Widget {
414- ret := _m.Called()
415-
416- if len(ret) == 0 {
417- panic("no return value specified for GetParent")
418- }
419-
420- var r0 layout.Widget
421- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
422- r0 = rf()
423- } else {
424- if ret.Get(0) != nil {
425- r0 = ret.Get(0).(layout.Widget)
426- }
427- }
428-
429- return r0
430-}
431-
432-// MockBoxWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
433-type MockBoxWidget_GetParent_Call struct {
434- *mock.Call
435-}
436-
437-// GetParent is a helper method to define mock.On call
438-func (_e *MockBoxWidget_Expecter) GetParent() *MockBoxWidget_GetParent_Call {
439- return &MockBoxWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
440-}
441-
442-func (_c *MockBoxWidget_GetParent_Call) Run(run func()) *MockBoxWidget_GetParent_Call {
443- _c.Call.Run(func(args mock.Arguments) {
444- run()
445- })
446- return _c
447-}
448-
449-func (_c *MockBoxWidget_GetParent_Call) Return(_a0 layout.Widget) *MockBoxWidget_GetParent_Call {
450- _c.Call.Return(_a0)
451- return _c
452-}
453-
454-func (_c *MockBoxWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockBoxWidget_GetParent_Call {
455- _c.Call.Return(run)
456- return _c
457-}
458-
459-// GetSpacing provides a mock function with no fields
460-func (_m *MockBoxWidget) GetSpacing() int {
461- ret := _m.Called()
462-
463- if len(ret) == 0 {
464- panic("no return value specified for GetSpacing")
465- }
466-
467- var r0 int
468- if rf, ok := ret.Get(0).(func() int); ok {
469- r0 = rf()
470- } else {
471- r0 = ret.Get(0).(int)
472- }
473-
474- return r0
475-}
476-
477-// MockBoxWidget_GetSpacing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSpacing'
478-type MockBoxWidget_GetSpacing_Call struct {
479- *mock.Call
480-}
481-
482-// GetSpacing is a helper method to define mock.On call
483-func (_e *MockBoxWidget_Expecter) GetSpacing() *MockBoxWidget_GetSpacing_Call {
484- return &MockBoxWidget_GetSpacing_Call{Call: _e.mock.On("GetSpacing")}
485-}
486-
487-func (_c *MockBoxWidget_GetSpacing_Call) Run(run func()) *MockBoxWidget_GetSpacing_Call {
488- _c.Call.Run(func(args mock.Arguments) {
489- run()
490- })
491- return _c
492-}
493-
494-func (_c *MockBoxWidget_GetSpacing_Call) Return(_a0 int) *MockBoxWidget_GetSpacing_Call {
495- _c.Call.Return(_a0)
496- return _c
497-}
498-
499-func (_c *MockBoxWidget_GetSpacing_Call) RunAndReturn(run func() int) *MockBoxWidget_GetSpacing_Call {
500- _c.Call.Return(run)
501- return _c
502-}
503-
504-// GetVexpand provides a mock function with no fields
505-func (_m *MockBoxWidget) GetVexpand() bool {
506- ret := _m.Called()
507-
508- if len(ret) == 0 {
509- panic("no return value specified for GetVexpand")
510- }
511-
512- var r0 bool
513- if rf, ok := ret.Get(0).(func() bool); ok {
514- r0 = rf()
515- } else {
516- r0 = ret.Get(0).(bool)
517- }
518-
519- return r0
520-}
521-
522-// MockBoxWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
523-type MockBoxWidget_GetVexpand_Call struct {
524- *mock.Call
525-}
526-
527-// GetVexpand is a helper method to define mock.On call
528-func (_e *MockBoxWidget_Expecter) GetVexpand() *MockBoxWidget_GetVexpand_Call {
529- return &MockBoxWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
530-}
531-
532-func (_c *MockBoxWidget_GetVexpand_Call) Run(run func()) *MockBoxWidget_GetVexpand_Call {
533- _c.Call.Run(func(args mock.Arguments) {
534- run()
535- })
536- return _c
537-}
538-
539-func (_c *MockBoxWidget_GetVexpand_Call) Return(_a0 bool) *MockBoxWidget_GetVexpand_Call {
540- _c.Call.Return(_a0)
541- return _c
542-}
543-
544-func (_c *MockBoxWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockBoxWidget_GetVexpand_Call {
545- _c.Call.Return(run)
546- return _c
547-}
548-
549-// GrabFocus provides a mock function with no fields
550-func (_m *MockBoxWidget) GrabFocus() bool {
551- ret := _m.Called()
552-
553- if len(ret) == 0 {
554- panic("no return value specified for GrabFocus")
555- }
556-
557- var r0 bool
558- if rf, ok := ret.Get(0).(func() bool); ok {
559- r0 = rf()
560- } else {
561- r0 = ret.Get(0).(bool)
562- }
563-
564- return r0
565-}
566-
567-// MockBoxWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
568-type MockBoxWidget_GrabFocus_Call struct {
569- *mock.Call
570-}
571-
572-// GrabFocus is a helper method to define mock.On call
573-func (_e *MockBoxWidget_Expecter) GrabFocus() *MockBoxWidget_GrabFocus_Call {
574- return &MockBoxWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
575-}
576-
577-func (_c *MockBoxWidget_GrabFocus_Call) Run(run func()) *MockBoxWidget_GrabFocus_Call {
578- _c.Call.Run(func(args mock.Arguments) {
579- run()
580- })
581- return _c
582-}
583-
584-func (_c *MockBoxWidget_GrabFocus_Call) Return(_a0 bool) *MockBoxWidget_GrabFocus_Call {
585- _c.Call.Return(_a0)
586- return _c
587-}
588-
589-func (_c *MockBoxWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockBoxWidget_GrabFocus_Call {
590- _c.Call.Return(run)
591- return _c
592-}
593-
594-// GtkWidget provides a mock function with no fields
595-func (_m *MockBoxWidget) GtkWidget() *gtk.Widget {
596- ret := _m.Called()
597-
598- if len(ret) == 0 {
599- panic("no return value specified for GtkWidget")
600- }
601-
602- var r0 *gtk.Widget
603- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
604- r0 = rf()
605- } else {
606- if ret.Get(0) != nil {
607- r0 = ret.Get(0).(*gtk.Widget)
608- }
609- }
610-
611- return r0
612-}
613-
614-// MockBoxWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
615-type MockBoxWidget_GtkWidget_Call struct {
616- *mock.Call
617-}
618-
619-// GtkWidget is a helper method to define mock.On call
620-func (_e *MockBoxWidget_Expecter) GtkWidget() *MockBoxWidget_GtkWidget_Call {
621- return &MockBoxWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
622-}
623-
624-func (_c *MockBoxWidget_GtkWidget_Call) Run(run func()) *MockBoxWidget_GtkWidget_Call {
625- _c.Call.Run(func(args mock.Arguments) {
626- run()
627- })
628- return _c
629-}
630-
631-func (_c *MockBoxWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockBoxWidget_GtkWidget_Call {
632- _c.Call.Return(_a0)
633- return _c
634-}
635-
636-func (_c *MockBoxWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockBoxWidget_GtkWidget_Call {
637- _c.Call.Return(run)
638- return _c
639-}
640-
641-// HasCssClass provides a mock function with given fields: cssClass
642-func (_m *MockBoxWidget) HasCssClass(cssClass string) bool {
643- ret := _m.Called(cssClass)
644-
645- if len(ret) == 0 {
646- panic("no return value specified for HasCssClass")
647- }
648-
649- var r0 bool
650- if rf, ok := ret.Get(0).(func(string) bool); ok {
651- r0 = rf(cssClass)
652- } else {
653- r0 = ret.Get(0).(bool)
654- }
655-
656- return r0
657-}
658-
659-// MockBoxWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
660-type MockBoxWidget_HasCssClass_Call struct {
661- *mock.Call
662-}
663-
664-// HasCssClass is a helper method to define mock.On call
665-// - cssClass string
666-func (_e *MockBoxWidget_Expecter) HasCssClass(cssClass interface{}) *MockBoxWidget_HasCssClass_Call {
667- return &MockBoxWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
668-}
669-
670-func (_c *MockBoxWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockBoxWidget_HasCssClass_Call {
671- _c.Call.Run(func(args mock.Arguments) {
672- run(args[0].(string))
673- })
674- return _c
675-}
676-
677-func (_c *MockBoxWidget_HasCssClass_Call) Return(_a0 bool) *MockBoxWidget_HasCssClass_Call {
678- _c.Call.Return(_a0)
679- return _c
680-}
681-
682-func (_c *MockBoxWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockBoxWidget_HasCssClass_Call {
683- _c.Call.Return(run)
684- return _c
685-}
686-
687-// HasFocus provides a mock function with no fields
688-func (_m *MockBoxWidget) HasFocus() bool {
689- ret := _m.Called()
690-
691- if len(ret) == 0 {
692- panic("no return value specified for HasFocus")
693- }
694-
695- var r0 bool
696- if rf, ok := ret.Get(0).(func() bool); ok {
697- r0 = rf()
698- } else {
699- r0 = ret.Get(0).(bool)
700- }
701-
702- return r0
703-}
704-
705-// MockBoxWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
706-type MockBoxWidget_HasFocus_Call struct {
707- *mock.Call
708-}
709-
710-// HasFocus is a helper method to define mock.On call
711-func (_e *MockBoxWidget_Expecter) HasFocus() *MockBoxWidget_HasFocus_Call {
712- return &MockBoxWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
713-}
714-
715-func (_c *MockBoxWidget_HasFocus_Call) Run(run func()) *MockBoxWidget_HasFocus_Call {
716- _c.Call.Run(func(args mock.Arguments) {
717- run()
718- })
719- return _c
720-}
721-
722-func (_c *MockBoxWidget_HasFocus_Call) Return(_a0 bool) *MockBoxWidget_HasFocus_Call {
723- _c.Call.Return(_a0)
724- return _c
725-}
726-
727-func (_c *MockBoxWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockBoxWidget_HasFocus_Call {
728- _c.Call.Return(run)
729- return _c
730-}
731-
732-// Hide provides a mock function with no fields
733-func (_m *MockBoxWidget) Hide() {
734- _m.Called()
735-}
736-
737-// MockBoxWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
738-type MockBoxWidget_Hide_Call struct {
739- *mock.Call
740-}
741-
742-// Hide is a helper method to define mock.On call
743-func (_e *MockBoxWidget_Expecter) Hide() *MockBoxWidget_Hide_Call {
744- return &MockBoxWidget_Hide_Call{Call: _e.mock.On("Hide")}
745-}
746-
747-func (_c *MockBoxWidget_Hide_Call) Run(run func()) *MockBoxWidget_Hide_Call {
748- _c.Call.Run(func(args mock.Arguments) {
749- run()
750- })
751- return _c
752-}
753-
754-func (_c *MockBoxWidget_Hide_Call) Return() *MockBoxWidget_Hide_Call {
755- _c.Call.Return()
756- return _c
757-}
758-
759-func (_c *MockBoxWidget_Hide_Call) RunAndReturn(run func()) *MockBoxWidget_Hide_Call {
760- _c.Run(run)
761- return _c
762-}
763-
764-// InsertChildAfter provides a mock function with given fields: child, sibling
765-func (_m *MockBoxWidget) InsertChildAfter(child layout.Widget, sibling layout.Widget) {
766- _m.Called(child, sibling)
767-}
768-
769-// MockBoxWidget_InsertChildAfter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertChildAfter'
770-type MockBoxWidget_InsertChildAfter_Call struct {
771- *mock.Call
772-}
773-
774-// InsertChildAfter is a helper method to define mock.On call
775-// - child layout.Widget
776-// - sibling layout.Widget
777-func (_e *MockBoxWidget_Expecter) InsertChildAfter(child interface{}, sibling interface{}) *MockBoxWidget_InsertChildAfter_Call {
778- return &MockBoxWidget_InsertChildAfter_Call{Call: _e.mock.On("InsertChildAfter", child, sibling)}
779-}
780-
781-func (_c *MockBoxWidget_InsertChildAfter_Call) Run(run func(child layout.Widget, sibling layout.Widget)) *MockBoxWidget_InsertChildAfter_Call {
782- _c.Call.Run(func(args mock.Arguments) {
783- run(args[0].(layout.Widget), args[1].(layout.Widget))
784- })
785- return _c
786-}
787-
788-func (_c *MockBoxWidget_InsertChildAfter_Call) Return() *MockBoxWidget_InsertChildAfter_Call {
789- _c.Call.Return()
790- return _c
791-}
792-
793-func (_c *MockBoxWidget_InsertChildAfter_Call) RunAndReturn(run func(layout.Widget, layout.Widget)) *MockBoxWidget_InsertChildAfter_Call {
794- _c.Run(run)
795- return _c
796-}
797-
798-// IsVisible provides a mock function with no fields
799-func (_m *MockBoxWidget) IsVisible() bool {
800- ret := _m.Called()
801-
802- if len(ret) == 0 {
803- panic("no return value specified for IsVisible")
804- }
805-
806- var r0 bool
807- if rf, ok := ret.Get(0).(func() bool); ok {
808- r0 = rf()
809- } else {
810- r0 = ret.Get(0).(bool)
811- }
812-
813- return r0
814-}
815-
816-// MockBoxWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
817-type MockBoxWidget_IsVisible_Call struct {
818- *mock.Call
819-}
820-
821-// IsVisible is a helper method to define mock.On call
822-func (_e *MockBoxWidget_Expecter) IsVisible() *MockBoxWidget_IsVisible_Call {
823- return &MockBoxWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
824-}
825-
826-func (_c *MockBoxWidget_IsVisible_Call) Run(run func()) *MockBoxWidget_IsVisible_Call {
827- _c.Call.Run(func(args mock.Arguments) {
828- run()
829- })
830- return _c
831-}
832-
833-func (_c *MockBoxWidget_IsVisible_Call) Return(_a0 bool) *MockBoxWidget_IsVisible_Call {
834- _c.Call.Return(_a0)
835- return _c
836-}
837-
838-func (_c *MockBoxWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockBoxWidget_IsVisible_Call {
839- _c.Call.Return(run)
840- return _c
841-}
842-
843-// Prepend provides a mock function with given fields: child
844-func (_m *MockBoxWidget) Prepend(child layout.Widget) {
845- _m.Called(child)
846-}
847-
848-// MockBoxWidget_Prepend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepend'
849-type MockBoxWidget_Prepend_Call struct {
850- *mock.Call
851-}
852-
853-// Prepend is a helper method to define mock.On call
854-// - child layout.Widget
855-func (_e *MockBoxWidget_Expecter) Prepend(child interface{}) *MockBoxWidget_Prepend_Call {
856- return &MockBoxWidget_Prepend_Call{Call: _e.mock.On("Prepend", child)}
857-}
858-
859-func (_c *MockBoxWidget_Prepend_Call) Run(run func(child layout.Widget)) *MockBoxWidget_Prepend_Call {
860- _c.Call.Run(func(args mock.Arguments) {
861- run(args[0].(layout.Widget))
862- })
863- return _c
864-}
865-
866-func (_c *MockBoxWidget_Prepend_Call) Return() *MockBoxWidget_Prepend_Call {
867- _c.Call.Return()
868- return _c
869-}
870-
871-func (_c *MockBoxWidget_Prepend_Call) RunAndReturn(run func(layout.Widget)) *MockBoxWidget_Prepend_Call {
872- _c.Run(run)
873- return _c
874-}
875-
876-// Remove provides a mock function with given fields: child
877-func (_m *MockBoxWidget) Remove(child layout.Widget) {
878- _m.Called(child)
879-}
880-
881-// MockBoxWidget_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
882-type MockBoxWidget_Remove_Call struct {
883- *mock.Call
884-}
885-
886-// Remove is a helper method to define mock.On call
887-// - child layout.Widget
888-func (_e *MockBoxWidget_Expecter) Remove(child interface{}) *MockBoxWidget_Remove_Call {
889- return &MockBoxWidget_Remove_Call{Call: _e.mock.On("Remove", child)}
890-}
891-
892-func (_c *MockBoxWidget_Remove_Call) Run(run func(child layout.Widget)) *MockBoxWidget_Remove_Call {
893- _c.Call.Run(func(args mock.Arguments) {
894- run(args[0].(layout.Widget))
895- })
896- return _c
897-}
898-
899-func (_c *MockBoxWidget_Remove_Call) Return() *MockBoxWidget_Remove_Call {
900- _c.Call.Return()
901- return _c
902-}
903-
904-func (_c *MockBoxWidget_Remove_Call) RunAndReturn(run func(layout.Widget)) *MockBoxWidget_Remove_Call {
905- _c.Run(run)
906- return _c
907-}
908-
909-// RemoveCssClass provides a mock function with given fields: cssClass
910-func (_m *MockBoxWidget) RemoveCssClass(cssClass string) {
911- _m.Called(cssClass)
912-}
913-
914-// MockBoxWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
915-type MockBoxWidget_RemoveCssClass_Call struct {
916- *mock.Call
917-}
918-
919-// RemoveCssClass is a helper method to define mock.On call
920-// - cssClass string
921-func (_e *MockBoxWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockBoxWidget_RemoveCssClass_Call {
922- return &MockBoxWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
923-}
924-
925-func (_c *MockBoxWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockBoxWidget_RemoveCssClass_Call {
926- _c.Call.Run(func(args mock.Arguments) {
927- run(args[0].(string))
928- })
929- return _c
930-}
931-
932-func (_c *MockBoxWidget_RemoveCssClass_Call) Return() *MockBoxWidget_RemoveCssClass_Call {
933- _c.Call.Return()
934- return _c
935-}
936-
937-func (_c *MockBoxWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockBoxWidget_RemoveCssClass_Call {
938- _c.Run(run)
939- return _c
940-}
941-
942-// ReorderChildAfter provides a mock function with given fields: child, sibling
943-func (_m *MockBoxWidget) ReorderChildAfter(child layout.Widget, sibling layout.Widget) {
944- _m.Called(child, sibling)
945-}
946-
947-// MockBoxWidget_ReorderChildAfter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReorderChildAfter'
948-type MockBoxWidget_ReorderChildAfter_Call struct {
949- *mock.Call
950-}
951-
952-// ReorderChildAfter is a helper method to define mock.On call
953-// - child layout.Widget
954-// - sibling layout.Widget
955-func (_e *MockBoxWidget_Expecter) ReorderChildAfter(child interface{}, sibling interface{}) *MockBoxWidget_ReorderChildAfter_Call {
956- return &MockBoxWidget_ReorderChildAfter_Call{Call: _e.mock.On("ReorderChildAfter", child, sibling)}
957-}
958-
959-func (_c *MockBoxWidget_ReorderChildAfter_Call) Run(run func(child layout.Widget, sibling layout.Widget)) *MockBoxWidget_ReorderChildAfter_Call {
960- _c.Call.Run(func(args mock.Arguments) {
961- run(args[0].(layout.Widget), args[1].(layout.Widget))
962- })
963- return _c
964-}
965-
966-func (_c *MockBoxWidget_ReorderChildAfter_Call) Return() *MockBoxWidget_ReorderChildAfter_Call {
967- _c.Call.Return()
968- return _c
969-}
970-
971-func (_c *MockBoxWidget_ReorderChildAfter_Call) RunAndReturn(run func(layout.Widget, layout.Widget)) *MockBoxWidget_ReorderChildAfter_Call {
972- _c.Run(run)
973- return _c
974-}
975-
976-// SetCanFocus provides a mock function with given fields: canFocus
977-func (_m *MockBoxWidget) SetCanFocus(canFocus bool) {
978- _m.Called(canFocus)
979-}
980-
981-// MockBoxWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
982-type MockBoxWidget_SetCanFocus_Call struct {
983- *mock.Call
984-}
985-
986-// SetCanFocus is a helper method to define mock.On call
987-// - canFocus bool
988-func (_e *MockBoxWidget_Expecter) SetCanFocus(canFocus interface{}) *MockBoxWidget_SetCanFocus_Call {
989- return &MockBoxWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
990-}
991-
992-func (_c *MockBoxWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockBoxWidget_SetCanFocus_Call {
993- _c.Call.Run(func(args mock.Arguments) {
994- run(args[0].(bool))
995- })
996- return _c
997-}
998-
999-func (_c *MockBoxWidget_SetCanFocus_Call) Return() *MockBoxWidget_SetCanFocus_Call {
1000- _c.Call.Return()
1001- return _c
1002-}
1003-
1004-func (_c *MockBoxWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetCanFocus_Call {
1005- _c.Run(run)
1006- return _c
1007-}
1008-
1009-// SetCanTarget provides a mock function with given fields: canTarget
1010-func (_m *MockBoxWidget) SetCanTarget(canTarget bool) {
1011- _m.Called(canTarget)
1012-}
1013-
1014-// MockBoxWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
1015-type MockBoxWidget_SetCanTarget_Call struct {
1016- *mock.Call
1017-}
1018-
1019-// SetCanTarget is a helper method to define mock.On call
1020-// - canTarget bool
1021-func (_e *MockBoxWidget_Expecter) SetCanTarget(canTarget interface{}) *MockBoxWidget_SetCanTarget_Call {
1022- return &MockBoxWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
1023-}
1024-
1025-func (_c *MockBoxWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockBoxWidget_SetCanTarget_Call {
1026- _c.Call.Run(func(args mock.Arguments) {
1027- run(args[0].(bool))
1028- })
1029- return _c
1030-}
1031-
1032-func (_c *MockBoxWidget_SetCanTarget_Call) Return() *MockBoxWidget_SetCanTarget_Call {
1033- _c.Call.Return()
1034- return _c
1035-}
1036-
1037-func (_c *MockBoxWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetCanTarget_Call {
1038- _c.Run(run)
1039- return _c
1040-}
1041-
1042-// SetFocusOnClick provides a mock function with given fields: focusOnClick
1043-func (_m *MockBoxWidget) SetFocusOnClick(focusOnClick bool) {
1044- _m.Called(focusOnClick)
1045-}
1046-
1047-// MockBoxWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
1048-type MockBoxWidget_SetFocusOnClick_Call struct {
1049- *mock.Call
1050-}
1051-
1052-// SetFocusOnClick is a helper method to define mock.On call
1053-// - focusOnClick bool
1054-func (_e *MockBoxWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockBoxWidget_SetFocusOnClick_Call {
1055- return &MockBoxWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
1056-}
1057-
1058-func (_c *MockBoxWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockBoxWidget_SetFocusOnClick_Call {
1059- _c.Call.Run(func(args mock.Arguments) {
1060- run(args[0].(bool))
1061- })
1062- return _c
1063-}
1064-
1065-func (_c *MockBoxWidget_SetFocusOnClick_Call) Return() *MockBoxWidget_SetFocusOnClick_Call {
1066- _c.Call.Return()
1067- return _c
1068-}
1069-
1070-func (_c *MockBoxWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetFocusOnClick_Call {
1071- _c.Run(run)
1072- return _c
1073-}
1074-
1075-// SetHalign provides a mock function with given fields: align
1076-func (_m *MockBoxWidget) SetHalign(align gtk.Align) {
1077- _m.Called(align)
1078-}
1079-
1080-// MockBoxWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
1081-type MockBoxWidget_SetHalign_Call struct {
1082- *mock.Call
1083-}
1084-
1085-// SetHalign is a helper method to define mock.On call
1086-// - align gtk.Align
1087-func (_e *MockBoxWidget_Expecter) SetHalign(align interface{}) *MockBoxWidget_SetHalign_Call {
1088- return &MockBoxWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
1089-}
1090-
1091-func (_c *MockBoxWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockBoxWidget_SetHalign_Call {
1092- _c.Call.Run(func(args mock.Arguments) {
1093- run(args[0].(gtk.Align))
1094- })
1095- return _c
1096-}
1097-
1098-func (_c *MockBoxWidget_SetHalign_Call) Return() *MockBoxWidget_SetHalign_Call {
1099- _c.Call.Return()
1100- return _c
1101-}
1102-
1103-func (_c *MockBoxWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockBoxWidget_SetHalign_Call {
1104- _c.Run(run)
1105- return _c
1106-}
1107-
1108-// SetHexpand provides a mock function with given fields: expand
1109-func (_m *MockBoxWidget) SetHexpand(expand bool) {
1110- _m.Called(expand)
1111-}
1112-
1113-// MockBoxWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
1114-type MockBoxWidget_SetHexpand_Call struct {
1115- *mock.Call
1116-}
1117-
1118-// SetHexpand is a helper method to define mock.On call
1119-// - expand bool
1120-func (_e *MockBoxWidget_Expecter) SetHexpand(expand interface{}) *MockBoxWidget_SetHexpand_Call {
1121- return &MockBoxWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
1122-}
1123-
1124-func (_c *MockBoxWidget_SetHexpand_Call) Run(run func(expand bool)) *MockBoxWidget_SetHexpand_Call {
1125- _c.Call.Run(func(args mock.Arguments) {
1126- run(args[0].(bool))
1127- })
1128- return _c
1129-}
1130-
1131-func (_c *MockBoxWidget_SetHexpand_Call) Return() *MockBoxWidget_SetHexpand_Call {
1132- _c.Call.Return()
1133- return _c
1134-}
1135-
1136-func (_c *MockBoxWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetHexpand_Call {
1137- _c.Run(run)
1138- return _c
1139-}
1140-
1141-// SetHomogeneous provides a mock function with given fields: homogeneous
1142-func (_m *MockBoxWidget) SetHomogeneous(homogeneous bool) {
1143- _m.Called(homogeneous)
1144-}
1145-
1146-// MockBoxWidget_SetHomogeneous_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHomogeneous'
1147-type MockBoxWidget_SetHomogeneous_Call struct {
1148- *mock.Call
1149-}
1150-
1151-// SetHomogeneous is a helper method to define mock.On call
1152-// - homogeneous bool
1153-func (_e *MockBoxWidget_Expecter) SetHomogeneous(homogeneous interface{}) *MockBoxWidget_SetHomogeneous_Call {
1154- return &MockBoxWidget_SetHomogeneous_Call{Call: _e.mock.On("SetHomogeneous", homogeneous)}
1155-}
1156-
1157-func (_c *MockBoxWidget_SetHomogeneous_Call) Run(run func(homogeneous bool)) *MockBoxWidget_SetHomogeneous_Call {
1158- _c.Call.Run(func(args mock.Arguments) {
1159- run(args[0].(bool))
1160- })
1161- return _c
1162-}
1163-
1164-func (_c *MockBoxWidget_SetHomogeneous_Call) Return() *MockBoxWidget_SetHomogeneous_Call {
1165- _c.Call.Return()
1166- return _c
1167-}
1168-
1169-func (_c *MockBoxWidget_SetHomogeneous_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetHomogeneous_Call {
1170- _c.Run(run)
1171- return _c
1172-}
1173-
1174-// SetOrientation provides a mock function with given fields: orientation
1175-func (_m *MockBoxWidget) SetOrientation(orientation gtk.Orientation) {
1176- _m.Called(orientation)
1177-}
1178-
1179-// MockBoxWidget_SetOrientation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOrientation'
1180-type MockBoxWidget_SetOrientation_Call struct {
1181- *mock.Call
1182-}
1183-
1184-// SetOrientation is a helper method to define mock.On call
1185-// - orientation gtk.Orientation
1186-func (_e *MockBoxWidget_Expecter) SetOrientation(orientation interface{}) *MockBoxWidget_SetOrientation_Call {
1187- return &MockBoxWidget_SetOrientation_Call{Call: _e.mock.On("SetOrientation", orientation)}
1188-}
1189-
1190-func (_c *MockBoxWidget_SetOrientation_Call) Run(run func(orientation gtk.Orientation)) *MockBoxWidget_SetOrientation_Call {
1191- _c.Call.Run(func(args mock.Arguments) {
1192- run(args[0].(gtk.Orientation))
1193- })
1194- return _c
1195-}
1196-
1197-func (_c *MockBoxWidget_SetOrientation_Call) Return() *MockBoxWidget_SetOrientation_Call {
1198- _c.Call.Return()
1199- return _c
1200-}
1201-
1202-func (_c *MockBoxWidget_SetOrientation_Call) RunAndReturn(run func(gtk.Orientation)) *MockBoxWidget_SetOrientation_Call {
1203- _c.Run(run)
1204- return _c
1205-}
1206-
1207-// SetSizeRequest provides a mock function with given fields: width, height
1208-func (_m *MockBoxWidget) SetSizeRequest(width int, height int) {
1209- _m.Called(width, height)
1210-}
1211-
1212-// MockBoxWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
1213-type MockBoxWidget_SetSizeRequest_Call struct {
1214- *mock.Call
1215-}
1216-
1217-// SetSizeRequest is a helper method to define mock.On call
1218-// - width int
1219-// - height int
1220-func (_e *MockBoxWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockBoxWidget_SetSizeRequest_Call {
1221- return &MockBoxWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
1222-}
1223-
1224-func (_c *MockBoxWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockBoxWidget_SetSizeRequest_Call {
1225- _c.Call.Run(func(args mock.Arguments) {
1226- run(args[0].(int), args[1].(int))
1227- })
1228- return _c
1229-}
1230-
1231-func (_c *MockBoxWidget_SetSizeRequest_Call) Return() *MockBoxWidget_SetSizeRequest_Call {
1232- _c.Call.Return()
1233- return _c
1234-}
1235-
1236-func (_c *MockBoxWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockBoxWidget_SetSizeRequest_Call {
1237- _c.Run(run)
1238- return _c
1239-}
1240-
1241-// SetSpacing provides a mock function with given fields: spacing
1242-func (_m *MockBoxWidget) SetSpacing(spacing int) {
1243- _m.Called(spacing)
1244-}
1245-
1246-// MockBoxWidget_SetSpacing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSpacing'
1247-type MockBoxWidget_SetSpacing_Call struct {
1248- *mock.Call
1249-}
1250-
1251-// SetSpacing is a helper method to define mock.On call
1252-// - spacing int
1253-func (_e *MockBoxWidget_Expecter) SetSpacing(spacing interface{}) *MockBoxWidget_SetSpacing_Call {
1254- return &MockBoxWidget_SetSpacing_Call{Call: _e.mock.On("SetSpacing", spacing)}
1255-}
1256-
1257-func (_c *MockBoxWidget_SetSpacing_Call) Run(run func(spacing int)) *MockBoxWidget_SetSpacing_Call {
1258- _c.Call.Run(func(args mock.Arguments) {
1259- run(args[0].(int))
1260- })
1261- return _c
1262-}
1263-
1264-func (_c *MockBoxWidget_SetSpacing_Call) Return() *MockBoxWidget_SetSpacing_Call {
1265- _c.Call.Return()
1266- return _c
1267-}
1268-
1269-func (_c *MockBoxWidget_SetSpacing_Call) RunAndReturn(run func(int)) *MockBoxWidget_SetSpacing_Call {
1270- _c.Run(run)
1271- return _c
1272-}
1273-
1274-// SetValign provides a mock function with given fields: align
1275-func (_m *MockBoxWidget) SetValign(align gtk.Align) {
1276- _m.Called(align)
1277-}
1278-
1279-// MockBoxWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1280-type MockBoxWidget_SetValign_Call struct {
1281- *mock.Call
1282-}
1283-
1284-// SetValign is a helper method to define mock.On call
1285-// - align gtk.Align
1286-func (_e *MockBoxWidget_Expecter) SetValign(align interface{}) *MockBoxWidget_SetValign_Call {
1287- return &MockBoxWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1288-}
1289-
1290-func (_c *MockBoxWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockBoxWidget_SetValign_Call {
1291- _c.Call.Run(func(args mock.Arguments) {
1292- run(args[0].(gtk.Align))
1293- })
1294- return _c
1295-}
1296-
1297-func (_c *MockBoxWidget_SetValign_Call) Return() *MockBoxWidget_SetValign_Call {
1298- _c.Call.Return()
1299- return _c
1300-}
1301-
1302-func (_c *MockBoxWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockBoxWidget_SetValign_Call {
1303- _c.Run(run)
1304- return _c
1305-}
1306-
1307-// SetVexpand provides a mock function with given fields: expand
1308-func (_m *MockBoxWidget) SetVexpand(expand bool) {
1309- _m.Called(expand)
1310-}
1311-
1312-// MockBoxWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1313-type MockBoxWidget_SetVexpand_Call struct {
1314- *mock.Call
1315-}
1316-
1317-// SetVexpand is a helper method to define mock.On call
1318-// - expand bool
1319-func (_e *MockBoxWidget_Expecter) SetVexpand(expand interface{}) *MockBoxWidget_SetVexpand_Call {
1320- return &MockBoxWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1321-}
1322-
1323-func (_c *MockBoxWidget_SetVexpand_Call) Run(run func(expand bool)) *MockBoxWidget_SetVexpand_Call {
1324- _c.Call.Run(func(args mock.Arguments) {
1325- run(args[0].(bool))
1326- })
1327- return _c
1328-}
1329-
1330-func (_c *MockBoxWidget_SetVexpand_Call) Return() *MockBoxWidget_SetVexpand_Call {
1331- _c.Call.Return()
1332- return _c
1333-}
1334-
1335-func (_c *MockBoxWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetVexpand_Call {
1336- _c.Run(run)
1337- return _c
1338-}
1339-
1340-// SetVisible provides a mock function with given fields: visible
1341-func (_m *MockBoxWidget) SetVisible(visible bool) {
1342- _m.Called(visible)
1343-}
1344-
1345-// MockBoxWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1346-type MockBoxWidget_SetVisible_Call struct {
1347- *mock.Call
1348-}
1349-
1350-// SetVisible is a helper method to define mock.On call
1351-// - visible bool
1352-func (_e *MockBoxWidget_Expecter) SetVisible(visible interface{}) *MockBoxWidget_SetVisible_Call {
1353- return &MockBoxWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1354-}
1355-
1356-func (_c *MockBoxWidget_SetVisible_Call) Run(run func(visible bool)) *MockBoxWidget_SetVisible_Call {
1357- _c.Call.Run(func(args mock.Arguments) {
1358- run(args[0].(bool))
1359- })
1360- return _c
1361-}
1362-
1363-func (_c *MockBoxWidget_SetVisible_Call) Return() *MockBoxWidget_SetVisible_Call {
1364- _c.Call.Return()
1365- return _c
1366-}
1367-
1368-func (_c *MockBoxWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockBoxWidget_SetVisible_Call {
1369- _c.Run(run)
1370- return _c
1371-}
1372-
1373-// Show provides a mock function with no fields
1374-func (_m *MockBoxWidget) Show() {
1375- _m.Called()
1376-}
1377-
1378-// MockBoxWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1379-type MockBoxWidget_Show_Call struct {
1380- *mock.Call
1381-}
1382-
1383-// Show is a helper method to define mock.On call
1384-func (_e *MockBoxWidget_Expecter) Show() *MockBoxWidget_Show_Call {
1385- return &MockBoxWidget_Show_Call{Call: _e.mock.On("Show")}
1386-}
1387-
1388-func (_c *MockBoxWidget_Show_Call) Run(run func()) *MockBoxWidget_Show_Call {
1389- _c.Call.Run(func(args mock.Arguments) {
1390- run()
1391- })
1392- return _c
1393-}
1394-
1395-func (_c *MockBoxWidget_Show_Call) Return() *MockBoxWidget_Show_Call {
1396- _c.Call.Return()
1397- return _c
1398-}
1399-
1400-func (_c *MockBoxWidget_Show_Call) RunAndReturn(run func()) *MockBoxWidget_Show_Call {
1401- _c.Run(run)
1402- return _c
1403-}
1404-
1405-// Unparent provides a mock function with no fields
1406-func (_m *MockBoxWidget) Unparent() {
1407- _m.Called()
1408-}
1409-
1410-// MockBoxWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1411-type MockBoxWidget_Unparent_Call struct {
1412- *mock.Call
1413-}
1414-
1415-// Unparent is a helper method to define mock.On call
1416-func (_e *MockBoxWidget_Expecter) Unparent() *MockBoxWidget_Unparent_Call {
1417- return &MockBoxWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1418-}
1419-
1420-func (_c *MockBoxWidget_Unparent_Call) Run(run func()) *MockBoxWidget_Unparent_Call {
1421- _c.Call.Run(func(args mock.Arguments) {
1422- run()
1423- })
1424- return _c
1425-}
1426-
1427-func (_c *MockBoxWidget_Unparent_Call) Return() *MockBoxWidget_Unparent_Call {
1428- _c.Call.Return()
1429- return _c
1430-}
1431-
1432-func (_c *MockBoxWidget_Unparent_Call) RunAndReturn(run func()) *MockBoxWidget_Unparent_Call {
1433- _c.Run(run)
1434- return _c
1435-}
1436-
1437-// NewMockBoxWidget creates a new instance of MockBoxWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1438-// The first argument is typically a *testing.T value.
1439-func NewMockBoxWidget(t interface {
1440- mock.TestingT
1441- Cleanup(func())
1442-}) *MockBoxWidget {
1443- mock := &MockBoxWidget{}
1444- mock.Mock.Test(t)
1445-
1446- t.Cleanup(func() { mock.AssertExpectations(t) })
1447-
1448- return mock
1449-}
D internal/ui/layout/mocks/mock_button_widget.go +0 -1252
@@ -1,1252 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockButtonWidget is an autogenerated mock type for the ButtonWidget type
13-type MockButtonWidget struct {
14- mock.Mock
15-}
16-
17-type MockButtonWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockButtonWidget) EXPECT() *MockButtonWidget_Expecter {
22- return &MockButtonWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockButtonWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockButtonWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockButtonWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockButtonWidget_Expecter) AddController(controller interface{}) *MockButtonWidget_AddController_Call {
38- return &MockButtonWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockButtonWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockButtonWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockButtonWidget_AddController_Call) Return() *MockButtonWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockButtonWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockButtonWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockButtonWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockButtonWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockButtonWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockButtonWidget_Expecter) AddCssClass(cssClass interface{}) *MockButtonWidget_AddCssClass_Call {
71- return &MockButtonWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockButtonWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockButtonWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockButtonWidget_AddCssClass_Call) Return() *MockButtonWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockButtonWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockButtonWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// ComputePoint provides a mock function with given fields: target
92-func (_m *MockButtonWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
93- ret := _m.Called(target)
94-
95- if len(ret) == 0 {
96- panic("no return value specified for ComputePoint")
97- }
98-
99- var r0 float64
100- var r1 float64
101- var r2 bool
102- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
103- return rf(target)
104- }
105- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
106- r0 = rf(target)
107- } else {
108- r0 = ret.Get(0).(float64)
109- }
110-
111- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
112- r1 = rf(target)
113- } else {
114- r1 = ret.Get(1).(float64)
115- }
116-
117- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
118- r2 = rf(target)
119- } else {
120- r2 = ret.Get(2).(bool)
121- }
122-
123- return r0, r1, r2
124-}
125-
126-// MockButtonWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
127-type MockButtonWidget_ComputePoint_Call struct {
128- *mock.Call
129-}
130-
131-// ComputePoint is a helper method to define mock.On call
132-// - target layout.Widget
133-func (_e *MockButtonWidget_Expecter) ComputePoint(target interface{}) *MockButtonWidget_ComputePoint_Call {
134- return &MockButtonWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
135-}
136-
137-func (_c *MockButtonWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockButtonWidget_ComputePoint_Call {
138- _c.Call.Run(func(args mock.Arguments) {
139- run(args[0].(layout.Widget))
140- })
141- return _c
142-}
143-
144-func (_c *MockButtonWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockButtonWidget_ComputePoint_Call {
145- _c.Call.Return(x, y, ok)
146- return _c
147-}
148-
149-func (_c *MockButtonWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockButtonWidget_ComputePoint_Call {
150- _c.Call.Return(run)
151- return _c
152-}
153-
154-// ConnectClicked provides a mock function with given fields: callback
155-func (_m *MockButtonWidget) ConnectClicked(callback func()) uint32 {
156- ret := _m.Called(callback)
157-
158- if len(ret) == 0 {
159- panic("no return value specified for ConnectClicked")
160- }
161-
162- var r0 uint32
163- if rf, ok := ret.Get(0).(func(func()) uint32); ok {
164- r0 = rf(callback)
165- } else {
166- r0 = ret.Get(0).(uint32)
167- }
168-
169- return r0
170-}
171-
172-// MockButtonWidget_ConnectClicked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectClicked'
173-type MockButtonWidget_ConnectClicked_Call struct {
174- *mock.Call
175-}
176-
177-// ConnectClicked is a helper method to define mock.On call
178-// - callback func()
179-func (_e *MockButtonWidget_Expecter) ConnectClicked(callback interface{}) *MockButtonWidget_ConnectClicked_Call {
180- return &MockButtonWidget_ConnectClicked_Call{Call: _e.mock.On("ConnectClicked", callback)}
181-}
182-
183-func (_c *MockButtonWidget_ConnectClicked_Call) Run(run func(callback func())) *MockButtonWidget_ConnectClicked_Call {
184- _c.Call.Run(func(args mock.Arguments) {
185- run(args[0].(func()))
186- })
187- return _c
188-}
189-
190-func (_c *MockButtonWidget_ConnectClicked_Call) Return(_a0 uint32) *MockButtonWidget_ConnectClicked_Call {
191- _c.Call.Return(_a0)
192- return _c
193-}
194-
195-func (_c *MockButtonWidget_ConnectClicked_Call) RunAndReturn(run func(func()) uint32) *MockButtonWidget_ConnectClicked_Call {
196- _c.Call.Return(run)
197- return _c
198-}
199-
200-// GetAllocatedHeight provides a mock function with no fields
201-func (_m *MockButtonWidget) GetAllocatedHeight() int {
202- ret := _m.Called()
203-
204- if len(ret) == 0 {
205- panic("no return value specified for GetAllocatedHeight")
206- }
207-
208- var r0 int
209- if rf, ok := ret.Get(0).(func() int); ok {
210- r0 = rf()
211- } else {
212- r0 = ret.Get(0).(int)
213- }
214-
215- return r0
216-}
217-
218-// MockButtonWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
219-type MockButtonWidget_GetAllocatedHeight_Call struct {
220- *mock.Call
221-}
222-
223-// GetAllocatedHeight is a helper method to define mock.On call
224-func (_e *MockButtonWidget_Expecter) GetAllocatedHeight() *MockButtonWidget_GetAllocatedHeight_Call {
225- return &MockButtonWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
226-}
227-
228-func (_c *MockButtonWidget_GetAllocatedHeight_Call) Run(run func()) *MockButtonWidget_GetAllocatedHeight_Call {
229- _c.Call.Run(func(args mock.Arguments) {
230- run()
231- })
232- return _c
233-}
234-
235-func (_c *MockButtonWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockButtonWidget_GetAllocatedHeight_Call {
236- _c.Call.Return(_a0)
237- return _c
238-}
239-
240-func (_c *MockButtonWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockButtonWidget_GetAllocatedHeight_Call {
241- _c.Call.Return(run)
242- return _c
243-}
244-
245-// GetAllocatedWidth provides a mock function with no fields
246-func (_m *MockButtonWidget) GetAllocatedWidth() int {
247- ret := _m.Called()
248-
249- if len(ret) == 0 {
250- panic("no return value specified for GetAllocatedWidth")
251- }
252-
253- var r0 int
254- if rf, ok := ret.Get(0).(func() int); ok {
255- r0 = rf()
256- } else {
257- r0 = ret.Get(0).(int)
258- }
259-
260- return r0
261-}
262-
263-// MockButtonWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
264-type MockButtonWidget_GetAllocatedWidth_Call struct {
265- *mock.Call
266-}
267-
268-// GetAllocatedWidth is a helper method to define mock.On call
269-func (_e *MockButtonWidget_Expecter) GetAllocatedWidth() *MockButtonWidget_GetAllocatedWidth_Call {
270- return &MockButtonWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
271-}
272-
273-func (_c *MockButtonWidget_GetAllocatedWidth_Call) Run(run func()) *MockButtonWidget_GetAllocatedWidth_Call {
274- _c.Call.Run(func(args mock.Arguments) {
275- run()
276- })
277- return _c
278-}
279-
280-func (_c *MockButtonWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockButtonWidget_GetAllocatedWidth_Call {
281- _c.Call.Return(_a0)
282- return _c
283-}
284-
285-func (_c *MockButtonWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockButtonWidget_GetAllocatedWidth_Call {
286- _c.Call.Return(run)
287- return _c
288-}
289-
290-// GetChild provides a mock function with no fields
291-func (_m *MockButtonWidget) GetChild() layout.Widget {
292- ret := _m.Called()
293-
294- if len(ret) == 0 {
295- panic("no return value specified for GetChild")
296- }
297-
298- var r0 layout.Widget
299- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
300- r0 = rf()
301- } else {
302- if ret.Get(0) != nil {
303- r0 = ret.Get(0).(layout.Widget)
304- }
305- }
306-
307- return r0
308-}
309-
310-// MockButtonWidget_GetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChild'
311-type MockButtonWidget_GetChild_Call struct {
312- *mock.Call
313-}
314-
315-// GetChild is a helper method to define mock.On call
316-func (_e *MockButtonWidget_Expecter) GetChild() *MockButtonWidget_GetChild_Call {
317- return &MockButtonWidget_GetChild_Call{Call: _e.mock.On("GetChild")}
318-}
319-
320-func (_c *MockButtonWidget_GetChild_Call) Run(run func()) *MockButtonWidget_GetChild_Call {
321- _c.Call.Run(func(args mock.Arguments) {
322- run()
323- })
324- return _c
325-}
326-
327-func (_c *MockButtonWidget_GetChild_Call) Return(_a0 layout.Widget) *MockButtonWidget_GetChild_Call {
328- _c.Call.Return(_a0)
329- return _c
330-}
331-
332-func (_c *MockButtonWidget_GetChild_Call) RunAndReturn(run func() layout.Widget) *MockButtonWidget_GetChild_Call {
333- _c.Call.Return(run)
334- return _c
335-}
336-
337-// GetHexpand provides a mock function with no fields
338-func (_m *MockButtonWidget) GetHexpand() bool {
339- ret := _m.Called()
340-
341- if len(ret) == 0 {
342- panic("no return value specified for GetHexpand")
343- }
344-
345- var r0 bool
346- if rf, ok := ret.Get(0).(func() bool); ok {
347- r0 = rf()
348- } else {
349- r0 = ret.Get(0).(bool)
350- }
351-
352- return r0
353-}
354-
355-// MockButtonWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
356-type MockButtonWidget_GetHexpand_Call struct {
357- *mock.Call
358-}
359-
360-// GetHexpand is a helper method to define mock.On call
361-func (_e *MockButtonWidget_Expecter) GetHexpand() *MockButtonWidget_GetHexpand_Call {
362- return &MockButtonWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
363-}
364-
365-func (_c *MockButtonWidget_GetHexpand_Call) Run(run func()) *MockButtonWidget_GetHexpand_Call {
366- _c.Call.Run(func(args mock.Arguments) {
367- run()
368- })
369- return _c
370-}
371-
372-func (_c *MockButtonWidget_GetHexpand_Call) Return(_a0 bool) *MockButtonWidget_GetHexpand_Call {
373- _c.Call.Return(_a0)
374- return _c
375-}
376-
377-func (_c *MockButtonWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockButtonWidget_GetHexpand_Call {
378- _c.Call.Return(run)
379- return _c
380-}
381-
382-// GetLabel provides a mock function with no fields
383-func (_m *MockButtonWidget) GetLabel() string {
384- ret := _m.Called()
385-
386- if len(ret) == 0 {
387- panic("no return value specified for GetLabel")
388- }
389-
390- var r0 string
391- if rf, ok := ret.Get(0).(func() string); ok {
392- r0 = rf()
393- } else {
394- r0 = ret.Get(0).(string)
395- }
396-
397- return r0
398-}
399-
400-// MockButtonWidget_GetLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLabel'
401-type MockButtonWidget_GetLabel_Call struct {
402- *mock.Call
403-}
404-
405-// GetLabel is a helper method to define mock.On call
406-func (_e *MockButtonWidget_Expecter) GetLabel() *MockButtonWidget_GetLabel_Call {
407- return &MockButtonWidget_GetLabel_Call{Call: _e.mock.On("GetLabel")}
408-}
409-
410-func (_c *MockButtonWidget_GetLabel_Call) Run(run func()) *MockButtonWidget_GetLabel_Call {
411- _c.Call.Run(func(args mock.Arguments) {
412- run()
413- })
414- return _c
415-}
416-
417-func (_c *MockButtonWidget_GetLabel_Call) Return(_a0 string) *MockButtonWidget_GetLabel_Call {
418- _c.Call.Return(_a0)
419- return _c
420-}
421-
422-func (_c *MockButtonWidget_GetLabel_Call) RunAndReturn(run func() string) *MockButtonWidget_GetLabel_Call {
423- _c.Call.Return(run)
424- return _c
425-}
426-
427-// GetParent provides a mock function with no fields
428-func (_m *MockButtonWidget) GetParent() layout.Widget {
429- ret := _m.Called()
430-
431- if len(ret) == 0 {
432- panic("no return value specified for GetParent")
433- }
434-
435- var r0 layout.Widget
436- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
437- r0 = rf()
438- } else {
439- if ret.Get(0) != nil {
440- r0 = ret.Get(0).(layout.Widget)
441- }
442- }
443-
444- return r0
445-}
446-
447-// MockButtonWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
448-type MockButtonWidget_GetParent_Call struct {
449- *mock.Call
450-}
451-
452-// GetParent is a helper method to define mock.On call
453-func (_e *MockButtonWidget_Expecter) GetParent() *MockButtonWidget_GetParent_Call {
454- return &MockButtonWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
455-}
456-
457-func (_c *MockButtonWidget_GetParent_Call) Run(run func()) *MockButtonWidget_GetParent_Call {
458- _c.Call.Run(func(args mock.Arguments) {
459- run()
460- })
461- return _c
462-}
463-
464-func (_c *MockButtonWidget_GetParent_Call) Return(_a0 layout.Widget) *MockButtonWidget_GetParent_Call {
465- _c.Call.Return(_a0)
466- return _c
467-}
468-
469-func (_c *MockButtonWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockButtonWidget_GetParent_Call {
470- _c.Call.Return(run)
471- return _c
472-}
473-
474-// GetVexpand provides a mock function with no fields
475-func (_m *MockButtonWidget) GetVexpand() bool {
476- ret := _m.Called()
477-
478- if len(ret) == 0 {
479- panic("no return value specified for GetVexpand")
480- }
481-
482- var r0 bool
483- if rf, ok := ret.Get(0).(func() bool); ok {
484- r0 = rf()
485- } else {
486- r0 = ret.Get(0).(bool)
487- }
488-
489- return r0
490-}
491-
492-// MockButtonWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
493-type MockButtonWidget_GetVexpand_Call struct {
494- *mock.Call
495-}
496-
497-// GetVexpand is a helper method to define mock.On call
498-func (_e *MockButtonWidget_Expecter) GetVexpand() *MockButtonWidget_GetVexpand_Call {
499- return &MockButtonWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
500-}
501-
502-func (_c *MockButtonWidget_GetVexpand_Call) Run(run func()) *MockButtonWidget_GetVexpand_Call {
503- _c.Call.Run(func(args mock.Arguments) {
504- run()
505- })
506- return _c
507-}
508-
509-func (_c *MockButtonWidget_GetVexpand_Call) Return(_a0 bool) *MockButtonWidget_GetVexpand_Call {
510- _c.Call.Return(_a0)
511- return _c
512-}
513-
514-func (_c *MockButtonWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockButtonWidget_GetVexpand_Call {
515- _c.Call.Return(run)
516- return _c
517-}
518-
519-// GrabFocus provides a mock function with no fields
520-func (_m *MockButtonWidget) GrabFocus() bool {
521- ret := _m.Called()
522-
523- if len(ret) == 0 {
524- panic("no return value specified for GrabFocus")
525- }
526-
527- var r0 bool
528- if rf, ok := ret.Get(0).(func() bool); ok {
529- r0 = rf()
530- } else {
531- r0 = ret.Get(0).(bool)
532- }
533-
534- return r0
535-}
536-
537-// MockButtonWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
538-type MockButtonWidget_GrabFocus_Call struct {
539- *mock.Call
540-}
541-
542-// GrabFocus is a helper method to define mock.On call
543-func (_e *MockButtonWidget_Expecter) GrabFocus() *MockButtonWidget_GrabFocus_Call {
544- return &MockButtonWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
545-}
546-
547-func (_c *MockButtonWidget_GrabFocus_Call) Run(run func()) *MockButtonWidget_GrabFocus_Call {
548- _c.Call.Run(func(args mock.Arguments) {
549- run()
550- })
551- return _c
552-}
553-
554-func (_c *MockButtonWidget_GrabFocus_Call) Return(_a0 bool) *MockButtonWidget_GrabFocus_Call {
555- _c.Call.Return(_a0)
556- return _c
557-}
558-
559-func (_c *MockButtonWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockButtonWidget_GrabFocus_Call {
560- _c.Call.Return(run)
561- return _c
562-}
563-
564-// GtkWidget provides a mock function with no fields
565-func (_m *MockButtonWidget) GtkWidget() *gtk.Widget {
566- ret := _m.Called()
567-
568- if len(ret) == 0 {
569- panic("no return value specified for GtkWidget")
570- }
571-
572- var r0 *gtk.Widget
573- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
574- r0 = rf()
575- } else {
576- if ret.Get(0) != nil {
577- r0 = ret.Get(0).(*gtk.Widget)
578- }
579- }
580-
581- return r0
582-}
583-
584-// MockButtonWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
585-type MockButtonWidget_GtkWidget_Call struct {
586- *mock.Call
587-}
588-
589-// GtkWidget is a helper method to define mock.On call
590-func (_e *MockButtonWidget_Expecter) GtkWidget() *MockButtonWidget_GtkWidget_Call {
591- return &MockButtonWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
592-}
593-
594-func (_c *MockButtonWidget_GtkWidget_Call) Run(run func()) *MockButtonWidget_GtkWidget_Call {
595- _c.Call.Run(func(args mock.Arguments) {
596- run()
597- })
598- return _c
599-}
600-
601-func (_c *MockButtonWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockButtonWidget_GtkWidget_Call {
602- _c.Call.Return(_a0)
603- return _c
604-}
605-
606-func (_c *MockButtonWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockButtonWidget_GtkWidget_Call {
607- _c.Call.Return(run)
608- return _c
609-}
610-
611-// HasCssClass provides a mock function with given fields: cssClass
612-func (_m *MockButtonWidget) HasCssClass(cssClass string) bool {
613- ret := _m.Called(cssClass)
614-
615- if len(ret) == 0 {
616- panic("no return value specified for HasCssClass")
617- }
618-
619- var r0 bool
620- if rf, ok := ret.Get(0).(func(string) bool); ok {
621- r0 = rf(cssClass)
622- } else {
623- r0 = ret.Get(0).(bool)
624- }
625-
626- return r0
627-}
628-
629-// MockButtonWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
630-type MockButtonWidget_HasCssClass_Call struct {
631- *mock.Call
632-}
633-
634-// HasCssClass is a helper method to define mock.On call
635-// - cssClass string
636-func (_e *MockButtonWidget_Expecter) HasCssClass(cssClass interface{}) *MockButtonWidget_HasCssClass_Call {
637- return &MockButtonWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
638-}
639-
640-func (_c *MockButtonWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockButtonWidget_HasCssClass_Call {
641- _c.Call.Run(func(args mock.Arguments) {
642- run(args[0].(string))
643- })
644- return _c
645-}
646-
647-func (_c *MockButtonWidget_HasCssClass_Call) Return(_a0 bool) *MockButtonWidget_HasCssClass_Call {
648- _c.Call.Return(_a0)
649- return _c
650-}
651-
652-func (_c *MockButtonWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockButtonWidget_HasCssClass_Call {
653- _c.Call.Return(run)
654- return _c
655-}
656-
657-// HasFocus provides a mock function with no fields
658-func (_m *MockButtonWidget) HasFocus() bool {
659- ret := _m.Called()
660-
661- if len(ret) == 0 {
662- panic("no return value specified for HasFocus")
663- }
664-
665- var r0 bool
666- if rf, ok := ret.Get(0).(func() bool); ok {
667- r0 = rf()
668- } else {
669- r0 = ret.Get(0).(bool)
670- }
671-
672- return r0
673-}
674-
675-// MockButtonWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
676-type MockButtonWidget_HasFocus_Call struct {
677- *mock.Call
678-}
679-
680-// HasFocus is a helper method to define mock.On call
681-func (_e *MockButtonWidget_Expecter) HasFocus() *MockButtonWidget_HasFocus_Call {
682- return &MockButtonWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
683-}
684-
685-func (_c *MockButtonWidget_HasFocus_Call) Run(run func()) *MockButtonWidget_HasFocus_Call {
686- _c.Call.Run(func(args mock.Arguments) {
687- run()
688- })
689- return _c
690-}
691-
692-func (_c *MockButtonWidget_HasFocus_Call) Return(_a0 bool) *MockButtonWidget_HasFocus_Call {
693- _c.Call.Return(_a0)
694- return _c
695-}
696-
697-func (_c *MockButtonWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockButtonWidget_HasFocus_Call {
698- _c.Call.Return(run)
699- return _c
700-}
701-
702-// Hide provides a mock function with no fields
703-func (_m *MockButtonWidget) Hide() {
704- _m.Called()
705-}
706-
707-// MockButtonWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
708-type MockButtonWidget_Hide_Call struct {
709- *mock.Call
710-}
711-
712-// Hide is a helper method to define mock.On call
713-func (_e *MockButtonWidget_Expecter) Hide() *MockButtonWidget_Hide_Call {
714- return &MockButtonWidget_Hide_Call{Call: _e.mock.On("Hide")}
715-}
716-
717-func (_c *MockButtonWidget_Hide_Call) Run(run func()) *MockButtonWidget_Hide_Call {
718- _c.Call.Run(func(args mock.Arguments) {
719- run()
720- })
721- return _c
722-}
723-
724-func (_c *MockButtonWidget_Hide_Call) Return() *MockButtonWidget_Hide_Call {
725- _c.Call.Return()
726- return _c
727-}
728-
729-func (_c *MockButtonWidget_Hide_Call) RunAndReturn(run func()) *MockButtonWidget_Hide_Call {
730- _c.Run(run)
731- return _c
732-}
733-
734-// IsVisible provides a mock function with no fields
735-func (_m *MockButtonWidget) IsVisible() bool {
736- ret := _m.Called()
737-
738- if len(ret) == 0 {
739- panic("no return value specified for IsVisible")
740- }
741-
742- var r0 bool
743- if rf, ok := ret.Get(0).(func() bool); ok {
744- r0 = rf()
745- } else {
746- r0 = ret.Get(0).(bool)
747- }
748-
749- return r0
750-}
751-
752-// MockButtonWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
753-type MockButtonWidget_IsVisible_Call struct {
754- *mock.Call
755-}
756-
757-// IsVisible is a helper method to define mock.On call
758-func (_e *MockButtonWidget_Expecter) IsVisible() *MockButtonWidget_IsVisible_Call {
759- return &MockButtonWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
760-}
761-
762-func (_c *MockButtonWidget_IsVisible_Call) Run(run func()) *MockButtonWidget_IsVisible_Call {
763- _c.Call.Run(func(args mock.Arguments) {
764- run()
765- })
766- return _c
767-}
768-
769-func (_c *MockButtonWidget_IsVisible_Call) Return(_a0 bool) *MockButtonWidget_IsVisible_Call {
770- _c.Call.Return(_a0)
771- return _c
772-}
773-
774-func (_c *MockButtonWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockButtonWidget_IsVisible_Call {
775- _c.Call.Return(run)
776- return _c
777-}
778-
779-// RemoveCssClass provides a mock function with given fields: cssClass
780-func (_m *MockButtonWidget) RemoveCssClass(cssClass string) {
781- _m.Called(cssClass)
782-}
783-
784-// MockButtonWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
785-type MockButtonWidget_RemoveCssClass_Call struct {
786- *mock.Call
787-}
788-
789-// RemoveCssClass is a helper method to define mock.On call
790-// - cssClass string
791-func (_e *MockButtonWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockButtonWidget_RemoveCssClass_Call {
792- return &MockButtonWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
793-}
794-
795-func (_c *MockButtonWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockButtonWidget_RemoveCssClass_Call {
796- _c.Call.Run(func(args mock.Arguments) {
797- run(args[0].(string))
798- })
799- return _c
800-}
801-
802-func (_c *MockButtonWidget_RemoveCssClass_Call) Return() *MockButtonWidget_RemoveCssClass_Call {
803- _c.Call.Return()
804- return _c
805-}
806-
807-func (_c *MockButtonWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockButtonWidget_RemoveCssClass_Call {
808- _c.Run(run)
809- return _c
810-}
811-
812-// SetCanFocus provides a mock function with given fields: canFocus
813-func (_m *MockButtonWidget) SetCanFocus(canFocus bool) {
814- _m.Called(canFocus)
815-}
816-
817-// MockButtonWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
818-type MockButtonWidget_SetCanFocus_Call struct {
819- *mock.Call
820-}
821-
822-// SetCanFocus is a helper method to define mock.On call
823-// - canFocus bool
824-func (_e *MockButtonWidget_Expecter) SetCanFocus(canFocus interface{}) *MockButtonWidget_SetCanFocus_Call {
825- return &MockButtonWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
826-}
827-
828-func (_c *MockButtonWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockButtonWidget_SetCanFocus_Call {
829- _c.Call.Run(func(args mock.Arguments) {
830- run(args[0].(bool))
831- })
832- return _c
833-}
834-
835-func (_c *MockButtonWidget_SetCanFocus_Call) Return() *MockButtonWidget_SetCanFocus_Call {
836- _c.Call.Return()
837- return _c
838-}
839-
840-func (_c *MockButtonWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockButtonWidget_SetCanFocus_Call {
841- _c.Run(run)
842- return _c
843-}
844-
845-// SetCanTarget provides a mock function with given fields: canTarget
846-func (_m *MockButtonWidget) SetCanTarget(canTarget bool) {
847- _m.Called(canTarget)
848-}
849-
850-// MockButtonWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
851-type MockButtonWidget_SetCanTarget_Call struct {
852- *mock.Call
853-}
854-
855-// SetCanTarget is a helper method to define mock.On call
856-// - canTarget bool
857-func (_e *MockButtonWidget_Expecter) SetCanTarget(canTarget interface{}) *MockButtonWidget_SetCanTarget_Call {
858- return &MockButtonWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
859-}
860-
861-func (_c *MockButtonWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockButtonWidget_SetCanTarget_Call {
862- _c.Call.Run(func(args mock.Arguments) {
863- run(args[0].(bool))
864- })
865- return _c
866-}
867-
868-func (_c *MockButtonWidget_SetCanTarget_Call) Return() *MockButtonWidget_SetCanTarget_Call {
869- _c.Call.Return()
870- return _c
871-}
872-
873-func (_c *MockButtonWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockButtonWidget_SetCanTarget_Call {
874- _c.Run(run)
875- return _c
876-}
877-
878-// SetChild provides a mock function with given fields: child
879-func (_m *MockButtonWidget) SetChild(child layout.Widget) {
880- _m.Called(child)
881-}
882-
883-// MockButtonWidget_SetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetChild'
884-type MockButtonWidget_SetChild_Call struct {
885- *mock.Call
886-}
887-
888-// SetChild is a helper method to define mock.On call
889-// - child layout.Widget
890-func (_e *MockButtonWidget_Expecter) SetChild(child interface{}) *MockButtonWidget_SetChild_Call {
891- return &MockButtonWidget_SetChild_Call{Call: _e.mock.On("SetChild", child)}
892-}
893-
894-func (_c *MockButtonWidget_SetChild_Call) Run(run func(child layout.Widget)) *MockButtonWidget_SetChild_Call {
895- _c.Call.Run(func(args mock.Arguments) {
896- run(args[0].(layout.Widget))
897- })
898- return _c
899-}
900-
901-func (_c *MockButtonWidget_SetChild_Call) Return() *MockButtonWidget_SetChild_Call {
902- _c.Call.Return()
903- return _c
904-}
905-
906-func (_c *MockButtonWidget_SetChild_Call) RunAndReturn(run func(layout.Widget)) *MockButtonWidget_SetChild_Call {
907- _c.Run(run)
908- return _c
909-}
910-
911-// SetFocusOnClick provides a mock function with given fields: focusOnClick
912-func (_m *MockButtonWidget) SetFocusOnClick(focusOnClick bool) {
913- _m.Called(focusOnClick)
914-}
915-
916-// MockButtonWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
917-type MockButtonWidget_SetFocusOnClick_Call struct {
918- *mock.Call
919-}
920-
921-// SetFocusOnClick is a helper method to define mock.On call
922-// - focusOnClick bool
923-func (_e *MockButtonWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockButtonWidget_SetFocusOnClick_Call {
924- return &MockButtonWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
925-}
926-
927-func (_c *MockButtonWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockButtonWidget_SetFocusOnClick_Call {
928- _c.Call.Run(func(args mock.Arguments) {
929- run(args[0].(bool))
930- })
931- return _c
932-}
933-
934-func (_c *MockButtonWidget_SetFocusOnClick_Call) Return() *MockButtonWidget_SetFocusOnClick_Call {
935- _c.Call.Return()
936- return _c
937-}
938-
939-func (_c *MockButtonWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockButtonWidget_SetFocusOnClick_Call {
940- _c.Run(run)
941- return _c
942-}
943-
944-// SetHalign provides a mock function with given fields: align
945-func (_m *MockButtonWidget) SetHalign(align gtk.Align) {
946- _m.Called(align)
947-}
948-
949-// MockButtonWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
950-type MockButtonWidget_SetHalign_Call struct {
951- *mock.Call
952-}
953-
954-// SetHalign is a helper method to define mock.On call
955-// - align gtk.Align
956-func (_e *MockButtonWidget_Expecter) SetHalign(align interface{}) *MockButtonWidget_SetHalign_Call {
957- return &MockButtonWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
958-}
959-
960-func (_c *MockButtonWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockButtonWidget_SetHalign_Call {
961- _c.Call.Run(func(args mock.Arguments) {
962- run(args[0].(gtk.Align))
963- })
964- return _c
965-}
966-
967-func (_c *MockButtonWidget_SetHalign_Call) Return() *MockButtonWidget_SetHalign_Call {
968- _c.Call.Return()
969- return _c
970-}
971-
972-func (_c *MockButtonWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockButtonWidget_SetHalign_Call {
973- _c.Run(run)
974- return _c
975-}
976-
977-// SetHexpand provides a mock function with given fields: expand
978-func (_m *MockButtonWidget) SetHexpand(expand bool) {
979- _m.Called(expand)
980-}
981-
982-// MockButtonWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
983-type MockButtonWidget_SetHexpand_Call struct {
984- *mock.Call
985-}
986-
987-// SetHexpand is a helper method to define mock.On call
988-// - expand bool
989-func (_e *MockButtonWidget_Expecter) SetHexpand(expand interface{}) *MockButtonWidget_SetHexpand_Call {
990- return &MockButtonWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
991-}
992-
993-func (_c *MockButtonWidget_SetHexpand_Call) Run(run func(expand bool)) *MockButtonWidget_SetHexpand_Call {
994- _c.Call.Run(func(args mock.Arguments) {
995- run(args[0].(bool))
996- })
997- return _c
998-}
999-
1000-func (_c *MockButtonWidget_SetHexpand_Call) Return() *MockButtonWidget_SetHexpand_Call {
1001- _c.Call.Return()
1002- return _c
1003-}
1004-
1005-func (_c *MockButtonWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockButtonWidget_SetHexpand_Call {
1006- _c.Run(run)
1007- return _c
1008-}
1009-
1010-// SetLabel provides a mock function with given fields: label
1011-func (_m *MockButtonWidget) SetLabel(label string) {
1012- _m.Called(label)
1013-}
1014-
1015-// MockButtonWidget_SetLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLabel'
1016-type MockButtonWidget_SetLabel_Call struct {
1017- *mock.Call
1018-}
1019-
1020-// SetLabel is a helper method to define mock.On call
1021-// - label string
1022-func (_e *MockButtonWidget_Expecter) SetLabel(label interface{}) *MockButtonWidget_SetLabel_Call {
1023- return &MockButtonWidget_SetLabel_Call{Call: _e.mock.On("SetLabel", label)}
1024-}
1025-
1026-func (_c *MockButtonWidget_SetLabel_Call) Run(run func(label string)) *MockButtonWidget_SetLabel_Call {
1027- _c.Call.Run(func(args mock.Arguments) {
1028- run(args[0].(string))
1029- })
1030- return _c
1031-}
1032-
1033-func (_c *MockButtonWidget_SetLabel_Call) Return() *MockButtonWidget_SetLabel_Call {
1034- _c.Call.Return()
1035- return _c
1036-}
1037-
1038-func (_c *MockButtonWidget_SetLabel_Call) RunAndReturn(run func(string)) *MockButtonWidget_SetLabel_Call {
1039- _c.Run(run)
1040- return _c
1041-}
1042-
1043-// SetSizeRequest provides a mock function with given fields: width, height
1044-func (_m *MockButtonWidget) SetSizeRequest(width int, height int) {
1045- _m.Called(width, height)
1046-}
1047-
1048-// MockButtonWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
1049-type MockButtonWidget_SetSizeRequest_Call struct {
1050- *mock.Call
1051-}
1052-
1053-// SetSizeRequest is a helper method to define mock.On call
1054-// - width int
1055-// - height int
1056-func (_e *MockButtonWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockButtonWidget_SetSizeRequest_Call {
1057- return &MockButtonWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
1058-}
1059-
1060-func (_c *MockButtonWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockButtonWidget_SetSizeRequest_Call {
1061- _c.Call.Run(func(args mock.Arguments) {
1062- run(args[0].(int), args[1].(int))
1063- })
1064- return _c
1065-}
1066-
1067-func (_c *MockButtonWidget_SetSizeRequest_Call) Return() *MockButtonWidget_SetSizeRequest_Call {
1068- _c.Call.Return()
1069- return _c
1070-}
1071-
1072-func (_c *MockButtonWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockButtonWidget_SetSizeRequest_Call {
1073- _c.Run(run)
1074- return _c
1075-}
1076-
1077-// SetValign provides a mock function with given fields: align
1078-func (_m *MockButtonWidget) SetValign(align gtk.Align) {
1079- _m.Called(align)
1080-}
1081-
1082-// MockButtonWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1083-type MockButtonWidget_SetValign_Call struct {
1084- *mock.Call
1085-}
1086-
1087-// SetValign is a helper method to define mock.On call
1088-// - align gtk.Align
1089-func (_e *MockButtonWidget_Expecter) SetValign(align interface{}) *MockButtonWidget_SetValign_Call {
1090- return &MockButtonWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1091-}
1092-
1093-func (_c *MockButtonWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockButtonWidget_SetValign_Call {
1094- _c.Call.Run(func(args mock.Arguments) {
1095- run(args[0].(gtk.Align))
1096- })
1097- return _c
1098-}
1099-
1100-func (_c *MockButtonWidget_SetValign_Call) Return() *MockButtonWidget_SetValign_Call {
1101- _c.Call.Return()
1102- return _c
1103-}
1104-
1105-func (_c *MockButtonWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockButtonWidget_SetValign_Call {
1106- _c.Run(run)
1107- return _c
1108-}
1109-
1110-// SetVexpand provides a mock function with given fields: expand
1111-func (_m *MockButtonWidget) SetVexpand(expand bool) {
1112- _m.Called(expand)
1113-}
1114-
1115-// MockButtonWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1116-type MockButtonWidget_SetVexpand_Call struct {
1117- *mock.Call
1118-}
1119-
1120-// SetVexpand is a helper method to define mock.On call
1121-// - expand bool
1122-func (_e *MockButtonWidget_Expecter) SetVexpand(expand interface{}) *MockButtonWidget_SetVexpand_Call {
1123- return &MockButtonWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1124-}
1125-
1126-func (_c *MockButtonWidget_SetVexpand_Call) Run(run func(expand bool)) *MockButtonWidget_SetVexpand_Call {
1127- _c.Call.Run(func(args mock.Arguments) {
1128- run(args[0].(bool))
1129- })
1130- return _c
1131-}
1132-
1133-func (_c *MockButtonWidget_SetVexpand_Call) Return() *MockButtonWidget_SetVexpand_Call {
1134- _c.Call.Return()
1135- return _c
1136-}
1137-
1138-func (_c *MockButtonWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockButtonWidget_SetVexpand_Call {
1139- _c.Run(run)
1140- return _c
1141-}
1142-
1143-// SetVisible provides a mock function with given fields: visible
1144-func (_m *MockButtonWidget) SetVisible(visible bool) {
1145- _m.Called(visible)
1146-}
1147-
1148-// MockButtonWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1149-type MockButtonWidget_SetVisible_Call struct {
1150- *mock.Call
1151-}
1152-
1153-// SetVisible is a helper method to define mock.On call
1154-// - visible bool
1155-func (_e *MockButtonWidget_Expecter) SetVisible(visible interface{}) *MockButtonWidget_SetVisible_Call {
1156- return &MockButtonWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1157-}
1158-
1159-func (_c *MockButtonWidget_SetVisible_Call) Run(run func(visible bool)) *MockButtonWidget_SetVisible_Call {
1160- _c.Call.Run(func(args mock.Arguments) {
1161- run(args[0].(bool))
1162- })
1163- return _c
1164-}
1165-
1166-func (_c *MockButtonWidget_SetVisible_Call) Return() *MockButtonWidget_SetVisible_Call {
1167- _c.Call.Return()
1168- return _c
1169-}
1170-
1171-func (_c *MockButtonWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockButtonWidget_SetVisible_Call {
1172- _c.Run(run)
1173- return _c
1174-}
1175-
1176-// Show provides a mock function with no fields
1177-func (_m *MockButtonWidget) Show() {
1178- _m.Called()
1179-}
1180-
1181-// MockButtonWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1182-type MockButtonWidget_Show_Call struct {
1183- *mock.Call
1184-}
1185-
1186-// Show is a helper method to define mock.On call
1187-func (_e *MockButtonWidget_Expecter) Show() *MockButtonWidget_Show_Call {
1188- return &MockButtonWidget_Show_Call{Call: _e.mock.On("Show")}
1189-}
1190-
1191-func (_c *MockButtonWidget_Show_Call) Run(run func()) *MockButtonWidget_Show_Call {
1192- _c.Call.Run(func(args mock.Arguments) {
1193- run()
1194- })
1195- return _c
1196-}
1197-
1198-func (_c *MockButtonWidget_Show_Call) Return() *MockButtonWidget_Show_Call {
1199- _c.Call.Return()
1200- return _c
1201-}
1202-
1203-func (_c *MockButtonWidget_Show_Call) RunAndReturn(run func()) *MockButtonWidget_Show_Call {
1204- _c.Run(run)
1205- return _c
1206-}
1207-
1208-// Unparent provides a mock function with no fields
1209-func (_m *MockButtonWidget) Unparent() {
1210- _m.Called()
1211-}
1212-
1213-// MockButtonWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1214-type MockButtonWidget_Unparent_Call struct {
1215- *mock.Call
1216-}
1217-
1218-// Unparent is a helper method to define mock.On call
1219-func (_e *MockButtonWidget_Expecter) Unparent() *MockButtonWidget_Unparent_Call {
1220- return &MockButtonWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1221-}
1222-
1223-func (_c *MockButtonWidget_Unparent_Call) Run(run func()) *MockButtonWidget_Unparent_Call {
1224- _c.Call.Run(func(args mock.Arguments) {
1225- run()
1226- })
1227- return _c
1228-}
1229-
1230-func (_c *MockButtonWidget_Unparent_Call) Return() *MockButtonWidget_Unparent_Call {
1231- _c.Call.Return()
1232- return _c
1233-}
1234-
1235-func (_c *MockButtonWidget_Unparent_Call) RunAndReturn(run func()) *MockButtonWidget_Unparent_Call {
1236- _c.Run(run)
1237- return _c
1238-}
1239-
1240-// NewMockButtonWidget creates a new instance of MockButtonWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1241-// The first argument is typically a *testing.T value.
1242-func NewMockButtonWidget(t interface {
1243- mock.TestingT
1244- Cleanup(func())
1245-}) *MockButtonWidget {
1246- mock := &MockButtonWidget{}
1247- mock.Mock.Test(t)
1248-
1249- t.Cleanup(func() { mock.AssertExpectations(t) })
1250-
1251- return mock
1252-}
D internal/ui/layout/mocks/mock_image_widget.go +0 -1212
@@ -1,1212 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockImageWidget is an autogenerated mock type for the ImageWidget type
13-type MockImageWidget struct {
14- mock.Mock
15-}
16-
17-type MockImageWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockImageWidget) EXPECT() *MockImageWidget_Expecter {
22- return &MockImageWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockImageWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockImageWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockImageWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockImageWidget_Expecter) AddController(controller interface{}) *MockImageWidget_AddController_Call {
38- return &MockImageWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockImageWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockImageWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockImageWidget_AddController_Call) Return() *MockImageWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockImageWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockImageWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockImageWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockImageWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockImageWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockImageWidget_Expecter) AddCssClass(cssClass interface{}) *MockImageWidget_AddCssClass_Call {
71- return &MockImageWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockImageWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockImageWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockImageWidget_AddCssClass_Call) Return() *MockImageWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockImageWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockImageWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// Clear provides a mock function with no fields
92-func (_m *MockImageWidget) Clear() {
93- _m.Called()
94-}
95-
96-// MockImageWidget_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
97-type MockImageWidget_Clear_Call struct {
98- *mock.Call
99-}
100-
101-// Clear is a helper method to define mock.On call
102-func (_e *MockImageWidget_Expecter) Clear() *MockImageWidget_Clear_Call {
103- return &MockImageWidget_Clear_Call{Call: _e.mock.On("Clear")}
104-}
105-
106-func (_c *MockImageWidget_Clear_Call) Run(run func()) *MockImageWidget_Clear_Call {
107- _c.Call.Run(func(args mock.Arguments) {
108- run()
109- })
110- return _c
111-}
112-
113-func (_c *MockImageWidget_Clear_Call) Return() *MockImageWidget_Clear_Call {
114- _c.Call.Return()
115- return _c
116-}
117-
118-func (_c *MockImageWidget_Clear_Call) RunAndReturn(run func()) *MockImageWidget_Clear_Call {
119- _c.Run(run)
120- return _c
121-}
122-
123-// ComputePoint provides a mock function with given fields: target
124-func (_m *MockImageWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
125- ret := _m.Called(target)
126-
127- if len(ret) == 0 {
128- panic("no return value specified for ComputePoint")
129- }
130-
131- var r0 float64
132- var r1 float64
133- var r2 bool
134- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
135- return rf(target)
136- }
137- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
138- r0 = rf(target)
139- } else {
140- r0 = ret.Get(0).(float64)
141- }
142-
143- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
144- r1 = rf(target)
145- } else {
146- r1 = ret.Get(1).(float64)
147- }
148-
149- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
150- r2 = rf(target)
151- } else {
152- r2 = ret.Get(2).(bool)
153- }
154-
155- return r0, r1, r2
156-}
157-
158-// MockImageWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
159-type MockImageWidget_ComputePoint_Call struct {
160- *mock.Call
161-}
162-
163-// ComputePoint is a helper method to define mock.On call
164-// - target layout.Widget
165-func (_e *MockImageWidget_Expecter) ComputePoint(target interface{}) *MockImageWidget_ComputePoint_Call {
166- return &MockImageWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
167-}
168-
169-func (_c *MockImageWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockImageWidget_ComputePoint_Call {
170- _c.Call.Run(func(args mock.Arguments) {
171- run(args[0].(layout.Widget))
172- })
173- return _c
174-}
175-
176-func (_c *MockImageWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockImageWidget_ComputePoint_Call {
177- _c.Call.Return(x, y, ok)
178- return _c
179-}
180-
181-func (_c *MockImageWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockImageWidget_ComputePoint_Call {
182- _c.Call.Return(run)
183- return _c
184-}
185-
186-// GetAllocatedHeight provides a mock function with no fields
187-func (_m *MockImageWidget) GetAllocatedHeight() int {
188- ret := _m.Called()
189-
190- if len(ret) == 0 {
191- panic("no return value specified for GetAllocatedHeight")
192- }
193-
194- var r0 int
195- if rf, ok := ret.Get(0).(func() int); ok {
196- r0 = rf()
197- } else {
198- r0 = ret.Get(0).(int)
199- }
200-
201- return r0
202-}
203-
204-// MockImageWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
205-type MockImageWidget_GetAllocatedHeight_Call struct {
206- *mock.Call
207-}
208-
209-// GetAllocatedHeight is a helper method to define mock.On call
210-func (_e *MockImageWidget_Expecter) GetAllocatedHeight() *MockImageWidget_GetAllocatedHeight_Call {
211- return &MockImageWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
212-}
213-
214-func (_c *MockImageWidget_GetAllocatedHeight_Call) Run(run func()) *MockImageWidget_GetAllocatedHeight_Call {
215- _c.Call.Run(func(args mock.Arguments) {
216- run()
217- })
218- return _c
219-}
220-
221-func (_c *MockImageWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockImageWidget_GetAllocatedHeight_Call {
222- _c.Call.Return(_a0)
223- return _c
224-}
225-
226-func (_c *MockImageWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockImageWidget_GetAllocatedHeight_Call {
227- _c.Call.Return(run)
228- return _c
229-}
230-
231-// GetAllocatedWidth provides a mock function with no fields
232-func (_m *MockImageWidget) GetAllocatedWidth() int {
233- ret := _m.Called()
234-
235- if len(ret) == 0 {
236- panic("no return value specified for GetAllocatedWidth")
237- }
238-
239- var r0 int
240- if rf, ok := ret.Get(0).(func() int); ok {
241- r0 = rf()
242- } else {
243- r0 = ret.Get(0).(int)
244- }
245-
246- return r0
247-}
248-
249-// MockImageWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
250-type MockImageWidget_GetAllocatedWidth_Call struct {
251- *mock.Call
252-}
253-
254-// GetAllocatedWidth is a helper method to define mock.On call
255-func (_e *MockImageWidget_Expecter) GetAllocatedWidth() *MockImageWidget_GetAllocatedWidth_Call {
256- return &MockImageWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
257-}
258-
259-func (_c *MockImageWidget_GetAllocatedWidth_Call) Run(run func()) *MockImageWidget_GetAllocatedWidth_Call {
260- _c.Call.Run(func(args mock.Arguments) {
261- run()
262- })
263- return _c
264-}
265-
266-func (_c *MockImageWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockImageWidget_GetAllocatedWidth_Call {
267- _c.Call.Return(_a0)
268- return _c
269-}
270-
271-func (_c *MockImageWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockImageWidget_GetAllocatedWidth_Call {
272- _c.Call.Return(run)
273- return _c
274-}
275-
276-// GetHexpand provides a mock function with no fields
277-func (_m *MockImageWidget) GetHexpand() bool {
278- ret := _m.Called()
279-
280- if len(ret) == 0 {
281- panic("no return value specified for GetHexpand")
282- }
283-
284- var r0 bool
285- if rf, ok := ret.Get(0).(func() bool); ok {
286- r0 = rf()
287- } else {
288- r0 = ret.Get(0).(bool)
289- }
290-
291- return r0
292-}
293-
294-// MockImageWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
295-type MockImageWidget_GetHexpand_Call struct {
296- *mock.Call
297-}
298-
299-// GetHexpand is a helper method to define mock.On call
300-func (_e *MockImageWidget_Expecter) GetHexpand() *MockImageWidget_GetHexpand_Call {
301- return &MockImageWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
302-}
303-
304-func (_c *MockImageWidget_GetHexpand_Call) Run(run func()) *MockImageWidget_GetHexpand_Call {
305- _c.Call.Run(func(args mock.Arguments) {
306- run()
307- })
308- return _c
309-}
310-
311-func (_c *MockImageWidget_GetHexpand_Call) Return(_a0 bool) *MockImageWidget_GetHexpand_Call {
312- _c.Call.Return(_a0)
313- return _c
314-}
315-
316-func (_c *MockImageWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockImageWidget_GetHexpand_Call {
317- _c.Call.Return(run)
318- return _c
319-}
320-
321-// GetParent provides a mock function with no fields
322-func (_m *MockImageWidget) GetParent() layout.Widget {
323- ret := _m.Called()
324-
325- if len(ret) == 0 {
326- panic("no return value specified for GetParent")
327- }
328-
329- var r0 layout.Widget
330- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
331- r0 = rf()
332- } else {
333- if ret.Get(0) != nil {
334- r0 = ret.Get(0).(layout.Widget)
335- }
336- }
337-
338- return r0
339-}
340-
341-// MockImageWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
342-type MockImageWidget_GetParent_Call struct {
343- *mock.Call
344-}
345-
346-// GetParent is a helper method to define mock.On call
347-func (_e *MockImageWidget_Expecter) GetParent() *MockImageWidget_GetParent_Call {
348- return &MockImageWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
349-}
350-
351-func (_c *MockImageWidget_GetParent_Call) Run(run func()) *MockImageWidget_GetParent_Call {
352- _c.Call.Run(func(args mock.Arguments) {
353- run()
354- })
355- return _c
356-}
357-
358-func (_c *MockImageWidget_GetParent_Call) Return(_a0 layout.Widget) *MockImageWidget_GetParent_Call {
359- _c.Call.Return(_a0)
360- return _c
361-}
362-
363-func (_c *MockImageWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockImageWidget_GetParent_Call {
364- _c.Call.Return(run)
365- return _c
366-}
367-
368-// GetVexpand provides a mock function with no fields
369-func (_m *MockImageWidget) GetVexpand() bool {
370- ret := _m.Called()
371-
372- if len(ret) == 0 {
373- panic("no return value specified for GetVexpand")
374- }
375-
376- var r0 bool
377- if rf, ok := ret.Get(0).(func() bool); ok {
378- r0 = rf()
379- } else {
380- r0 = ret.Get(0).(bool)
381- }
382-
383- return r0
384-}
385-
386-// MockImageWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
387-type MockImageWidget_GetVexpand_Call struct {
388- *mock.Call
389-}
390-
391-// GetVexpand is a helper method to define mock.On call
392-func (_e *MockImageWidget_Expecter) GetVexpand() *MockImageWidget_GetVexpand_Call {
393- return &MockImageWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
394-}
395-
396-func (_c *MockImageWidget_GetVexpand_Call) Run(run func()) *MockImageWidget_GetVexpand_Call {
397- _c.Call.Run(func(args mock.Arguments) {
398- run()
399- })
400- return _c
401-}
402-
403-func (_c *MockImageWidget_GetVexpand_Call) Return(_a0 bool) *MockImageWidget_GetVexpand_Call {
404- _c.Call.Return(_a0)
405- return _c
406-}
407-
408-func (_c *MockImageWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockImageWidget_GetVexpand_Call {
409- _c.Call.Return(run)
410- return _c
411-}
412-
413-// GrabFocus provides a mock function with no fields
414-func (_m *MockImageWidget) GrabFocus() bool {
415- ret := _m.Called()
416-
417- if len(ret) == 0 {
418- panic("no return value specified for GrabFocus")
419- }
420-
421- var r0 bool
422- if rf, ok := ret.Get(0).(func() bool); ok {
423- r0 = rf()
424- } else {
425- r0 = ret.Get(0).(bool)
426- }
427-
428- return r0
429-}
430-
431-// MockImageWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
432-type MockImageWidget_GrabFocus_Call struct {
433- *mock.Call
434-}
435-
436-// GrabFocus is a helper method to define mock.On call
437-func (_e *MockImageWidget_Expecter) GrabFocus() *MockImageWidget_GrabFocus_Call {
438- return &MockImageWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
439-}
440-
441-func (_c *MockImageWidget_GrabFocus_Call) Run(run func()) *MockImageWidget_GrabFocus_Call {
442- _c.Call.Run(func(args mock.Arguments) {
443- run()
444- })
445- return _c
446-}
447-
448-func (_c *MockImageWidget_GrabFocus_Call) Return(_a0 bool) *MockImageWidget_GrabFocus_Call {
449- _c.Call.Return(_a0)
450- return _c
451-}
452-
453-func (_c *MockImageWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockImageWidget_GrabFocus_Call {
454- _c.Call.Return(run)
455- return _c
456-}
457-
458-// GtkWidget provides a mock function with no fields
459-func (_m *MockImageWidget) GtkWidget() *gtk.Widget {
460- ret := _m.Called()
461-
462- if len(ret) == 0 {
463- panic("no return value specified for GtkWidget")
464- }
465-
466- var r0 *gtk.Widget
467- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
468- r0 = rf()
469- } else {
470- if ret.Get(0) != nil {
471- r0 = ret.Get(0).(*gtk.Widget)
472- }
473- }
474-
475- return r0
476-}
477-
478-// MockImageWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
479-type MockImageWidget_GtkWidget_Call struct {
480- *mock.Call
481-}
482-
483-// GtkWidget is a helper method to define mock.On call
484-func (_e *MockImageWidget_Expecter) GtkWidget() *MockImageWidget_GtkWidget_Call {
485- return &MockImageWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
486-}
487-
488-func (_c *MockImageWidget_GtkWidget_Call) Run(run func()) *MockImageWidget_GtkWidget_Call {
489- _c.Call.Run(func(args mock.Arguments) {
490- run()
491- })
492- return _c
493-}
494-
495-func (_c *MockImageWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockImageWidget_GtkWidget_Call {
496- _c.Call.Return(_a0)
497- return _c
498-}
499-
500-func (_c *MockImageWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockImageWidget_GtkWidget_Call {
501- _c.Call.Return(run)
502- return _c
503-}
504-
505-// HasCssClass provides a mock function with given fields: cssClass
506-func (_m *MockImageWidget) HasCssClass(cssClass string) bool {
507- ret := _m.Called(cssClass)
508-
509- if len(ret) == 0 {
510- panic("no return value specified for HasCssClass")
511- }
512-
513- var r0 bool
514- if rf, ok := ret.Get(0).(func(string) bool); ok {
515- r0 = rf(cssClass)
516- } else {
517- r0 = ret.Get(0).(bool)
518- }
519-
520- return r0
521-}
522-
523-// MockImageWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
524-type MockImageWidget_HasCssClass_Call struct {
525- *mock.Call
526-}
527-
528-// HasCssClass is a helper method to define mock.On call
529-// - cssClass string
530-func (_e *MockImageWidget_Expecter) HasCssClass(cssClass interface{}) *MockImageWidget_HasCssClass_Call {
531- return &MockImageWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
532-}
533-
534-func (_c *MockImageWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockImageWidget_HasCssClass_Call {
535- _c.Call.Run(func(args mock.Arguments) {
536- run(args[0].(string))
537- })
538- return _c
539-}
540-
541-func (_c *MockImageWidget_HasCssClass_Call) Return(_a0 bool) *MockImageWidget_HasCssClass_Call {
542- _c.Call.Return(_a0)
543- return _c
544-}
545-
546-func (_c *MockImageWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockImageWidget_HasCssClass_Call {
547- _c.Call.Return(run)
548- return _c
549-}
550-
551-// HasFocus provides a mock function with no fields
552-func (_m *MockImageWidget) HasFocus() bool {
553- ret := _m.Called()
554-
555- if len(ret) == 0 {
556- panic("no return value specified for HasFocus")
557- }
558-
559- var r0 bool
560- if rf, ok := ret.Get(0).(func() bool); ok {
561- r0 = rf()
562- } else {
563- r0 = ret.Get(0).(bool)
564- }
565-
566- return r0
567-}
568-
569-// MockImageWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
570-type MockImageWidget_HasFocus_Call struct {
571- *mock.Call
572-}
573-
574-// HasFocus is a helper method to define mock.On call
575-func (_e *MockImageWidget_Expecter) HasFocus() *MockImageWidget_HasFocus_Call {
576- return &MockImageWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
577-}
578-
579-func (_c *MockImageWidget_HasFocus_Call) Run(run func()) *MockImageWidget_HasFocus_Call {
580- _c.Call.Run(func(args mock.Arguments) {
581- run()
582- })
583- return _c
584-}
585-
586-func (_c *MockImageWidget_HasFocus_Call) Return(_a0 bool) *MockImageWidget_HasFocus_Call {
587- _c.Call.Return(_a0)
588- return _c
589-}
590-
591-func (_c *MockImageWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockImageWidget_HasFocus_Call {
592- _c.Call.Return(run)
593- return _c
594-}
595-
596-// Hide provides a mock function with no fields
597-func (_m *MockImageWidget) Hide() {
598- _m.Called()
599-}
600-
601-// MockImageWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
602-type MockImageWidget_Hide_Call struct {
603- *mock.Call
604-}
605-
606-// Hide is a helper method to define mock.On call
607-func (_e *MockImageWidget_Expecter) Hide() *MockImageWidget_Hide_Call {
608- return &MockImageWidget_Hide_Call{Call: _e.mock.On("Hide")}
609-}
610-
611-func (_c *MockImageWidget_Hide_Call) Run(run func()) *MockImageWidget_Hide_Call {
612- _c.Call.Run(func(args mock.Arguments) {
613- run()
614- })
615- return _c
616-}
617-
618-func (_c *MockImageWidget_Hide_Call) Return() *MockImageWidget_Hide_Call {
619- _c.Call.Return()
620- return _c
621-}
622-
623-func (_c *MockImageWidget_Hide_Call) RunAndReturn(run func()) *MockImageWidget_Hide_Call {
624- _c.Run(run)
625- return _c
626-}
627-
628-// IsVisible provides a mock function with no fields
629-func (_m *MockImageWidget) IsVisible() bool {
630- ret := _m.Called()
631-
632- if len(ret) == 0 {
633- panic("no return value specified for IsVisible")
634- }
635-
636- var r0 bool
637- if rf, ok := ret.Get(0).(func() bool); ok {
638- r0 = rf()
639- } else {
640- r0 = ret.Get(0).(bool)
641- }
642-
643- return r0
644-}
645-
646-// MockImageWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
647-type MockImageWidget_IsVisible_Call struct {
648- *mock.Call
649-}
650-
651-// IsVisible is a helper method to define mock.On call
652-func (_e *MockImageWidget_Expecter) IsVisible() *MockImageWidget_IsVisible_Call {
653- return &MockImageWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
654-}
655-
656-func (_c *MockImageWidget_IsVisible_Call) Run(run func()) *MockImageWidget_IsVisible_Call {
657- _c.Call.Run(func(args mock.Arguments) {
658- run()
659- })
660- return _c
661-}
662-
663-func (_c *MockImageWidget_IsVisible_Call) Return(_a0 bool) *MockImageWidget_IsVisible_Call {
664- _c.Call.Return(_a0)
665- return _c
666-}
667-
668-func (_c *MockImageWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockImageWidget_IsVisible_Call {
669- _c.Call.Return(run)
670- return _c
671-}
672-
673-// RemoveCssClass provides a mock function with given fields: cssClass
674-func (_m *MockImageWidget) RemoveCssClass(cssClass string) {
675- _m.Called(cssClass)
676-}
677-
678-// MockImageWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
679-type MockImageWidget_RemoveCssClass_Call struct {
680- *mock.Call
681-}
682-
683-// RemoveCssClass is a helper method to define mock.On call
684-// - cssClass string
685-func (_e *MockImageWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockImageWidget_RemoveCssClass_Call {
686- return &MockImageWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
687-}
688-
689-func (_c *MockImageWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockImageWidget_RemoveCssClass_Call {
690- _c.Call.Run(func(args mock.Arguments) {
691- run(args[0].(string))
692- })
693- return _c
694-}
695-
696-func (_c *MockImageWidget_RemoveCssClass_Call) Return() *MockImageWidget_RemoveCssClass_Call {
697- _c.Call.Return()
698- return _c
699-}
700-
701-func (_c *MockImageWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockImageWidget_RemoveCssClass_Call {
702- _c.Run(run)
703- return _c
704-}
705-
706-// SetCanFocus provides a mock function with given fields: canFocus
707-func (_m *MockImageWidget) SetCanFocus(canFocus bool) {
708- _m.Called(canFocus)
709-}
710-
711-// MockImageWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
712-type MockImageWidget_SetCanFocus_Call struct {
713- *mock.Call
714-}
715-
716-// SetCanFocus is a helper method to define mock.On call
717-// - canFocus bool
718-func (_e *MockImageWidget_Expecter) SetCanFocus(canFocus interface{}) *MockImageWidget_SetCanFocus_Call {
719- return &MockImageWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
720-}
721-
722-func (_c *MockImageWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockImageWidget_SetCanFocus_Call {
723- _c.Call.Run(func(args mock.Arguments) {
724- run(args[0].(bool))
725- })
726- return _c
727-}
728-
729-func (_c *MockImageWidget_SetCanFocus_Call) Return() *MockImageWidget_SetCanFocus_Call {
730- _c.Call.Return()
731- return _c
732-}
733-
734-func (_c *MockImageWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockImageWidget_SetCanFocus_Call {
735- _c.Run(run)
736- return _c
737-}
738-
739-// SetCanTarget provides a mock function with given fields: canTarget
740-func (_m *MockImageWidget) SetCanTarget(canTarget bool) {
741- _m.Called(canTarget)
742-}
743-
744-// MockImageWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
745-type MockImageWidget_SetCanTarget_Call struct {
746- *mock.Call
747-}
748-
749-// SetCanTarget is a helper method to define mock.On call
750-// - canTarget bool
751-func (_e *MockImageWidget_Expecter) SetCanTarget(canTarget interface{}) *MockImageWidget_SetCanTarget_Call {
752- return &MockImageWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
753-}
754-
755-func (_c *MockImageWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockImageWidget_SetCanTarget_Call {
756- _c.Call.Run(func(args mock.Arguments) {
757- run(args[0].(bool))
758- })
759- return _c
760-}
761-
762-func (_c *MockImageWidget_SetCanTarget_Call) Return() *MockImageWidget_SetCanTarget_Call {
763- _c.Call.Return()
764- return _c
765-}
766-
767-func (_c *MockImageWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockImageWidget_SetCanTarget_Call {
768- _c.Run(run)
769- return _c
770-}
771-
772-// SetFocusOnClick provides a mock function with given fields: focusOnClick
773-func (_m *MockImageWidget) SetFocusOnClick(focusOnClick bool) {
774- _m.Called(focusOnClick)
775-}
776-
777-// MockImageWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
778-type MockImageWidget_SetFocusOnClick_Call struct {
779- *mock.Call
780-}
781-
782-// SetFocusOnClick is a helper method to define mock.On call
783-// - focusOnClick bool
784-func (_e *MockImageWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockImageWidget_SetFocusOnClick_Call {
785- return &MockImageWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
786-}
787-
788-func (_c *MockImageWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockImageWidget_SetFocusOnClick_Call {
789- _c.Call.Run(func(args mock.Arguments) {
790- run(args[0].(bool))
791- })
792- return _c
793-}
794-
795-func (_c *MockImageWidget_SetFocusOnClick_Call) Return() *MockImageWidget_SetFocusOnClick_Call {
796- _c.Call.Return()
797- return _c
798-}
799-
800-func (_c *MockImageWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockImageWidget_SetFocusOnClick_Call {
801- _c.Run(run)
802- return _c
803-}
804-
805-// SetFromFile provides a mock function with given fields: filename
806-func (_m *MockImageWidget) SetFromFile(filename string) {
807- _m.Called(filename)
808-}
809-
810-// MockImageWidget_SetFromFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFromFile'
811-type MockImageWidget_SetFromFile_Call struct {
812- *mock.Call
813-}
814-
815-// SetFromFile is a helper method to define mock.On call
816-// - filename string
817-func (_e *MockImageWidget_Expecter) SetFromFile(filename interface{}) *MockImageWidget_SetFromFile_Call {
818- return &MockImageWidget_SetFromFile_Call{Call: _e.mock.On("SetFromFile", filename)}
819-}
820-
821-func (_c *MockImageWidget_SetFromFile_Call) Run(run func(filename string)) *MockImageWidget_SetFromFile_Call {
822- _c.Call.Run(func(args mock.Arguments) {
823- run(args[0].(string))
824- })
825- return _c
826-}
827-
828-func (_c *MockImageWidget_SetFromFile_Call) Return() *MockImageWidget_SetFromFile_Call {
829- _c.Call.Return()
830- return _c
831-}
832-
833-func (_c *MockImageWidget_SetFromFile_Call) RunAndReturn(run func(string)) *MockImageWidget_SetFromFile_Call {
834- _c.Run(run)
835- return _c
836-}
837-
838-// SetFromIconName provides a mock function with given fields: iconName
839-func (_m *MockImageWidget) SetFromIconName(iconName string) {
840- _m.Called(iconName)
841-}
842-
843-// MockImageWidget_SetFromIconName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFromIconName'
844-type MockImageWidget_SetFromIconName_Call struct {
845- *mock.Call
846-}
847-
848-// SetFromIconName is a helper method to define mock.On call
849-// - iconName string
850-func (_e *MockImageWidget_Expecter) SetFromIconName(iconName interface{}) *MockImageWidget_SetFromIconName_Call {
851- return &MockImageWidget_SetFromIconName_Call{Call: _e.mock.On("SetFromIconName", iconName)}
852-}
853-
854-func (_c *MockImageWidget_SetFromIconName_Call) Run(run func(iconName string)) *MockImageWidget_SetFromIconName_Call {
855- _c.Call.Run(func(args mock.Arguments) {
856- run(args[0].(string))
857- })
858- return _c
859-}
860-
861-func (_c *MockImageWidget_SetFromIconName_Call) Return() *MockImageWidget_SetFromIconName_Call {
862- _c.Call.Return()
863- return _c
864-}
865-
866-func (_c *MockImageWidget_SetFromIconName_Call) RunAndReturn(run func(string)) *MockImageWidget_SetFromIconName_Call {
867- _c.Run(run)
868- return _c
869-}
870-
871-// SetFromPaintable provides a mock function with given fields: paintable
872-func (_m *MockImageWidget) SetFromPaintable(paintable layout.Paintable) {
873- _m.Called(paintable)
874-}
875-
876-// MockImageWidget_SetFromPaintable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFromPaintable'
877-type MockImageWidget_SetFromPaintable_Call struct {
878- *mock.Call
879-}
880-
881-// SetFromPaintable is a helper method to define mock.On call
882-// - paintable layout.Paintable
883-func (_e *MockImageWidget_Expecter) SetFromPaintable(paintable interface{}) *MockImageWidget_SetFromPaintable_Call {
884- return &MockImageWidget_SetFromPaintable_Call{Call: _e.mock.On("SetFromPaintable", paintable)}
885-}
886-
887-func (_c *MockImageWidget_SetFromPaintable_Call) Run(run func(paintable layout.Paintable)) *MockImageWidget_SetFromPaintable_Call {
888- _c.Call.Run(func(args mock.Arguments) {
889- run(args[0].(layout.Paintable))
890- })
891- return _c
892-}
893-
894-func (_c *MockImageWidget_SetFromPaintable_Call) Return() *MockImageWidget_SetFromPaintable_Call {
895- _c.Call.Return()
896- return _c
897-}
898-
899-func (_c *MockImageWidget_SetFromPaintable_Call) RunAndReturn(run func(layout.Paintable)) *MockImageWidget_SetFromPaintable_Call {
900- _c.Run(run)
901- return _c
902-}
903-
904-// SetHalign provides a mock function with given fields: align
905-func (_m *MockImageWidget) SetHalign(align gtk.Align) {
906- _m.Called(align)
907-}
908-
909-// MockImageWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
910-type MockImageWidget_SetHalign_Call struct {
911- *mock.Call
912-}
913-
914-// SetHalign is a helper method to define mock.On call
915-// - align gtk.Align
916-func (_e *MockImageWidget_Expecter) SetHalign(align interface{}) *MockImageWidget_SetHalign_Call {
917- return &MockImageWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
918-}
919-
920-func (_c *MockImageWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockImageWidget_SetHalign_Call {
921- _c.Call.Run(func(args mock.Arguments) {
922- run(args[0].(gtk.Align))
923- })
924- return _c
925-}
926-
927-func (_c *MockImageWidget_SetHalign_Call) Return() *MockImageWidget_SetHalign_Call {
928- _c.Call.Return()
929- return _c
930-}
931-
932-func (_c *MockImageWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockImageWidget_SetHalign_Call {
933- _c.Run(run)
934- return _c
935-}
936-
937-// SetHexpand provides a mock function with given fields: expand
938-func (_m *MockImageWidget) SetHexpand(expand bool) {
939- _m.Called(expand)
940-}
941-
942-// MockImageWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
943-type MockImageWidget_SetHexpand_Call struct {
944- *mock.Call
945-}
946-
947-// SetHexpand is a helper method to define mock.On call
948-// - expand bool
949-func (_e *MockImageWidget_Expecter) SetHexpand(expand interface{}) *MockImageWidget_SetHexpand_Call {
950- return &MockImageWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
951-}
952-
953-func (_c *MockImageWidget_SetHexpand_Call) Run(run func(expand bool)) *MockImageWidget_SetHexpand_Call {
954- _c.Call.Run(func(args mock.Arguments) {
955- run(args[0].(bool))
956- })
957- return _c
958-}
959-
960-func (_c *MockImageWidget_SetHexpand_Call) Return() *MockImageWidget_SetHexpand_Call {
961- _c.Call.Return()
962- return _c
963-}
964-
965-func (_c *MockImageWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockImageWidget_SetHexpand_Call {
966- _c.Run(run)
967- return _c
968-}
969-
970-// SetPixelSize provides a mock function with given fields: pixelSize
971-func (_m *MockImageWidget) SetPixelSize(pixelSize int) {
972- _m.Called(pixelSize)
973-}
974-
975-// MockImageWidget_SetPixelSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPixelSize'
976-type MockImageWidget_SetPixelSize_Call struct {
977- *mock.Call
978-}
979-
980-// SetPixelSize is a helper method to define mock.On call
981-// - pixelSize int
982-func (_e *MockImageWidget_Expecter) SetPixelSize(pixelSize interface{}) *MockImageWidget_SetPixelSize_Call {
983- return &MockImageWidget_SetPixelSize_Call{Call: _e.mock.On("SetPixelSize", pixelSize)}
984-}
985-
986-func (_c *MockImageWidget_SetPixelSize_Call) Run(run func(pixelSize int)) *MockImageWidget_SetPixelSize_Call {
987- _c.Call.Run(func(args mock.Arguments) {
988- run(args[0].(int))
989- })
990- return _c
991-}
992-
993-func (_c *MockImageWidget_SetPixelSize_Call) Return() *MockImageWidget_SetPixelSize_Call {
994- _c.Call.Return()
995- return _c
996-}
997-
998-func (_c *MockImageWidget_SetPixelSize_Call) RunAndReturn(run func(int)) *MockImageWidget_SetPixelSize_Call {
999- _c.Run(run)
1000- return _c
1001-}
1002-
1003-// SetSizeRequest provides a mock function with given fields: width, height
1004-func (_m *MockImageWidget) SetSizeRequest(width int, height int) {
1005- _m.Called(width, height)
1006-}
1007-
1008-// MockImageWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
1009-type MockImageWidget_SetSizeRequest_Call struct {
1010- *mock.Call
1011-}
1012-
1013-// SetSizeRequest is a helper method to define mock.On call
1014-// - width int
1015-// - height int
1016-func (_e *MockImageWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockImageWidget_SetSizeRequest_Call {
1017- return &MockImageWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
1018-}
1019-
1020-func (_c *MockImageWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockImageWidget_SetSizeRequest_Call {
1021- _c.Call.Run(func(args mock.Arguments) {
1022- run(args[0].(int), args[1].(int))
1023- })
1024- return _c
1025-}
1026-
1027-func (_c *MockImageWidget_SetSizeRequest_Call) Return() *MockImageWidget_SetSizeRequest_Call {
1028- _c.Call.Return()
1029- return _c
1030-}
1031-
1032-func (_c *MockImageWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockImageWidget_SetSizeRequest_Call {
1033- _c.Run(run)
1034- return _c
1035-}
1036-
1037-// SetValign provides a mock function with given fields: align
1038-func (_m *MockImageWidget) SetValign(align gtk.Align) {
1039- _m.Called(align)
1040-}
1041-
1042-// MockImageWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1043-type MockImageWidget_SetValign_Call struct {
1044- *mock.Call
1045-}
1046-
1047-// SetValign is a helper method to define mock.On call
1048-// - align gtk.Align
1049-func (_e *MockImageWidget_Expecter) SetValign(align interface{}) *MockImageWidget_SetValign_Call {
1050- return &MockImageWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1051-}
1052-
1053-func (_c *MockImageWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockImageWidget_SetValign_Call {
1054- _c.Call.Run(func(args mock.Arguments) {
1055- run(args[0].(gtk.Align))
1056- })
1057- return _c
1058-}
1059-
1060-func (_c *MockImageWidget_SetValign_Call) Return() *MockImageWidget_SetValign_Call {
1061- _c.Call.Return()
1062- return _c
1063-}
1064-
1065-func (_c *MockImageWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockImageWidget_SetValign_Call {
1066- _c.Run(run)
1067- return _c
1068-}
1069-
1070-// SetVexpand provides a mock function with given fields: expand
1071-func (_m *MockImageWidget) SetVexpand(expand bool) {
1072- _m.Called(expand)
1073-}
1074-
1075-// MockImageWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1076-type MockImageWidget_SetVexpand_Call struct {
1077- *mock.Call
1078-}
1079-
1080-// SetVexpand is a helper method to define mock.On call
1081-// - expand bool
1082-func (_e *MockImageWidget_Expecter) SetVexpand(expand interface{}) *MockImageWidget_SetVexpand_Call {
1083- return &MockImageWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1084-}
1085-
1086-func (_c *MockImageWidget_SetVexpand_Call) Run(run func(expand bool)) *MockImageWidget_SetVexpand_Call {
1087- _c.Call.Run(func(args mock.Arguments) {
1088- run(args[0].(bool))
1089- })
1090- return _c
1091-}
1092-
1093-func (_c *MockImageWidget_SetVexpand_Call) Return() *MockImageWidget_SetVexpand_Call {
1094- _c.Call.Return()
1095- return _c
1096-}
1097-
1098-func (_c *MockImageWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockImageWidget_SetVexpand_Call {
1099- _c.Run(run)
1100- return _c
1101-}
1102-
1103-// SetVisible provides a mock function with given fields: visible
1104-func (_m *MockImageWidget) SetVisible(visible bool) {
1105- _m.Called(visible)
1106-}
1107-
1108-// MockImageWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1109-type MockImageWidget_SetVisible_Call struct {
1110- *mock.Call
1111-}
1112-
1113-// SetVisible is a helper method to define mock.On call
1114-// - visible bool
1115-func (_e *MockImageWidget_Expecter) SetVisible(visible interface{}) *MockImageWidget_SetVisible_Call {
1116- return &MockImageWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1117-}
1118-
1119-func (_c *MockImageWidget_SetVisible_Call) Run(run func(visible bool)) *MockImageWidget_SetVisible_Call {
1120- _c.Call.Run(func(args mock.Arguments) {
1121- run(args[0].(bool))
1122- })
1123- return _c
1124-}
1125-
1126-func (_c *MockImageWidget_SetVisible_Call) Return() *MockImageWidget_SetVisible_Call {
1127- _c.Call.Return()
1128- return _c
1129-}
1130-
1131-func (_c *MockImageWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockImageWidget_SetVisible_Call {
1132- _c.Run(run)
1133- return _c
1134-}
1135-
1136-// Show provides a mock function with no fields
1137-func (_m *MockImageWidget) Show() {
1138- _m.Called()
1139-}
1140-
1141-// MockImageWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1142-type MockImageWidget_Show_Call struct {
1143- *mock.Call
1144-}
1145-
1146-// Show is a helper method to define mock.On call
1147-func (_e *MockImageWidget_Expecter) Show() *MockImageWidget_Show_Call {
1148- return &MockImageWidget_Show_Call{Call: _e.mock.On("Show")}
1149-}
1150-
1151-func (_c *MockImageWidget_Show_Call) Run(run func()) *MockImageWidget_Show_Call {
1152- _c.Call.Run(func(args mock.Arguments) {
1153- run()
1154- })
1155- return _c
1156-}
1157-
1158-func (_c *MockImageWidget_Show_Call) Return() *MockImageWidget_Show_Call {
1159- _c.Call.Return()
1160- return _c
1161-}
1162-
1163-func (_c *MockImageWidget_Show_Call) RunAndReturn(run func()) *MockImageWidget_Show_Call {
1164- _c.Run(run)
1165- return _c
1166-}
1167-
1168-// Unparent provides a mock function with no fields
1169-func (_m *MockImageWidget) Unparent() {
1170- _m.Called()
1171-}
1172-
1173-// MockImageWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1174-type MockImageWidget_Unparent_Call struct {
1175- *mock.Call
1176-}
1177-
1178-// Unparent is a helper method to define mock.On call
1179-func (_e *MockImageWidget_Expecter) Unparent() *MockImageWidget_Unparent_Call {
1180- return &MockImageWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1181-}
1182-
1183-func (_c *MockImageWidget_Unparent_Call) Run(run func()) *MockImageWidget_Unparent_Call {
1184- _c.Call.Run(func(args mock.Arguments) {
1185- run()
1186- })
1187- return _c
1188-}
1189-
1190-func (_c *MockImageWidget_Unparent_Call) Return() *MockImageWidget_Unparent_Call {
1191- _c.Call.Return()
1192- return _c
1193-}
1194-
1195-func (_c *MockImageWidget_Unparent_Call) RunAndReturn(run func()) *MockImageWidget_Unparent_Call {
1196- _c.Run(run)
1197- return _c
1198-}
1199-
1200-// NewMockImageWidget creates a new instance of MockImageWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1201-// The first argument is typically a *testing.T value.
1202-func NewMockImageWidget(t interface {
1203- mock.TestingT
1204- Cleanup(func())
1205-}) *MockImageWidget {
1206- mock := &MockImageWidget{}
1207- mock.Mock.Test(t)
1208-
1209- t.Cleanup(func() { mock.AssertExpectations(t) })
1210-
1211- return mock
1212-}
D internal/ui/layout/mocks/mock_label_widget.go +0 -1258
@@ -1,1258 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockLabelWidget is an autogenerated mock type for the LabelWidget type
13-type MockLabelWidget struct {
14- mock.Mock
15-}
16-
17-type MockLabelWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockLabelWidget) EXPECT() *MockLabelWidget_Expecter {
22- return &MockLabelWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockLabelWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockLabelWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockLabelWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockLabelWidget_Expecter) AddController(controller interface{}) *MockLabelWidget_AddController_Call {
38- return &MockLabelWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockLabelWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockLabelWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockLabelWidget_AddController_Call) Return() *MockLabelWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockLabelWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockLabelWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockLabelWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockLabelWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockLabelWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockLabelWidget_Expecter) AddCssClass(cssClass interface{}) *MockLabelWidget_AddCssClass_Call {
71- return &MockLabelWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockLabelWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockLabelWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockLabelWidget_AddCssClass_Call) Return() *MockLabelWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockLabelWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockLabelWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// ComputePoint provides a mock function with given fields: target
92-func (_m *MockLabelWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
93- ret := _m.Called(target)
94-
95- if len(ret) == 0 {
96- panic("no return value specified for ComputePoint")
97- }
98-
99- var r0 float64
100- var r1 float64
101- var r2 bool
102- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
103- return rf(target)
104- }
105- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
106- r0 = rf(target)
107- } else {
108- r0 = ret.Get(0).(float64)
109- }
110-
111- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
112- r1 = rf(target)
113- } else {
114- r1 = ret.Get(1).(float64)
115- }
116-
117- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
118- r2 = rf(target)
119- } else {
120- r2 = ret.Get(2).(bool)
121- }
122-
123- return r0, r1, r2
124-}
125-
126-// MockLabelWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
127-type MockLabelWidget_ComputePoint_Call struct {
128- *mock.Call
129-}
130-
131-// ComputePoint is a helper method to define mock.On call
132-// - target layout.Widget
133-func (_e *MockLabelWidget_Expecter) ComputePoint(target interface{}) *MockLabelWidget_ComputePoint_Call {
134- return &MockLabelWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
135-}
136-
137-func (_c *MockLabelWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockLabelWidget_ComputePoint_Call {
138- _c.Call.Run(func(args mock.Arguments) {
139- run(args[0].(layout.Widget))
140- })
141- return _c
142-}
143-
144-func (_c *MockLabelWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockLabelWidget_ComputePoint_Call {
145- _c.Call.Return(x, y, ok)
146- return _c
147-}
148-
149-func (_c *MockLabelWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockLabelWidget_ComputePoint_Call {
150- _c.Call.Return(run)
151- return _c
152-}
153-
154-// GetAllocatedHeight provides a mock function with no fields
155-func (_m *MockLabelWidget) GetAllocatedHeight() int {
156- ret := _m.Called()
157-
158- if len(ret) == 0 {
159- panic("no return value specified for GetAllocatedHeight")
160- }
161-
162- var r0 int
163- if rf, ok := ret.Get(0).(func() int); ok {
164- r0 = rf()
165- } else {
166- r0 = ret.Get(0).(int)
167- }
168-
169- return r0
170-}
171-
172-// MockLabelWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
173-type MockLabelWidget_GetAllocatedHeight_Call struct {
174- *mock.Call
175-}
176-
177-// GetAllocatedHeight is a helper method to define mock.On call
178-func (_e *MockLabelWidget_Expecter) GetAllocatedHeight() *MockLabelWidget_GetAllocatedHeight_Call {
179- return &MockLabelWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
180-}
181-
182-func (_c *MockLabelWidget_GetAllocatedHeight_Call) Run(run func()) *MockLabelWidget_GetAllocatedHeight_Call {
183- _c.Call.Run(func(args mock.Arguments) {
184- run()
185- })
186- return _c
187-}
188-
189-func (_c *MockLabelWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockLabelWidget_GetAllocatedHeight_Call {
190- _c.Call.Return(_a0)
191- return _c
192-}
193-
194-func (_c *MockLabelWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockLabelWidget_GetAllocatedHeight_Call {
195- _c.Call.Return(run)
196- return _c
197-}
198-
199-// GetAllocatedWidth provides a mock function with no fields
200-func (_m *MockLabelWidget) GetAllocatedWidth() int {
201- ret := _m.Called()
202-
203- if len(ret) == 0 {
204- panic("no return value specified for GetAllocatedWidth")
205- }
206-
207- var r0 int
208- if rf, ok := ret.Get(0).(func() int); ok {
209- r0 = rf()
210- } else {
211- r0 = ret.Get(0).(int)
212- }
213-
214- return r0
215-}
216-
217-// MockLabelWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
218-type MockLabelWidget_GetAllocatedWidth_Call struct {
219- *mock.Call
220-}
221-
222-// GetAllocatedWidth is a helper method to define mock.On call
223-func (_e *MockLabelWidget_Expecter) GetAllocatedWidth() *MockLabelWidget_GetAllocatedWidth_Call {
224- return &MockLabelWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
225-}
226-
227-func (_c *MockLabelWidget_GetAllocatedWidth_Call) Run(run func()) *MockLabelWidget_GetAllocatedWidth_Call {
228- _c.Call.Run(func(args mock.Arguments) {
229- run()
230- })
231- return _c
232-}
233-
234-func (_c *MockLabelWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockLabelWidget_GetAllocatedWidth_Call {
235- _c.Call.Return(_a0)
236- return _c
237-}
238-
239-func (_c *MockLabelWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockLabelWidget_GetAllocatedWidth_Call {
240- _c.Call.Return(run)
241- return _c
242-}
243-
244-// GetHexpand provides a mock function with no fields
245-func (_m *MockLabelWidget) GetHexpand() bool {
246- ret := _m.Called()
247-
248- if len(ret) == 0 {
249- panic("no return value specified for GetHexpand")
250- }
251-
252- var r0 bool
253- if rf, ok := ret.Get(0).(func() bool); ok {
254- r0 = rf()
255- } else {
256- r0 = ret.Get(0).(bool)
257- }
258-
259- return r0
260-}
261-
262-// MockLabelWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
263-type MockLabelWidget_GetHexpand_Call struct {
264- *mock.Call
265-}
266-
267-// GetHexpand is a helper method to define mock.On call
268-func (_e *MockLabelWidget_Expecter) GetHexpand() *MockLabelWidget_GetHexpand_Call {
269- return &MockLabelWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
270-}
271-
272-func (_c *MockLabelWidget_GetHexpand_Call) Run(run func()) *MockLabelWidget_GetHexpand_Call {
273- _c.Call.Run(func(args mock.Arguments) {
274- run()
275- })
276- return _c
277-}
278-
279-func (_c *MockLabelWidget_GetHexpand_Call) Return(_a0 bool) *MockLabelWidget_GetHexpand_Call {
280- _c.Call.Return(_a0)
281- return _c
282-}
283-
284-func (_c *MockLabelWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockLabelWidget_GetHexpand_Call {
285- _c.Call.Return(run)
286- return _c
287-}
288-
289-// GetParent provides a mock function with no fields
290-func (_m *MockLabelWidget) GetParent() layout.Widget {
291- ret := _m.Called()
292-
293- if len(ret) == 0 {
294- panic("no return value specified for GetParent")
295- }
296-
297- var r0 layout.Widget
298- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
299- r0 = rf()
300- } else {
301- if ret.Get(0) != nil {
302- r0 = ret.Get(0).(layout.Widget)
303- }
304- }
305-
306- return r0
307-}
308-
309-// MockLabelWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
310-type MockLabelWidget_GetParent_Call struct {
311- *mock.Call
312-}
313-
314-// GetParent is a helper method to define mock.On call
315-func (_e *MockLabelWidget_Expecter) GetParent() *MockLabelWidget_GetParent_Call {
316- return &MockLabelWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
317-}
318-
319-func (_c *MockLabelWidget_GetParent_Call) Run(run func()) *MockLabelWidget_GetParent_Call {
320- _c.Call.Run(func(args mock.Arguments) {
321- run()
322- })
323- return _c
324-}
325-
326-func (_c *MockLabelWidget_GetParent_Call) Return(_a0 layout.Widget) *MockLabelWidget_GetParent_Call {
327- _c.Call.Return(_a0)
328- return _c
329-}
330-
331-func (_c *MockLabelWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockLabelWidget_GetParent_Call {
332- _c.Call.Return(run)
333- return _c
334-}
335-
336-// GetText provides a mock function with no fields
337-func (_m *MockLabelWidget) GetText() string {
338- ret := _m.Called()
339-
340- if len(ret) == 0 {
341- panic("no return value specified for GetText")
342- }
343-
344- var r0 string
345- if rf, ok := ret.Get(0).(func() string); ok {
346- r0 = rf()
347- } else {
348- r0 = ret.Get(0).(string)
349- }
350-
351- return r0
352-}
353-
354-// MockLabelWidget_GetText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetText'
355-type MockLabelWidget_GetText_Call struct {
356- *mock.Call
357-}
358-
359-// GetText is a helper method to define mock.On call
360-func (_e *MockLabelWidget_Expecter) GetText() *MockLabelWidget_GetText_Call {
361- return &MockLabelWidget_GetText_Call{Call: _e.mock.On("GetText")}
362-}
363-
364-func (_c *MockLabelWidget_GetText_Call) Run(run func()) *MockLabelWidget_GetText_Call {
365- _c.Call.Run(func(args mock.Arguments) {
366- run()
367- })
368- return _c
369-}
370-
371-func (_c *MockLabelWidget_GetText_Call) Return(_a0 string) *MockLabelWidget_GetText_Call {
372- _c.Call.Return(_a0)
373- return _c
374-}
375-
376-func (_c *MockLabelWidget_GetText_Call) RunAndReturn(run func() string) *MockLabelWidget_GetText_Call {
377- _c.Call.Return(run)
378- return _c
379-}
380-
381-// GetVexpand provides a mock function with no fields
382-func (_m *MockLabelWidget) GetVexpand() bool {
383- ret := _m.Called()
384-
385- if len(ret) == 0 {
386- panic("no return value specified for GetVexpand")
387- }
388-
389- var r0 bool
390- if rf, ok := ret.Get(0).(func() bool); ok {
391- r0 = rf()
392- } else {
393- r0 = ret.Get(0).(bool)
394- }
395-
396- return r0
397-}
398-
399-// MockLabelWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
400-type MockLabelWidget_GetVexpand_Call struct {
401- *mock.Call
402-}
403-
404-// GetVexpand is a helper method to define mock.On call
405-func (_e *MockLabelWidget_Expecter) GetVexpand() *MockLabelWidget_GetVexpand_Call {
406- return &MockLabelWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
407-}
408-
409-func (_c *MockLabelWidget_GetVexpand_Call) Run(run func()) *MockLabelWidget_GetVexpand_Call {
410- _c.Call.Run(func(args mock.Arguments) {
411- run()
412- })
413- return _c
414-}
415-
416-func (_c *MockLabelWidget_GetVexpand_Call) Return(_a0 bool) *MockLabelWidget_GetVexpand_Call {
417- _c.Call.Return(_a0)
418- return _c
419-}
420-
421-func (_c *MockLabelWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockLabelWidget_GetVexpand_Call {
422- _c.Call.Return(run)
423- return _c
424-}
425-
426-// GrabFocus provides a mock function with no fields
427-func (_m *MockLabelWidget) GrabFocus() bool {
428- ret := _m.Called()
429-
430- if len(ret) == 0 {
431- panic("no return value specified for GrabFocus")
432- }
433-
434- var r0 bool
435- if rf, ok := ret.Get(0).(func() bool); ok {
436- r0 = rf()
437- } else {
438- r0 = ret.Get(0).(bool)
439- }
440-
441- return r0
442-}
443-
444-// MockLabelWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
445-type MockLabelWidget_GrabFocus_Call struct {
446- *mock.Call
447-}
448-
449-// GrabFocus is a helper method to define mock.On call
450-func (_e *MockLabelWidget_Expecter) GrabFocus() *MockLabelWidget_GrabFocus_Call {
451- return &MockLabelWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
452-}
453-
454-func (_c *MockLabelWidget_GrabFocus_Call) Run(run func()) *MockLabelWidget_GrabFocus_Call {
455- _c.Call.Run(func(args mock.Arguments) {
456- run()
457- })
458- return _c
459-}
460-
461-func (_c *MockLabelWidget_GrabFocus_Call) Return(_a0 bool) *MockLabelWidget_GrabFocus_Call {
462- _c.Call.Return(_a0)
463- return _c
464-}
465-
466-func (_c *MockLabelWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockLabelWidget_GrabFocus_Call {
467- _c.Call.Return(run)
468- return _c
469-}
470-
471-// GtkWidget provides a mock function with no fields
472-func (_m *MockLabelWidget) GtkWidget() *gtk.Widget {
473- ret := _m.Called()
474-
475- if len(ret) == 0 {
476- panic("no return value specified for GtkWidget")
477- }
478-
479- var r0 *gtk.Widget
480- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
481- r0 = rf()
482- } else {
483- if ret.Get(0) != nil {
484- r0 = ret.Get(0).(*gtk.Widget)
485- }
486- }
487-
488- return r0
489-}
490-
491-// MockLabelWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
492-type MockLabelWidget_GtkWidget_Call struct {
493- *mock.Call
494-}
495-
496-// GtkWidget is a helper method to define mock.On call
497-func (_e *MockLabelWidget_Expecter) GtkWidget() *MockLabelWidget_GtkWidget_Call {
498- return &MockLabelWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
499-}
500-
501-func (_c *MockLabelWidget_GtkWidget_Call) Run(run func()) *MockLabelWidget_GtkWidget_Call {
502- _c.Call.Run(func(args mock.Arguments) {
503- run()
504- })
505- return _c
506-}
507-
508-func (_c *MockLabelWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockLabelWidget_GtkWidget_Call {
509- _c.Call.Return(_a0)
510- return _c
511-}
512-
513-func (_c *MockLabelWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockLabelWidget_GtkWidget_Call {
514- _c.Call.Return(run)
515- return _c
516-}
517-
518-// HasCssClass provides a mock function with given fields: cssClass
519-func (_m *MockLabelWidget) HasCssClass(cssClass string) bool {
520- ret := _m.Called(cssClass)
521-
522- if len(ret) == 0 {
523- panic("no return value specified for HasCssClass")
524- }
525-
526- var r0 bool
527- if rf, ok := ret.Get(0).(func(string) bool); ok {
528- r0 = rf(cssClass)
529- } else {
530- r0 = ret.Get(0).(bool)
531- }
532-
533- return r0
534-}
535-
536-// MockLabelWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
537-type MockLabelWidget_HasCssClass_Call struct {
538- *mock.Call
539-}
540-
541-// HasCssClass is a helper method to define mock.On call
542-// - cssClass string
543-func (_e *MockLabelWidget_Expecter) HasCssClass(cssClass interface{}) *MockLabelWidget_HasCssClass_Call {
544- return &MockLabelWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
545-}
546-
547-func (_c *MockLabelWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockLabelWidget_HasCssClass_Call {
548- _c.Call.Run(func(args mock.Arguments) {
549- run(args[0].(string))
550- })
551- return _c
552-}
553-
554-func (_c *MockLabelWidget_HasCssClass_Call) Return(_a0 bool) *MockLabelWidget_HasCssClass_Call {
555- _c.Call.Return(_a0)
556- return _c
557-}
558-
559-func (_c *MockLabelWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockLabelWidget_HasCssClass_Call {
560- _c.Call.Return(run)
561- return _c
562-}
563-
564-// HasFocus provides a mock function with no fields
565-func (_m *MockLabelWidget) HasFocus() bool {
566- ret := _m.Called()
567-
568- if len(ret) == 0 {
569- panic("no return value specified for HasFocus")
570- }
571-
572- var r0 bool
573- if rf, ok := ret.Get(0).(func() bool); ok {
574- r0 = rf()
575- } else {
576- r0 = ret.Get(0).(bool)
577- }
578-
579- return r0
580-}
581-
582-// MockLabelWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
583-type MockLabelWidget_HasFocus_Call struct {
584- *mock.Call
585-}
586-
587-// HasFocus is a helper method to define mock.On call
588-func (_e *MockLabelWidget_Expecter) HasFocus() *MockLabelWidget_HasFocus_Call {
589- return &MockLabelWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
590-}
591-
592-func (_c *MockLabelWidget_HasFocus_Call) Run(run func()) *MockLabelWidget_HasFocus_Call {
593- _c.Call.Run(func(args mock.Arguments) {
594- run()
595- })
596- return _c
597-}
598-
599-func (_c *MockLabelWidget_HasFocus_Call) Return(_a0 bool) *MockLabelWidget_HasFocus_Call {
600- _c.Call.Return(_a0)
601- return _c
602-}
603-
604-func (_c *MockLabelWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockLabelWidget_HasFocus_Call {
605- _c.Call.Return(run)
606- return _c
607-}
608-
609-// Hide provides a mock function with no fields
610-func (_m *MockLabelWidget) Hide() {
611- _m.Called()
612-}
613-
614-// MockLabelWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
615-type MockLabelWidget_Hide_Call struct {
616- *mock.Call
617-}
618-
619-// Hide is a helper method to define mock.On call
620-func (_e *MockLabelWidget_Expecter) Hide() *MockLabelWidget_Hide_Call {
621- return &MockLabelWidget_Hide_Call{Call: _e.mock.On("Hide")}
622-}
623-
624-func (_c *MockLabelWidget_Hide_Call) Run(run func()) *MockLabelWidget_Hide_Call {
625- _c.Call.Run(func(args mock.Arguments) {
626- run()
627- })
628- return _c
629-}
630-
631-func (_c *MockLabelWidget_Hide_Call) Return() *MockLabelWidget_Hide_Call {
632- _c.Call.Return()
633- return _c
634-}
635-
636-func (_c *MockLabelWidget_Hide_Call) RunAndReturn(run func()) *MockLabelWidget_Hide_Call {
637- _c.Run(run)
638- return _c
639-}
640-
641-// IsVisible provides a mock function with no fields
642-func (_m *MockLabelWidget) IsVisible() bool {
643- ret := _m.Called()
644-
645- if len(ret) == 0 {
646- panic("no return value specified for IsVisible")
647- }
648-
649- var r0 bool
650- if rf, ok := ret.Get(0).(func() bool); ok {
651- r0 = rf()
652- } else {
653- r0 = ret.Get(0).(bool)
654- }
655-
656- return r0
657-}
658-
659-// MockLabelWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
660-type MockLabelWidget_IsVisible_Call struct {
661- *mock.Call
662-}
663-
664-// IsVisible is a helper method to define mock.On call
665-func (_e *MockLabelWidget_Expecter) IsVisible() *MockLabelWidget_IsVisible_Call {
666- return &MockLabelWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
667-}
668-
669-func (_c *MockLabelWidget_IsVisible_Call) Run(run func()) *MockLabelWidget_IsVisible_Call {
670- _c.Call.Run(func(args mock.Arguments) {
671- run()
672- })
673- return _c
674-}
675-
676-func (_c *MockLabelWidget_IsVisible_Call) Return(_a0 bool) *MockLabelWidget_IsVisible_Call {
677- _c.Call.Return(_a0)
678- return _c
679-}
680-
681-func (_c *MockLabelWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockLabelWidget_IsVisible_Call {
682- _c.Call.Return(run)
683- return _c
684-}
685-
686-// RemoveCssClass provides a mock function with given fields: cssClass
687-func (_m *MockLabelWidget) RemoveCssClass(cssClass string) {
688- _m.Called(cssClass)
689-}
690-
691-// MockLabelWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
692-type MockLabelWidget_RemoveCssClass_Call struct {
693- *mock.Call
694-}
695-
696-// RemoveCssClass is a helper method to define mock.On call
697-// - cssClass string
698-func (_e *MockLabelWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockLabelWidget_RemoveCssClass_Call {
699- return &MockLabelWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
700-}
701-
702-func (_c *MockLabelWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockLabelWidget_RemoveCssClass_Call {
703- _c.Call.Run(func(args mock.Arguments) {
704- run(args[0].(string))
705- })
706- return _c
707-}
708-
709-func (_c *MockLabelWidget_RemoveCssClass_Call) Return() *MockLabelWidget_RemoveCssClass_Call {
710- _c.Call.Return()
711- return _c
712-}
713-
714-func (_c *MockLabelWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockLabelWidget_RemoveCssClass_Call {
715- _c.Run(run)
716- return _c
717-}
718-
719-// SetCanFocus provides a mock function with given fields: canFocus
720-func (_m *MockLabelWidget) SetCanFocus(canFocus bool) {
721- _m.Called(canFocus)
722-}
723-
724-// MockLabelWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
725-type MockLabelWidget_SetCanFocus_Call struct {
726- *mock.Call
727-}
728-
729-// SetCanFocus is a helper method to define mock.On call
730-// - canFocus bool
731-func (_e *MockLabelWidget_Expecter) SetCanFocus(canFocus interface{}) *MockLabelWidget_SetCanFocus_Call {
732- return &MockLabelWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
733-}
734-
735-func (_c *MockLabelWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockLabelWidget_SetCanFocus_Call {
736- _c.Call.Run(func(args mock.Arguments) {
737- run(args[0].(bool))
738- })
739- return _c
740-}
741-
742-func (_c *MockLabelWidget_SetCanFocus_Call) Return() *MockLabelWidget_SetCanFocus_Call {
743- _c.Call.Return()
744- return _c
745-}
746-
747-func (_c *MockLabelWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockLabelWidget_SetCanFocus_Call {
748- _c.Run(run)
749- return _c
750-}
751-
752-// SetCanTarget provides a mock function with given fields: canTarget
753-func (_m *MockLabelWidget) SetCanTarget(canTarget bool) {
754- _m.Called(canTarget)
755-}
756-
757-// MockLabelWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
758-type MockLabelWidget_SetCanTarget_Call struct {
759- *mock.Call
760-}
761-
762-// SetCanTarget is a helper method to define mock.On call
763-// - canTarget bool
764-func (_e *MockLabelWidget_Expecter) SetCanTarget(canTarget interface{}) *MockLabelWidget_SetCanTarget_Call {
765- return &MockLabelWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
766-}
767-
768-func (_c *MockLabelWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockLabelWidget_SetCanTarget_Call {
769- _c.Call.Run(func(args mock.Arguments) {
770- run(args[0].(bool))
771- })
772- return _c
773-}
774-
775-func (_c *MockLabelWidget_SetCanTarget_Call) Return() *MockLabelWidget_SetCanTarget_Call {
776- _c.Call.Return()
777- return _c
778-}
779-
780-func (_c *MockLabelWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockLabelWidget_SetCanTarget_Call {
781- _c.Run(run)
782- return _c
783-}
784-
785-// SetEllipsize provides a mock function with given fields: mode
786-func (_m *MockLabelWidget) SetEllipsize(mode int) {
787- _m.Called(mode)
788-}
789-
790-// MockLabelWidget_SetEllipsize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEllipsize'
791-type MockLabelWidget_SetEllipsize_Call struct {
792- *mock.Call
793-}
794-
795-// SetEllipsize is a helper method to define mock.On call
796-// - mode int
797-func (_e *MockLabelWidget_Expecter) SetEllipsize(mode interface{}) *MockLabelWidget_SetEllipsize_Call {
798- return &MockLabelWidget_SetEllipsize_Call{Call: _e.mock.On("SetEllipsize", mode)}
799-}
800-
801-func (_c *MockLabelWidget_SetEllipsize_Call) Run(run func(mode int)) *MockLabelWidget_SetEllipsize_Call {
802- _c.Call.Run(func(args mock.Arguments) {
803- run(args[0].(int))
804- })
805- return _c
806-}
807-
808-func (_c *MockLabelWidget_SetEllipsize_Call) Return() *MockLabelWidget_SetEllipsize_Call {
809- _c.Call.Return()
810- return _c
811-}
812-
813-func (_c *MockLabelWidget_SetEllipsize_Call) RunAndReturn(run func(int)) *MockLabelWidget_SetEllipsize_Call {
814- _c.Run(run)
815- return _c
816-}
817-
818-// SetFocusOnClick provides a mock function with given fields: focusOnClick
819-func (_m *MockLabelWidget) SetFocusOnClick(focusOnClick bool) {
820- _m.Called(focusOnClick)
821-}
822-
823-// MockLabelWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
824-type MockLabelWidget_SetFocusOnClick_Call struct {
825- *mock.Call
826-}
827-
828-// SetFocusOnClick is a helper method to define mock.On call
829-// - focusOnClick bool
830-func (_e *MockLabelWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockLabelWidget_SetFocusOnClick_Call {
831- return &MockLabelWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
832-}
833-
834-func (_c *MockLabelWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockLabelWidget_SetFocusOnClick_Call {
835- _c.Call.Run(func(args mock.Arguments) {
836- run(args[0].(bool))
837- })
838- return _c
839-}
840-
841-func (_c *MockLabelWidget_SetFocusOnClick_Call) Return() *MockLabelWidget_SetFocusOnClick_Call {
842- _c.Call.Return()
843- return _c
844-}
845-
846-func (_c *MockLabelWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockLabelWidget_SetFocusOnClick_Call {
847- _c.Run(run)
848- return _c
849-}
850-
851-// SetHalign provides a mock function with given fields: align
852-func (_m *MockLabelWidget) SetHalign(align gtk.Align) {
853- _m.Called(align)
854-}
855-
856-// MockLabelWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
857-type MockLabelWidget_SetHalign_Call struct {
858- *mock.Call
859-}
860-
861-// SetHalign is a helper method to define mock.On call
862-// - align gtk.Align
863-func (_e *MockLabelWidget_Expecter) SetHalign(align interface{}) *MockLabelWidget_SetHalign_Call {
864- return &MockLabelWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
865-}
866-
867-func (_c *MockLabelWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockLabelWidget_SetHalign_Call {
868- _c.Call.Run(func(args mock.Arguments) {
869- run(args[0].(gtk.Align))
870- })
871- return _c
872-}
873-
874-func (_c *MockLabelWidget_SetHalign_Call) Return() *MockLabelWidget_SetHalign_Call {
875- _c.Call.Return()
876- return _c
877-}
878-
879-func (_c *MockLabelWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockLabelWidget_SetHalign_Call {
880- _c.Run(run)
881- return _c
882-}
883-
884-// SetHexpand provides a mock function with given fields: expand
885-func (_m *MockLabelWidget) SetHexpand(expand bool) {
886- _m.Called(expand)
887-}
888-
889-// MockLabelWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
890-type MockLabelWidget_SetHexpand_Call struct {
891- *mock.Call
892-}
893-
894-// SetHexpand is a helper method to define mock.On call
895-// - expand bool
896-func (_e *MockLabelWidget_Expecter) SetHexpand(expand interface{}) *MockLabelWidget_SetHexpand_Call {
897- return &MockLabelWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
898-}
899-
900-func (_c *MockLabelWidget_SetHexpand_Call) Run(run func(expand bool)) *MockLabelWidget_SetHexpand_Call {
901- _c.Call.Run(func(args mock.Arguments) {
902- run(args[0].(bool))
903- })
904- return _c
905-}
906-
907-func (_c *MockLabelWidget_SetHexpand_Call) Return() *MockLabelWidget_SetHexpand_Call {
908- _c.Call.Return()
909- return _c
910-}
911-
912-func (_c *MockLabelWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockLabelWidget_SetHexpand_Call {
913- _c.Run(run)
914- return _c
915-}
916-
917-// SetMarkup provides a mock function with given fields: markup
918-func (_m *MockLabelWidget) SetMarkup(markup string) {
919- _m.Called(markup)
920-}
921-
922-// MockLabelWidget_SetMarkup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMarkup'
923-type MockLabelWidget_SetMarkup_Call struct {
924- *mock.Call
925-}
926-
927-// SetMarkup is a helper method to define mock.On call
928-// - markup string
929-func (_e *MockLabelWidget_Expecter) SetMarkup(markup interface{}) *MockLabelWidget_SetMarkup_Call {
930- return &MockLabelWidget_SetMarkup_Call{Call: _e.mock.On("SetMarkup", markup)}
931-}
932-
933-func (_c *MockLabelWidget_SetMarkup_Call) Run(run func(markup string)) *MockLabelWidget_SetMarkup_Call {
934- _c.Call.Run(func(args mock.Arguments) {
935- run(args[0].(string))
936- })
937- return _c
938-}
939-
940-func (_c *MockLabelWidget_SetMarkup_Call) Return() *MockLabelWidget_SetMarkup_Call {
941- _c.Call.Return()
942- return _c
943-}
944-
945-func (_c *MockLabelWidget_SetMarkup_Call) RunAndReturn(run func(string)) *MockLabelWidget_SetMarkup_Call {
946- _c.Run(run)
947- return _c
948-}
949-
950-// SetMaxWidthChars provides a mock function with given fields: nChars
951-func (_m *MockLabelWidget) SetMaxWidthChars(nChars int) {
952- _m.Called(nChars)
953-}
954-
955-// MockLabelWidget_SetMaxWidthChars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMaxWidthChars'
956-type MockLabelWidget_SetMaxWidthChars_Call struct {
957- *mock.Call
958-}
959-
960-// SetMaxWidthChars is a helper method to define mock.On call
961-// - nChars int
962-func (_e *MockLabelWidget_Expecter) SetMaxWidthChars(nChars interface{}) *MockLabelWidget_SetMaxWidthChars_Call {
963- return &MockLabelWidget_SetMaxWidthChars_Call{Call: _e.mock.On("SetMaxWidthChars", nChars)}
964-}
965-
966-func (_c *MockLabelWidget_SetMaxWidthChars_Call) Run(run func(nChars int)) *MockLabelWidget_SetMaxWidthChars_Call {
967- _c.Call.Run(func(args mock.Arguments) {
968- run(args[0].(int))
969- })
970- return _c
971-}
972-
973-func (_c *MockLabelWidget_SetMaxWidthChars_Call) Return() *MockLabelWidget_SetMaxWidthChars_Call {
974- _c.Call.Return()
975- return _c
976-}
977-
978-func (_c *MockLabelWidget_SetMaxWidthChars_Call) RunAndReturn(run func(int)) *MockLabelWidget_SetMaxWidthChars_Call {
979- _c.Run(run)
980- return _c
981-}
982-
983-// SetSizeRequest provides a mock function with given fields: width, height
984-func (_m *MockLabelWidget) SetSizeRequest(width int, height int) {
985- _m.Called(width, height)
986-}
987-
988-// MockLabelWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
989-type MockLabelWidget_SetSizeRequest_Call struct {
990- *mock.Call
991-}
992-
993-// SetSizeRequest is a helper method to define mock.On call
994-// - width int
995-// - height int
996-func (_e *MockLabelWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockLabelWidget_SetSizeRequest_Call {
997- return &MockLabelWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
998-}
999-
1000-func (_c *MockLabelWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockLabelWidget_SetSizeRequest_Call {
1001- _c.Call.Run(func(args mock.Arguments) {
1002- run(args[0].(int), args[1].(int))
1003- })
1004- return _c
1005-}
1006-
1007-func (_c *MockLabelWidget_SetSizeRequest_Call) Return() *MockLabelWidget_SetSizeRequest_Call {
1008- _c.Call.Return()
1009- return _c
1010-}
1011-
1012-func (_c *MockLabelWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockLabelWidget_SetSizeRequest_Call {
1013- _c.Run(run)
1014- return _c
1015-}
1016-
1017-// SetText provides a mock function with given fields: text
1018-func (_m *MockLabelWidget) SetText(text string) {
1019- _m.Called(text)
1020-}
1021-
1022-// MockLabelWidget_SetText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetText'
1023-type MockLabelWidget_SetText_Call struct {
1024- *mock.Call
1025-}
1026-
1027-// SetText is a helper method to define mock.On call
1028-// - text string
1029-func (_e *MockLabelWidget_Expecter) SetText(text interface{}) *MockLabelWidget_SetText_Call {
1030- return &MockLabelWidget_SetText_Call{Call: _e.mock.On("SetText", text)}
1031-}
1032-
1033-func (_c *MockLabelWidget_SetText_Call) Run(run func(text string)) *MockLabelWidget_SetText_Call {
1034- _c.Call.Run(func(args mock.Arguments) {
1035- run(args[0].(string))
1036- })
1037- return _c
1038-}
1039-
1040-func (_c *MockLabelWidget_SetText_Call) Return() *MockLabelWidget_SetText_Call {
1041- _c.Call.Return()
1042- return _c
1043-}
1044-
1045-func (_c *MockLabelWidget_SetText_Call) RunAndReturn(run func(string)) *MockLabelWidget_SetText_Call {
1046- _c.Run(run)
1047- return _c
1048-}
1049-
1050-// SetValign provides a mock function with given fields: align
1051-func (_m *MockLabelWidget) SetValign(align gtk.Align) {
1052- _m.Called(align)
1053-}
1054-
1055-// MockLabelWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1056-type MockLabelWidget_SetValign_Call struct {
1057- *mock.Call
1058-}
1059-
1060-// SetValign is a helper method to define mock.On call
1061-// - align gtk.Align
1062-func (_e *MockLabelWidget_Expecter) SetValign(align interface{}) *MockLabelWidget_SetValign_Call {
1063- return &MockLabelWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1064-}
1065-
1066-func (_c *MockLabelWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockLabelWidget_SetValign_Call {
1067- _c.Call.Run(func(args mock.Arguments) {
1068- run(args[0].(gtk.Align))
1069- })
1070- return _c
1071-}
1072-
1073-func (_c *MockLabelWidget_SetValign_Call) Return() *MockLabelWidget_SetValign_Call {
1074- _c.Call.Return()
1075- return _c
1076-}
1077-
1078-func (_c *MockLabelWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockLabelWidget_SetValign_Call {
1079- _c.Run(run)
1080- return _c
1081-}
1082-
1083-// SetVexpand provides a mock function with given fields: expand
1084-func (_m *MockLabelWidget) SetVexpand(expand bool) {
1085- _m.Called(expand)
1086-}
1087-
1088-// MockLabelWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1089-type MockLabelWidget_SetVexpand_Call struct {
1090- *mock.Call
1091-}
1092-
1093-// SetVexpand is a helper method to define mock.On call
1094-// - expand bool
1095-func (_e *MockLabelWidget_Expecter) SetVexpand(expand interface{}) *MockLabelWidget_SetVexpand_Call {
1096- return &MockLabelWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1097-}
1098-
1099-func (_c *MockLabelWidget_SetVexpand_Call) Run(run func(expand bool)) *MockLabelWidget_SetVexpand_Call {
1100- _c.Call.Run(func(args mock.Arguments) {
1101- run(args[0].(bool))
1102- })
1103- return _c
1104-}
1105-
1106-func (_c *MockLabelWidget_SetVexpand_Call) Return() *MockLabelWidget_SetVexpand_Call {
1107- _c.Call.Return()
1108- return _c
1109-}
1110-
1111-func (_c *MockLabelWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockLabelWidget_SetVexpand_Call {
1112- _c.Run(run)
1113- return _c
1114-}
1115-
1116-// SetVisible provides a mock function with given fields: visible
1117-func (_m *MockLabelWidget) SetVisible(visible bool) {
1118- _m.Called(visible)
1119-}
1120-
1121-// MockLabelWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1122-type MockLabelWidget_SetVisible_Call struct {
1123- *mock.Call
1124-}
1125-
1126-// SetVisible is a helper method to define mock.On call
1127-// - visible bool
1128-func (_e *MockLabelWidget_Expecter) SetVisible(visible interface{}) *MockLabelWidget_SetVisible_Call {
1129- return &MockLabelWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1130-}
1131-
1132-func (_c *MockLabelWidget_SetVisible_Call) Run(run func(visible bool)) *MockLabelWidget_SetVisible_Call {
1133- _c.Call.Run(func(args mock.Arguments) {
1134- run(args[0].(bool))
1135- })
1136- return _c
1137-}
1138-
1139-func (_c *MockLabelWidget_SetVisible_Call) Return() *MockLabelWidget_SetVisible_Call {
1140- _c.Call.Return()
1141- return _c
1142-}
1143-
1144-func (_c *MockLabelWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockLabelWidget_SetVisible_Call {
1145- _c.Run(run)
1146- return _c
1147-}
1148-
1149-// SetXalign provides a mock function with given fields: xalign
1150-func (_m *MockLabelWidget) SetXalign(xalign float32) {
1151- _m.Called(xalign)
1152-}
1153-
1154-// MockLabelWidget_SetXalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetXalign'
1155-type MockLabelWidget_SetXalign_Call struct {
1156- *mock.Call
1157-}
1158-
1159-// SetXalign is a helper method to define mock.On call
1160-// - xalign float32
1161-func (_e *MockLabelWidget_Expecter) SetXalign(xalign interface{}) *MockLabelWidget_SetXalign_Call {
1162- return &MockLabelWidget_SetXalign_Call{Call: _e.mock.On("SetXalign", xalign)}
1163-}
1164-
1165-func (_c *MockLabelWidget_SetXalign_Call) Run(run func(xalign float32)) *MockLabelWidget_SetXalign_Call {
1166- _c.Call.Run(func(args mock.Arguments) {
1167- run(args[0].(float32))
1168- })
1169- return _c
1170-}
1171-
1172-func (_c *MockLabelWidget_SetXalign_Call) Return() *MockLabelWidget_SetXalign_Call {
1173- _c.Call.Return()
1174- return _c
1175-}
1176-
1177-func (_c *MockLabelWidget_SetXalign_Call) RunAndReturn(run func(float32)) *MockLabelWidget_SetXalign_Call {
1178- _c.Run(run)
1179- return _c
1180-}
1181-
1182-// Show provides a mock function with no fields
1183-func (_m *MockLabelWidget) Show() {
1184- _m.Called()
1185-}
1186-
1187-// MockLabelWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1188-type MockLabelWidget_Show_Call struct {
1189- *mock.Call
1190-}
1191-
1192-// Show is a helper method to define mock.On call
1193-func (_e *MockLabelWidget_Expecter) Show() *MockLabelWidget_Show_Call {
1194- return &MockLabelWidget_Show_Call{Call: _e.mock.On("Show")}
1195-}
1196-
1197-func (_c *MockLabelWidget_Show_Call) Run(run func()) *MockLabelWidget_Show_Call {
1198- _c.Call.Run(func(args mock.Arguments) {
1199- run()
1200- })
1201- return _c
1202-}
1203-
1204-func (_c *MockLabelWidget_Show_Call) Return() *MockLabelWidget_Show_Call {
1205- _c.Call.Return()
1206- return _c
1207-}
1208-
1209-func (_c *MockLabelWidget_Show_Call) RunAndReturn(run func()) *MockLabelWidget_Show_Call {
1210- _c.Run(run)
1211- return _c
1212-}
1213-
1214-// Unparent provides a mock function with no fields
1215-func (_m *MockLabelWidget) Unparent() {
1216- _m.Called()
1217-}
1218-
1219-// MockLabelWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1220-type MockLabelWidget_Unparent_Call struct {
1221- *mock.Call
1222-}
1223-
1224-// Unparent is a helper method to define mock.On call
1225-func (_e *MockLabelWidget_Expecter) Unparent() *MockLabelWidget_Unparent_Call {
1226- return &MockLabelWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1227-}
1228-
1229-func (_c *MockLabelWidget_Unparent_Call) Run(run func()) *MockLabelWidget_Unparent_Call {
1230- _c.Call.Run(func(args mock.Arguments) {
1231- run()
1232- })
1233- return _c
1234-}
1235-
1236-func (_c *MockLabelWidget_Unparent_Call) Return() *MockLabelWidget_Unparent_Call {
1237- _c.Call.Return()
1238- return _c
1239-}
1240-
1241-func (_c *MockLabelWidget_Unparent_Call) RunAndReturn(run func()) *MockLabelWidget_Unparent_Call {
1242- _c.Run(run)
1243- return _c
1244-}
1245-
1246-// NewMockLabelWidget creates a new instance of MockLabelWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1247-// The first argument is typically a *testing.T value.
1248-func NewMockLabelWidget(t interface {
1249- mock.TestingT
1250- Cleanup(func())
1251-}) *MockLabelWidget {
1252- mock := &MockLabelWidget{}
1253- mock.Mock.Test(t)
1254-
1255- t.Cleanup(func() { mock.AssertExpectations(t) })
1256-
1257- return mock
1258-}
D internal/ui/layout/mocks/mock_overlay_widget.go +0 -1354
@@ -1,1354 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockOverlayWidget is an autogenerated mock type for the OverlayWidget type
13-type MockOverlayWidget struct {
14- mock.Mock
15-}
16-
17-type MockOverlayWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockOverlayWidget) EXPECT() *MockOverlayWidget_Expecter {
22- return &MockOverlayWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockOverlayWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockOverlayWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockOverlayWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockOverlayWidget_Expecter) AddController(controller interface{}) *MockOverlayWidget_AddController_Call {
38- return &MockOverlayWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockOverlayWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockOverlayWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockOverlayWidget_AddController_Call) Return() *MockOverlayWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockOverlayWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockOverlayWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockOverlayWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockOverlayWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockOverlayWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockOverlayWidget_Expecter) AddCssClass(cssClass interface{}) *MockOverlayWidget_AddCssClass_Call {
71- return &MockOverlayWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockOverlayWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockOverlayWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockOverlayWidget_AddCssClass_Call) Return() *MockOverlayWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockOverlayWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockOverlayWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// AddOverlay provides a mock function with given fields: overlay
92-func (_m *MockOverlayWidget) AddOverlay(overlay layout.Widget) {
93- _m.Called(overlay)
94-}
95-
96-// MockOverlayWidget_AddOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOverlay'
97-type MockOverlayWidget_AddOverlay_Call struct {
98- *mock.Call
99-}
100-
101-// AddOverlay is a helper method to define mock.On call
102-// - overlay layout.Widget
103-func (_e *MockOverlayWidget_Expecter) AddOverlay(overlay interface{}) *MockOverlayWidget_AddOverlay_Call {
104- return &MockOverlayWidget_AddOverlay_Call{Call: _e.mock.On("AddOverlay", overlay)}
105-}
106-
107-func (_c *MockOverlayWidget_AddOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_AddOverlay_Call {
108- _c.Call.Run(func(args mock.Arguments) {
109- run(args[0].(layout.Widget))
110- })
111- return _c
112-}
113-
114-func (_c *MockOverlayWidget_AddOverlay_Call) Return() *MockOverlayWidget_AddOverlay_Call {
115- _c.Call.Return()
116- return _c
117-}
118-
119-func (_c *MockOverlayWidget_AddOverlay_Call) RunAndReturn(run func(layout.Widget)) *MockOverlayWidget_AddOverlay_Call {
120- _c.Run(run)
121- return _c
122-}
123-
124-// ComputePoint provides a mock function with given fields: target
125-func (_m *MockOverlayWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
126- ret := _m.Called(target)
127-
128- if len(ret) == 0 {
129- panic("no return value specified for ComputePoint")
130- }
131-
132- var r0 float64
133- var r1 float64
134- var r2 bool
135- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
136- return rf(target)
137- }
138- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
139- r0 = rf(target)
140- } else {
141- r0 = ret.Get(0).(float64)
142- }
143-
144- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
145- r1 = rf(target)
146- } else {
147- r1 = ret.Get(1).(float64)
148- }
149-
150- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
151- r2 = rf(target)
152- } else {
153- r2 = ret.Get(2).(bool)
154- }
155-
156- return r0, r1, r2
157-}
158-
159-// MockOverlayWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
160-type MockOverlayWidget_ComputePoint_Call struct {
161- *mock.Call
162-}
163-
164-// ComputePoint is a helper method to define mock.On call
165-// - target layout.Widget
166-func (_e *MockOverlayWidget_Expecter) ComputePoint(target interface{}) *MockOverlayWidget_ComputePoint_Call {
167- return &MockOverlayWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
168-}
169-
170-func (_c *MockOverlayWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockOverlayWidget_ComputePoint_Call {
171- _c.Call.Run(func(args mock.Arguments) {
172- run(args[0].(layout.Widget))
173- })
174- return _c
175-}
176-
177-func (_c *MockOverlayWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockOverlayWidget_ComputePoint_Call {
178- _c.Call.Return(x, y, ok)
179- return _c
180-}
181-
182-func (_c *MockOverlayWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockOverlayWidget_ComputePoint_Call {
183- _c.Call.Return(run)
184- return _c
185-}
186-
187-// GetAllocatedHeight provides a mock function with no fields
188-func (_m *MockOverlayWidget) GetAllocatedHeight() int {
189- ret := _m.Called()
190-
191- if len(ret) == 0 {
192- panic("no return value specified for GetAllocatedHeight")
193- }
194-
195- var r0 int
196- if rf, ok := ret.Get(0).(func() int); ok {
197- r0 = rf()
198- } else {
199- r0 = ret.Get(0).(int)
200- }
201-
202- return r0
203-}
204-
205-// MockOverlayWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
206-type MockOverlayWidget_GetAllocatedHeight_Call struct {
207- *mock.Call
208-}
209-
210-// GetAllocatedHeight is a helper method to define mock.On call
211-func (_e *MockOverlayWidget_Expecter) GetAllocatedHeight() *MockOverlayWidget_GetAllocatedHeight_Call {
212- return &MockOverlayWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
213-}
214-
215-func (_c *MockOverlayWidget_GetAllocatedHeight_Call) Run(run func()) *MockOverlayWidget_GetAllocatedHeight_Call {
216- _c.Call.Run(func(args mock.Arguments) {
217- run()
218- })
219- return _c
220-}
221-
222-func (_c *MockOverlayWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockOverlayWidget_GetAllocatedHeight_Call {
223- _c.Call.Return(_a0)
224- return _c
225-}
226-
227-func (_c *MockOverlayWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockOverlayWidget_GetAllocatedHeight_Call {
228- _c.Call.Return(run)
229- return _c
230-}
231-
232-// GetAllocatedWidth provides a mock function with no fields
233-func (_m *MockOverlayWidget) GetAllocatedWidth() int {
234- ret := _m.Called()
235-
236- if len(ret) == 0 {
237- panic("no return value specified for GetAllocatedWidth")
238- }
239-
240- var r0 int
241- if rf, ok := ret.Get(0).(func() int); ok {
242- r0 = rf()
243- } else {
244- r0 = ret.Get(0).(int)
245- }
246-
247- return r0
248-}
249-
250-// MockOverlayWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
251-type MockOverlayWidget_GetAllocatedWidth_Call struct {
252- *mock.Call
253-}
254-
255-// GetAllocatedWidth is a helper method to define mock.On call
256-func (_e *MockOverlayWidget_Expecter) GetAllocatedWidth() *MockOverlayWidget_GetAllocatedWidth_Call {
257- return &MockOverlayWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
258-}
259-
260-func (_c *MockOverlayWidget_GetAllocatedWidth_Call) Run(run func()) *MockOverlayWidget_GetAllocatedWidth_Call {
261- _c.Call.Run(func(args mock.Arguments) {
262- run()
263- })
264- return _c
265-}
266-
267-func (_c *MockOverlayWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockOverlayWidget_GetAllocatedWidth_Call {
268- _c.Call.Return(_a0)
269- return _c
270-}
271-
272-func (_c *MockOverlayWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockOverlayWidget_GetAllocatedWidth_Call {
273- _c.Call.Return(run)
274- return _c
275-}
276-
277-// GetChild provides a mock function with no fields
278-func (_m *MockOverlayWidget) GetChild() layout.Widget {
279- ret := _m.Called()
280-
281- if len(ret) == 0 {
282- panic("no return value specified for GetChild")
283- }
284-
285- var r0 layout.Widget
286- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
287- r0 = rf()
288- } else {
289- if ret.Get(0) != nil {
290- r0 = ret.Get(0).(layout.Widget)
291- }
292- }
293-
294- return r0
295-}
296-
297-// MockOverlayWidget_GetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChild'
298-type MockOverlayWidget_GetChild_Call struct {
299- *mock.Call
300-}
301-
302-// GetChild is a helper method to define mock.On call
303-func (_e *MockOverlayWidget_Expecter) GetChild() *MockOverlayWidget_GetChild_Call {
304- return &MockOverlayWidget_GetChild_Call{Call: _e.mock.On("GetChild")}
305-}
306-
307-func (_c *MockOverlayWidget_GetChild_Call) Run(run func()) *MockOverlayWidget_GetChild_Call {
308- _c.Call.Run(func(args mock.Arguments) {
309- run()
310- })
311- return _c
312-}
313-
314-func (_c *MockOverlayWidget_GetChild_Call) Return(_a0 layout.Widget) *MockOverlayWidget_GetChild_Call {
315- _c.Call.Return(_a0)
316- return _c
317-}
318-
319-func (_c *MockOverlayWidget_GetChild_Call) RunAndReturn(run func() layout.Widget) *MockOverlayWidget_GetChild_Call {
320- _c.Call.Return(run)
321- return _c
322-}
323-
324-// GetClipOverlay provides a mock function with given fields: overlay
325-func (_m *MockOverlayWidget) GetClipOverlay(overlay layout.Widget) bool {
326- ret := _m.Called(overlay)
327-
328- if len(ret) == 0 {
329- panic("no return value specified for GetClipOverlay")
330- }
331-
332- var r0 bool
333- if rf, ok := ret.Get(0).(func(layout.Widget) bool); ok {
334- r0 = rf(overlay)
335- } else {
336- r0 = ret.Get(0).(bool)
337- }
338-
339- return r0
340-}
341-
342-// MockOverlayWidget_GetClipOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClipOverlay'
343-type MockOverlayWidget_GetClipOverlay_Call struct {
344- *mock.Call
345-}
346-
347-// GetClipOverlay is a helper method to define mock.On call
348-// - overlay layout.Widget
349-func (_e *MockOverlayWidget_Expecter) GetClipOverlay(overlay interface{}) *MockOverlayWidget_GetClipOverlay_Call {
350- return &MockOverlayWidget_GetClipOverlay_Call{Call: _e.mock.On("GetClipOverlay", overlay)}
351-}
352-
353-func (_c *MockOverlayWidget_GetClipOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_GetClipOverlay_Call {
354- _c.Call.Run(func(args mock.Arguments) {
355- run(args[0].(layout.Widget))
356- })
357- return _c
358-}
359-
360-func (_c *MockOverlayWidget_GetClipOverlay_Call) Return(_a0 bool) *MockOverlayWidget_GetClipOverlay_Call {
361- _c.Call.Return(_a0)
362- return _c
363-}
364-
365-func (_c *MockOverlayWidget_GetClipOverlay_Call) RunAndReturn(run func(layout.Widget) bool) *MockOverlayWidget_GetClipOverlay_Call {
366- _c.Call.Return(run)
367- return _c
368-}
369-
370-// GetHexpand provides a mock function with no fields
371-func (_m *MockOverlayWidget) GetHexpand() bool {
372- ret := _m.Called()
373-
374- if len(ret) == 0 {
375- panic("no return value specified for GetHexpand")
376- }
377-
378- var r0 bool
379- if rf, ok := ret.Get(0).(func() bool); ok {
380- r0 = rf()
381- } else {
382- r0 = ret.Get(0).(bool)
383- }
384-
385- return r0
386-}
387-
388-// MockOverlayWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
389-type MockOverlayWidget_GetHexpand_Call struct {
390- *mock.Call
391-}
392-
393-// GetHexpand is a helper method to define mock.On call
394-func (_e *MockOverlayWidget_Expecter) GetHexpand() *MockOverlayWidget_GetHexpand_Call {
395- return &MockOverlayWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
396-}
397-
398-func (_c *MockOverlayWidget_GetHexpand_Call) Run(run func()) *MockOverlayWidget_GetHexpand_Call {
399- _c.Call.Run(func(args mock.Arguments) {
400- run()
401- })
402- return _c
403-}
404-
405-func (_c *MockOverlayWidget_GetHexpand_Call) Return(_a0 bool) *MockOverlayWidget_GetHexpand_Call {
406- _c.Call.Return(_a0)
407- return _c
408-}
409-
410-func (_c *MockOverlayWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockOverlayWidget_GetHexpand_Call {
411- _c.Call.Return(run)
412- return _c
413-}
414-
415-// GetMeasureOverlay provides a mock function with given fields: overlay
416-func (_m *MockOverlayWidget) GetMeasureOverlay(overlay layout.Widget) bool {
417- ret := _m.Called(overlay)
418-
419- if len(ret) == 0 {
420- panic("no return value specified for GetMeasureOverlay")
421- }
422-
423- var r0 bool
424- if rf, ok := ret.Get(0).(func(layout.Widget) bool); ok {
425- r0 = rf(overlay)
426- } else {
427- r0 = ret.Get(0).(bool)
428- }
429-
430- return r0
431-}
432-
433-// MockOverlayWidget_GetMeasureOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMeasureOverlay'
434-type MockOverlayWidget_GetMeasureOverlay_Call struct {
435- *mock.Call
436-}
437-
438-// GetMeasureOverlay is a helper method to define mock.On call
439-// - overlay layout.Widget
440-func (_e *MockOverlayWidget_Expecter) GetMeasureOverlay(overlay interface{}) *MockOverlayWidget_GetMeasureOverlay_Call {
441- return &MockOverlayWidget_GetMeasureOverlay_Call{Call: _e.mock.On("GetMeasureOverlay", overlay)}
442-}
443-
444-func (_c *MockOverlayWidget_GetMeasureOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_GetMeasureOverlay_Call {
445- _c.Call.Run(func(args mock.Arguments) {
446- run(args[0].(layout.Widget))
447- })
448- return _c
449-}
450-
451-func (_c *MockOverlayWidget_GetMeasureOverlay_Call) Return(_a0 bool) *MockOverlayWidget_GetMeasureOverlay_Call {
452- _c.Call.Return(_a0)
453- return _c
454-}
455-
456-func (_c *MockOverlayWidget_GetMeasureOverlay_Call) RunAndReturn(run func(layout.Widget) bool) *MockOverlayWidget_GetMeasureOverlay_Call {
457- _c.Call.Return(run)
458- return _c
459-}
460-
461-// GetParent provides a mock function with no fields
462-func (_m *MockOverlayWidget) GetParent() layout.Widget {
463- ret := _m.Called()
464-
465- if len(ret) == 0 {
466- panic("no return value specified for GetParent")
467- }
468-
469- var r0 layout.Widget
470- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
471- r0 = rf()
472- } else {
473- if ret.Get(0) != nil {
474- r0 = ret.Get(0).(layout.Widget)
475- }
476- }
477-
478- return r0
479-}
480-
481-// MockOverlayWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
482-type MockOverlayWidget_GetParent_Call struct {
483- *mock.Call
484-}
485-
486-// GetParent is a helper method to define mock.On call
487-func (_e *MockOverlayWidget_Expecter) GetParent() *MockOverlayWidget_GetParent_Call {
488- return &MockOverlayWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
489-}
490-
491-func (_c *MockOverlayWidget_GetParent_Call) Run(run func()) *MockOverlayWidget_GetParent_Call {
492- _c.Call.Run(func(args mock.Arguments) {
493- run()
494- })
495- return _c
496-}
497-
498-func (_c *MockOverlayWidget_GetParent_Call) Return(_a0 layout.Widget) *MockOverlayWidget_GetParent_Call {
499- _c.Call.Return(_a0)
500- return _c
501-}
502-
503-func (_c *MockOverlayWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockOverlayWidget_GetParent_Call {
504- _c.Call.Return(run)
505- return _c
506-}
507-
508-// GetVexpand provides a mock function with no fields
509-func (_m *MockOverlayWidget) GetVexpand() bool {
510- ret := _m.Called()
511-
512- if len(ret) == 0 {
513- panic("no return value specified for GetVexpand")
514- }
515-
516- var r0 bool
517- if rf, ok := ret.Get(0).(func() bool); ok {
518- r0 = rf()
519- } else {
520- r0 = ret.Get(0).(bool)
521- }
522-
523- return r0
524-}
525-
526-// MockOverlayWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
527-type MockOverlayWidget_GetVexpand_Call struct {
528- *mock.Call
529-}
530-
531-// GetVexpand is a helper method to define mock.On call
532-func (_e *MockOverlayWidget_Expecter) GetVexpand() *MockOverlayWidget_GetVexpand_Call {
533- return &MockOverlayWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
534-}
535-
536-func (_c *MockOverlayWidget_GetVexpand_Call) Run(run func()) *MockOverlayWidget_GetVexpand_Call {
537- _c.Call.Run(func(args mock.Arguments) {
538- run()
539- })
540- return _c
541-}
542-
543-func (_c *MockOverlayWidget_GetVexpand_Call) Return(_a0 bool) *MockOverlayWidget_GetVexpand_Call {
544- _c.Call.Return(_a0)
545- return _c
546-}
547-
548-func (_c *MockOverlayWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockOverlayWidget_GetVexpand_Call {
549- _c.Call.Return(run)
550- return _c
551-}
552-
553-// GrabFocus provides a mock function with no fields
554-func (_m *MockOverlayWidget) GrabFocus() bool {
555- ret := _m.Called()
556-
557- if len(ret) == 0 {
558- panic("no return value specified for GrabFocus")
559- }
560-
561- var r0 bool
562- if rf, ok := ret.Get(0).(func() bool); ok {
563- r0 = rf()
564- } else {
565- r0 = ret.Get(0).(bool)
566- }
567-
568- return r0
569-}
570-
571-// MockOverlayWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
572-type MockOverlayWidget_GrabFocus_Call struct {
573- *mock.Call
574-}
575-
576-// GrabFocus is a helper method to define mock.On call
577-func (_e *MockOverlayWidget_Expecter) GrabFocus() *MockOverlayWidget_GrabFocus_Call {
578- return &MockOverlayWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
579-}
580-
581-func (_c *MockOverlayWidget_GrabFocus_Call) Run(run func()) *MockOverlayWidget_GrabFocus_Call {
582- _c.Call.Run(func(args mock.Arguments) {
583- run()
584- })
585- return _c
586-}
587-
588-func (_c *MockOverlayWidget_GrabFocus_Call) Return(_a0 bool) *MockOverlayWidget_GrabFocus_Call {
589- _c.Call.Return(_a0)
590- return _c
591-}
592-
593-func (_c *MockOverlayWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockOverlayWidget_GrabFocus_Call {
594- _c.Call.Return(run)
595- return _c
596-}
597-
598-// GtkWidget provides a mock function with no fields
599-func (_m *MockOverlayWidget) GtkWidget() *gtk.Widget {
600- ret := _m.Called()
601-
602- if len(ret) == 0 {
603- panic("no return value specified for GtkWidget")
604- }
605-
606- var r0 *gtk.Widget
607- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
608- r0 = rf()
609- } else {
610- if ret.Get(0) != nil {
611- r0 = ret.Get(0).(*gtk.Widget)
612- }
613- }
614-
615- return r0
616-}
617-
618-// MockOverlayWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
619-type MockOverlayWidget_GtkWidget_Call struct {
620- *mock.Call
621-}
622-
623-// GtkWidget is a helper method to define mock.On call
624-func (_e *MockOverlayWidget_Expecter) GtkWidget() *MockOverlayWidget_GtkWidget_Call {
625- return &MockOverlayWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
626-}
627-
628-func (_c *MockOverlayWidget_GtkWidget_Call) Run(run func()) *MockOverlayWidget_GtkWidget_Call {
629- _c.Call.Run(func(args mock.Arguments) {
630- run()
631- })
632- return _c
633-}
634-
635-func (_c *MockOverlayWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockOverlayWidget_GtkWidget_Call {
636- _c.Call.Return(_a0)
637- return _c
638-}
639-
640-func (_c *MockOverlayWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockOverlayWidget_GtkWidget_Call {
641- _c.Call.Return(run)
642- return _c
643-}
644-
645-// HasCssClass provides a mock function with given fields: cssClass
646-func (_m *MockOverlayWidget) HasCssClass(cssClass string) bool {
647- ret := _m.Called(cssClass)
648-
649- if len(ret) == 0 {
650- panic("no return value specified for HasCssClass")
651- }
652-
653- var r0 bool
654- if rf, ok := ret.Get(0).(func(string) bool); ok {
655- r0 = rf(cssClass)
656- } else {
657- r0 = ret.Get(0).(bool)
658- }
659-
660- return r0
661-}
662-
663-// MockOverlayWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
664-type MockOverlayWidget_HasCssClass_Call struct {
665- *mock.Call
666-}
667-
668-// HasCssClass is a helper method to define mock.On call
669-// - cssClass string
670-func (_e *MockOverlayWidget_Expecter) HasCssClass(cssClass interface{}) *MockOverlayWidget_HasCssClass_Call {
671- return &MockOverlayWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
672-}
673-
674-func (_c *MockOverlayWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockOverlayWidget_HasCssClass_Call {
675- _c.Call.Run(func(args mock.Arguments) {
676- run(args[0].(string))
677- })
678- return _c
679-}
680-
681-func (_c *MockOverlayWidget_HasCssClass_Call) Return(_a0 bool) *MockOverlayWidget_HasCssClass_Call {
682- _c.Call.Return(_a0)
683- return _c
684-}
685-
686-func (_c *MockOverlayWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockOverlayWidget_HasCssClass_Call {
687- _c.Call.Return(run)
688- return _c
689-}
690-
691-// HasFocus provides a mock function with no fields
692-func (_m *MockOverlayWidget) HasFocus() bool {
693- ret := _m.Called()
694-
695- if len(ret) == 0 {
696- panic("no return value specified for HasFocus")
697- }
698-
699- var r0 bool
700- if rf, ok := ret.Get(0).(func() bool); ok {
701- r0 = rf()
702- } else {
703- r0 = ret.Get(0).(bool)
704- }
705-
706- return r0
707-}
708-
709-// MockOverlayWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
710-type MockOverlayWidget_HasFocus_Call struct {
711- *mock.Call
712-}
713-
714-// HasFocus is a helper method to define mock.On call
715-func (_e *MockOverlayWidget_Expecter) HasFocus() *MockOverlayWidget_HasFocus_Call {
716- return &MockOverlayWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
717-}
718-
719-func (_c *MockOverlayWidget_HasFocus_Call) Run(run func()) *MockOverlayWidget_HasFocus_Call {
720- _c.Call.Run(func(args mock.Arguments) {
721- run()
722- })
723- return _c
724-}
725-
726-func (_c *MockOverlayWidget_HasFocus_Call) Return(_a0 bool) *MockOverlayWidget_HasFocus_Call {
727- _c.Call.Return(_a0)
728- return _c
729-}
730-
731-func (_c *MockOverlayWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockOverlayWidget_HasFocus_Call {
732- _c.Call.Return(run)
733- return _c
734-}
735-
736-// Hide provides a mock function with no fields
737-func (_m *MockOverlayWidget) Hide() {
738- _m.Called()
739-}
740-
741-// MockOverlayWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
742-type MockOverlayWidget_Hide_Call struct {
743- *mock.Call
744-}
745-
746-// Hide is a helper method to define mock.On call
747-func (_e *MockOverlayWidget_Expecter) Hide() *MockOverlayWidget_Hide_Call {
748- return &MockOverlayWidget_Hide_Call{Call: _e.mock.On("Hide")}
749-}
750-
751-func (_c *MockOverlayWidget_Hide_Call) Run(run func()) *MockOverlayWidget_Hide_Call {
752- _c.Call.Run(func(args mock.Arguments) {
753- run()
754- })
755- return _c
756-}
757-
758-func (_c *MockOverlayWidget_Hide_Call) Return() *MockOverlayWidget_Hide_Call {
759- _c.Call.Return()
760- return _c
761-}
762-
763-func (_c *MockOverlayWidget_Hide_Call) RunAndReturn(run func()) *MockOverlayWidget_Hide_Call {
764- _c.Run(run)
765- return _c
766-}
767-
768-// IsVisible provides a mock function with no fields
769-func (_m *MockOverlayWidget) IsVisible() bool {
770- ret := _m.Called()
771-
772- if len(ret) == 0 {
773- panic("no return value specified for IsVisible")
774- }
775-
776- var r0 bool
777- if rf, ok := ret.Get(0).(func() bool); ok {
778- r0 = rf()
779- } else {
780- r0 = ret.Get(0).(bool)
781- }
782-
783- return r0
784-}
785-
786-// MockOverlayWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
787-type MockOverlayWidget_IsVisible_Call struct {
788- *mock.Call
789-}
790-
791-// IsVisible is a helper method to define mock.On call
792-func (_e *MockOverlayWidget_Expecter) IsVisible() *MockOverlayWidget_IsVisible_Call {
793- return &MockOverlayWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
794-}
795-
796-func (_c *MockOverlayWidget_IsVisible_Call) Run(run func()) *MockOverlayWidget_IsVisible_Call {
797- _c.Call.Run(func(args mock.Arguments) {
798- run()
799- })
800- return _c
801-}
802-
803-func (_c *MockOverlayWidget_IsVisible_Call) Return(_a0 bool) *MockOverlayWidget_IsVisible_Call {
804- _c.Call.Return(_a0)
805- return _c
806-}
807-
808-func (_c *MockOverlayWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockOverlayWidget_IsVisible_Call {
809- _c.Call.Return(run)
810- return _c
811-}
812-
813-// RemoveCssClass provides a mock function with given fields: cssClass
814-func (_m *MockOverlayWidget) RemoveCssClass(cssClass string) {
815- _m.Called(cssClass)
816-}
817-
818-// MockOverlayWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
819-type MockOverlayWidget_RemoveCssClass_Call struct {
820- *mock.Call
821-}
822-
823-// RemoveCssClass is a helper method to define mock.On call
824-// - cssClass string
825-func (_e *MockOverlayWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockOverlayWidget_RemoveCssClass_Call {
826- return &MockOverlayWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
827-}
828-
829-func (_c *MockOverlayWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockOverlayWidget_RemoveCssClass_Call {
830- _c.Call.Run(func(args mock.Arguments) {
831- run(args[0].(string))
832- })
833- return _c
834-}
835-
836-func (_c *MockOverlayWidget_RemoveCssClass_Call) Return() *MockOverlayWidget_RemoveCssClass_Call {
837- _c.Call.Return()
838- return _c
839-}
840-
841-func (_c *MockOverlayWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockOverlayWidget_RemoveCssClass_Call {
842- _c.Run(run)
843- return _c
844-}
845-
846-// RemoveOverlay provides a mock function with given fields: overlay
847-func (_m *MockOverlayWidget) RemoveOverlay(overlay layout.Widget) {
848- _m.Called(overlay)
849-}
850-
851-// MockOverlayWidget_RemoveOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOverlay'
852-type MockOverlayWidget_RemoveOverlay_Call struct {
853- *mock.Call
854-}
855-
856-// RemoveOverlay is a helper method to define mock.On call
857-// - overlay layout.Widget
858-func (_e *MockOverlayWidget_Expecter) RemoveOverlay(overlay interface{}) *MockOverlayWidget_RemoveOverlay_Call {
859- return &MockOverlayWidget_RemoveOverlay_Call{Call: _e.mock.On("RemoveOverlay", overlay)}
860-}
861-
862-func (_c *MockOverlayWidget_RemoveOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_RemoveOverlay_Call {
863- _c.Call.Run(func(args mock.Arguments) {
864- run(args[0].(layout.Widget))
865- })
866- return _c
867-}
868-
869-func (_c *MockOverlayWidget_RemoveOverlay_Call) Return() *MockOverlayWidget_RemoveOverlay_Call {
870- _c.Call.Return()
871- return _c
872-}
873-
874-func (_c *MockOverlayWidget_RemoveOverlay_Call) RunAndReturn(run func(layout.Widget)) *MockOverlayWidget_RemoveOverlay_Call {
875- _c.Run(run)
876- return _c
877-}
878-
879-// SetCanFocus provides a mock function with given fields: canFocus
880-func (_m *MockOverlayWidget) SetCanFocus(canFocus bool) {
881- _m.Called(canFocus)
882-}
883-
884-// MockOverlayWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
885-type MockOverlayWidget_SetCanFocus_Call struct {
886- *mock.Call
887-}
888-
889-// SetCanFocus is a helper method to define mock.On call
890-// - canFocus bool
891-func (_e *MockOverlayWidget_Expecter) SetCanFocus(canFocus interface{}) *MockOverlayWidget_SetCanFocus_Call {
892- return &MockOverlayWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
893-}
894-
895-func (_c *MockOverlayWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockOverlayWidget_SetCanFocus_Call {
896- _c.Call.Run(func(args mock.Arguments) {
897- run(args[0].(bool))
898- })
899- return _c
900-}
901-
902-func (_c *MockOverlayWidget_SetCanFocus_Call) Return() *MockOverlayWidget_SetCanFocus_Call {
903- _c.Call.Return()
904- return _c
905-}
906-
907-func (_c *MockOverlayWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockOverlayWidget_SetCanFocus_Call {
908- _c.Run(run)
909- return _c
910-}
911-
912-// SetCanTarget provides a mock function with given fields: canTarget
913-func (_m *MockOverlayWidget) SetCanTarget(canTarget bool) {
914- _m.Called(canTarget)
915-}
916-
917-// MockOverlayWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
918-type MockOverlayWidget_SetCanTarget_Call struct {
919- *mock.Call
920-}
921-
922-// SetCanTarget is a helper method to define mock.On call
923-// - canTarget bool
924-func (_e *MockOverlayWidget_Expecter) SetCanTarget(canTarget interface{}) *MockOverlayWidget_SetCanTarget_Call {
925- return &MockOverlayWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
926-}
927-
928-func (_c *MockOverlayWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockOverlayWidget_SetCanTarget_Call {
929- _c.Call.Run(func(args mock.Arguments) {
930- run(args[0].(bool))
931- })
932- return _c
933-}
934-
935-func (_c *MockOverlayWidget_SetCanTarget_Call) Return() *MockOverlayWidget_SetCanTarget_Call {
936- _c.Call.Return()
937- return _c
938-}
939-
940-func (_c *MockOverlayWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockOverlayWidget_SetCanTarget_Call {
941- _c.Run(run)
942- return _c
943-}
944-
945-// SetChild provides a mock function with given fields: child
946-func (_m *MockOverlayWidget) SetChild(child layout.Widget) {
947- _m.Called(child)
948-}
949-
950-// MockOverlayWidget_SetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetChild'
951-type MockOverlayWidget_SetChild_Call struct {
952- *mock.Call
953-}
954-
955-// SetChild is a helper method to define mock.On call
956-// - child layout.Widget
957-func (_e *MockOverlayWidget_Expecter) SetChild(child interface{}) *MockOverlayWidget_SetChild_Call {
958- return &MockOverlayWidget_SetChild_Call{Call: _e.mock.On("SetChild", child)}
959-}
960-
961-func (_c *MockOverlayWidget_SetChild_Call) Run(run func(child layout.Widget)) *MockOverlayWidget_SetChild_Call {
962- _c.Call.Run(func(args mock.Arguments) {
963- run(args[0].(layout.Widget))
964- })
965- return _c
966-}
967-
968-func (_c *MockOverlayWidget_SetChild_Call) Return() *MockOverlayWidget_SetChild_Call {
969- _c.Call.Return()
970- return _c
971-}
972-
973-func (_c *MockOverlayWidget_SetChild_Call) RunAndReturn(run func(layout.Widget)) *MockOverlayWidget_SetChild_Call {
974- _c.Run(run)
975- return _c
976-}
977-
978-// SetClipOverlay provides a mock function with given fields: overlay, clip
979-func (_m *MockOverlayWidget) SetClipOverlay(overlay layout.Widget, clip bool) {
980- _m.Called(overlay, clip)
981-}
982-
983-// MockOverlayWidget_SetClipOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetClipOverlay'
984-type MockOverlayWidget_SetClipOverlay_Call struct {
985- *mock.Call
986-}
987-
988-// SetClipOverlay is a helper method to define mock.On call
989-// - overlay layout.Widget
990-// - clip bool
991-func (_e *MockOverlayWidget_Expecter) SetClipOverlay(overlay interface{}, clip interface{}) *MockOverlayWidget_SetClipOverlay_Call {
992- return &MockOverlayWidget_SetClipOverlay_Call{Call: _e.mock.On("SetClipOverlay", overlay, clip)}
993-}
994-
995-func (_c *MockOverlayWidget_SetClipOverlay_Call) Run(run func(overlay layout.Widget, clip bool)) *MockOverlayWidget_SetClipOverlay_Call {
996- _c.Call.Run(func(args mock.Arguments) {
997- run(args[0].(layout.Widget), args[1].(bool))
998- })
999- return _c
1000-}
1001-
1002-func (_c *MockOverlayWidget_SetClipOverlay_Call) Return() *MockOverlayWidget_SetClipOverlay_Call {
1003- _c.Call.Return()
1004- return _c
1005-}
1006-
1007-func (_c *MockOverlayWidget_SetClipOverlay_Call) RunAndReturn(run func(layout.Widget, bool)) *MockOverlayWidget_SetClipOverlay_Call {
1008- _c.Run(run)
1009- return _c
1010-}
1011-
1012-// SetFocusOnClick provides a mock function with given fields: focusOnClick
1013-func (_m *MockOverlayWidget) SetFocusOnClick(focusOnClick bool) {
1014- _m.Called(focusOnClick)
1015-}
1016-
1017-// MockOverlayWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
1018-type MockOverlayWidget_SetFocusOnClick_Call struct {
1019- *mock.Call
1020-}
1021-
1022-// SetFocusOnClick is a helper method to define mock.On call
1023-// - focusOnClick bool
1024-func (_e *MockOverlayWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockOverlayWidget_SetFocusOnClick_Call {
1025- return &MockOverlayWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
1026-}
1027-
1028-func (_c *MockOverlayWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockOverlayWidget_SetFocusOnClick_Call {
1029- _c.Call.Run(func(args mock.Arguments) {
1030- run(args[0].(bool))
1031- })
1032- return _c
1033-}
1034-
1035-func (_c *MockOverlayWidget_SetFocusOnClick_Call) Return() *MockOverlayWidget_SetFocusOnClick_Call {
1036- _c.Call.Return()
1037- return _c
1038-}
1039-
1040-func (_c *MockOverlayWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockOverlayWidget_SetFocusOnClick_Call {
1041- _c.Run(run)
1042- return _c
1043-}
1044-
1045-// SetHalign provides a mock function with given fields: align
1046-func (_m *MockOverlayWidget) SetHalign(align gtk.Align) {
1047- _m.Called(align)
1048-}
1049-
1050-// MockOverlayWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
1051-type MockOverlayWidget_SetHalign_Call struct {
1052- *mock.Call
1053-}
1054-
1055-// SetHalign is a helper method to define mock.On call
1056-// - align gtk.Align
1057-func (_e *MockOverlayWidget_Expecter) SetHalign(align interface{}) *MockOverlayWidget_SetHalign_Call {
1058- return &MockOverlayWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
1059-}
1060-
1061-func (_c *MockOverlayWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockOverlayWidget_SetHalign_Call {
1062- _c.Call.Run(func(args mock.Arguments) {
1063- run(args[0].(gtk.Align))
1064- })
1065- return _c
1066-}
1067-
1068-func (_c *MockOverlayWidget_SetHalign_Call) Return() *MockOverlayWidget_SetHalign_Call {
1069- _c.Call.Return()
1070- return _c
1071-}
1072-
1073-func (_c *MockOverlayWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockOverlayWidget_SetHalign_Call {
1074- _c.Run(run)
1075- return _c
1076-}
1077-
1078-// SetHexpand provides a mock function with given fields: expand
1079-func (_m *MockOverlayWidget) SetHexpand(expand bool) {
1080- _m.Called(expand)
1081-}
1082-
1083-// MockOverlayWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
1084-type MockOverlayWidget_SetHexpand_Call struct {
1085- *mock.Call
1086-}
1087-
1088-// SetHexpand is a helper method to define mock.On call
1089-// - expand bool
1090-func (_e *MockOverlayWidget_Expecter) SetHexpand(expand interface{}) *MockOverlayWidget_SetHexpand_Call {
1091- return &MockOverlayWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
1092-}
1093-
1094-func (_c *MockOverlayWidget_SetHexpand_Call) Run(run func(expand bool)) *MockOverlayWidget_SetHexpand_Call {
1095- _c.Call.Run(func(args mock.Arguments) {
1096- run(args[0].(bool))
1097- })
1098- return _c
1099-}
1100-
1101-func (_c *MockOverlayWidget_SetHexpand_Call) Return() *MockOverlayWidget_SetHexpand_Call {
1102- _c.Call.Return()
1103- return _c
1104-}
1105-
1106-func (_c *MockOverlayWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockOverlayWidget_SetHexpand_Call {
1107- _c.Run(run)
1108- return _c
1109-}
1110-
1111-// SetMeasureOverlay provides a mock function with given fields: overlay, measure
1112-func (_m *MockOverlayWidget) SetMeasureOverlay(overlay layout.Widget, measure bool) {
1113- _m.Called(overlay, measure)
1114-}
1115-
1116-// MockOverlayWidget_SetMeasureOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMeasureOverlay'
1117-type MockOverlayWidget_SetMeasureOverlay_Call struct {
1118- *mock.Call
1119-}
1120-
1121-// SetMeasureOverlay is a helper method to define mock.On call
1122-// - overlay layout.Widget
1123-// - measure bool
1124-func (_e *MockOverlayWidget_Expecter) SetMeasureOverlay(overlay interface{}, measure interface{}) *MockOverlayWidget_SetMeasureOverlay_Call {
1125- return &MockOverlayWidget_SetMeasureOverlay_Call{Call: _e.mock.On("SetMeasureOverlay", overlay, measure)}
1126-}
1127-
1128-func (_c *MockOverlayWidget_SetMeasureOverlay_Call) Run(run func(overlay layout.Widget, measure bool)) *MockOverlayWidget_SetMeasureOverlay_Call {
1129- _c.Call.Run(func(args mock.Arguments) {
1130- run(args[0].(layout.Widget), args[1].(bool))
1131- })
1132- return _c
1133-}
1134-
1135-func (_c *MockOverlayWidget_SetMeasureOverlay_Call) Return() *MockOverlayWidget_SetMeasureOverlay_Call {
1136- _c.Call.Return()
1137- return _c
1138-}
1139-
1140-func (_c *MockOverlayWidget_SetMeasureOverlay_Call) RunAndReturn(run func(layout.Widget, bool)) *MockOverlayWidget_SetMeasureOverlay_Call {
1141- _c.Run(run)
1142- return _c
1143-}
1144-
1145-// SetSizeRequest provides a mock function with given fields: width, height
1146-func (_m *MockOverlayWidget) SetSizeRequest(width int, height int) {
1147- _m.Called(width, height)
1148-}
1149-
1150-// MockOverlayWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
1151-type MockOverlayWidget_SetSizeRequest_Call struct {
1152- *mock.Call
1153-}
1154-
1155-// SetSizeRequest is a helper method to define mock.On call
1156-// - width int
1157-// - height int
1158-func (_e *MockOverlayWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockOverlayWidget_SetSizeRequest_Call {
1159- return &MockOverlayWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
1160-}
1161-
1162-func (_c *MockOverlayWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockOverlayWidget_SetSizeRequest_Call {
1163- _c.Call.Run(func(args mock.Arguments) {
1164- run(args[0].(int), args[1].(int))
1165- })
1166- return _c
1167-}
1168-
1169-func (_c *MockOverlayWidget_SetSizeRequest_Call) Return() *MockOverlayWidget_SetSizeRequest_Call {
1170- _c.Call.Return()
1171- return _c
1172-}
1173-
1174-func (_c *MockOverlayWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockOverlayWidget_SetSizeRequest_Call {
1175- _c.Run(run)
1176- return _c
1177-}
1178-
1179-// SetValign provides a mock function with given fields: align
1180-func (_m *MockOverlayWidget) SetValign(align gtk.Align) {
1181- _m.Called(align)
1182-}
1183-
1184-// MockOverlayWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1185-type MockOverlayWidget_SetValign_Call struct {
1186- *mock.Call
1187-}
1188-
1189-// SetValign is a helper method to define mock.On call
1190-// - align gtk.Align
1191-func (_e *MockOverlayWidget_Expecter) SetValign(align interface{}) *MockOverlayWidget_SetValign_Call {
1192- return &MockOverlayWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1193-}
1194-
1195-func (_c *MockOverlayWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockOverlayWidget_SetValign_Call {
1196- _c.Call.Run(func(args mock.Arguments) {
1197- run(args[0].(gtk.Align))
1198- })
1199- return _c
1200-}
1201-
1202-func (_c *MockOverlayWidget_SetValign_Call) Return() *MockOverlayWidget_SetValign_Call {
1203- _c.Call.Return()
1204- return _c
1205-}
1206-
1207-func (_c *MockOverlayWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockOverlayWidget_SetValign_Call {
1208- _c.Run(run)
1209- return _c
1210-}
1211-
1212-// SetVexpand provides a mock function with given fields: expand
1213-func (_m *MockOverlayWidget) SetVexpand(expand bool) {
1214- _m.Called(expand)
1215-}
1216-
1217-// MockOverlayWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1218-type MockOverlayWidget_SetVexpand_Call struct {
1219- *mock.Call
1220-}
1221-
1222-// SetVexpand is a helper method to define mock.On call
1223-// - expand bool
1224-func (_e *MockOverlayWidget_Expecter) SetVexpand(expand interface{}) *MockOverlayWidget_SetVexpand_Call {
1225- return &MockOverlayWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1226-}
1227-
1228-func (_c *MockOverlayWidget_SetVexpand_Call) Run(run func(expand bool)) *MockOverlayWidget_SetVexpand_Call {
1229- _c.Call.Run(func(args mock.Arguments) {
1230- run(args[0].(bool))
1231- })
1232- return _c
1233-}
1234-
1235-func (_c *MockOverlayWidget_SetVexpand_Call) Return() *MockOverlayWidget_SetVexpand_Call {
1236- _c.Call.Return()
1237- return _c
1238-}
1239-
1240-func (_c *MockOverlayWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockOverlayWidget_SetVexpand_Call {
1241- _c.Run(run)
1242- return _c
1243-}
1244-
1245-// SetVisible provides a mock function with given fields: visible
1246-func (_m *MockOverlayWidget) SetVisible(visible bool) {
1247- _m.Called(visible)
1248-}
1249-
1250-// MockOverlayWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1251-type MockOverlayWidget_SetVisible_Call struct {
1252- *mock.Call
1253-}
1254-
1255-// SetVisible is a helper method to define mock.On call
1256-// - visible bool
1257-func (_e *MockOverlayWidget_Expecter) SetVisible(visible interface{}) *MockOverlayWidget_SetVisible_Call {
1258- return &MockOverlayWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1259-}
1260-
1261-func (_c *MockOverlayWidget_SetVisible_Call) Run(run func(visible bool)) *MockOverlayWidget_SetVisible_Call {
1262- _c.Call.Run(func(args mock.Arguments) {
1263- run(args[0].(bool))
1264- })
1265- return _c
1266-}
1267-
1268-func (_c *MockOverlayWidget_SetVisible_Call) Return() *MockOverlayWidget_SetVisible_Call {
1269- _c.Call.Return()
1270- return _c
1271-}
1272-
1273-func (_c *MockOverlayWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockOverlayWidget_SetVisible_Call {
1274- _c.Run(run)
1275- return _c
1276-}
1277-
1278-// Show provides a mock function with no fields
1279-func (_m *MockOverlayWidget) Show() {
1280- _m.Called()
1281-}
1282-
1283-// MockOverlayWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1284-type MockOverlayWidget_Show_Call struct {
1285- *mock.Call
1286-}
1287-
1288-// Show is a helper method to define mock.On call
1289-func (_e *MockOverlayWidget_Expecter) Show() *MockOverlayWidget_Show_Call {
1290- return &MockOverlayWidget_Show_Call{Call: _e.mock.On("Show")}
1291-}
1292-
1293-func (_c *MockOverlayWidget_Show_Call) Run(run func()) *MockOverlayWidget_Show_Call {
1294- _c.Call.Run(func(args mock.Arguments) {
1295- run()
1296- })
1297- return _c
1298-}
1299-
1300-func (_c *MockOverlayWidget_Show_Call) Return() *MockOverlayWidget_Show_Call {
1301- _c.Call.Return()
1302- return _c
1303-}
1304-
1305-func (_c *MockOverlayWidget_Show_Call) RunAndReturn(run func()) *MockOverlayWidget_Show_Call {
1306- _c.Run(run)
1307- return _c
1308-}
1309-
1310-// Unparent provides a mock function with no fields
1311-func (_m *MockOverlayWidget) Unparent() {
1312- _m.Called()
1313-}
1314-
1315-// MockOverlayWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1316-type MockOverlayWidget_Unparent_Call struct {
1317- *mock.Call
1318-}
1319-
1320-// Unparent is a helper method to define mock.On call
1321-func (_e *MockOverlayWidget_Expecter) Unparent() *MockOverlayWidget_Unparent_Call {
1322- return &MockOverlayWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1323-}
1324-
1325-func (_c *MockOverlayWidget_Unparent_Call) Run(run func()) *MockOverlayWidget_Unparent_Call {
1326- _c.Call.Run(func(args mock.Arguments) {
1327- run()
1328- })
1329- return _c
1330-}
1331-
1332-func (_c *MockOverlayWidget_Unparent_Call) Return() *MockOverlayWidget_Unparent_Call {
1333- _c.Call.Return()
1334- return _c
1335-}
1336-
1337-func (_c *MockOverlayWidget_Unparent_Call) RunAndReturn(run func()) *MockOverlayWidget_Unparent_Call {
1338- _c.Run(run)
1339- return _c
1340-}
1341-
1342-// NewMockOverlayWidget creates a new instance of MockOverlayWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1343-// The first argument is typically a *testing.T value.
1344-func NewMockOverlayWidget(t interface {
1345- mock.TestingT
1346- Cleanup(func())
1347-}) *MockOverlayWidget {
1348- mock := &MockOverlayWidget{}
1349- mock.Mock.Test(t)
1350-
1351- t.Cleanup(func() { mock.AssertExpectations(t) })
1352-
1353- return mock
1354-}
D internal/ui/layout/mocks/mock_pane_renderer.go +0 -84
@@ -1,84 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- mock "github.com/stretchr/testify/mock"
8-)
9-
10-// MockPaneRenderer is an autogenerated mock type for the PaneRenderer type
11-type MockPaneRenderer struct {
12- mock.Mock
13-}
14-
15-type MockPaneRenderer_Expecter struct {
16- mock *mock.Mock
17-}
18-
19-func (_m *MockPaneRenderer) EXPECT() *MockPaneRenderer_Expecter {
20- return &MockPaneRenderer_Expecter{mock: &_m.Mock}
21-}
22-
23-// RenderPane provides a mock function with given fields: paneID, webViewWidget
24-func (_m *MockPaneRenderer) RenderPane(paneID string, webViewWidget layout.Widget) layout.Widget {
25- ret := _m.Called(paneID, webViewWidget)
26-
27- if len(ret) == 0 {
28- panic("no return value specified for RenderPane")
29- }
30-
31- var r0 layout.Widget
32- if rf, ok := ret.Get(0).(func(string, layout.Widget) layout.Widget); ok {
33- r0 = rf(paneID, webViewWidget)
34- } else {
35- if ret.Get(0) != nil {
36- r0 = ret.Get(0).(layout.Widget)
37- }
38- }
39-
40- return r0
41-}
42-
43-// MockPaneRenderer_RenderPane_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenderPane'
44-type MockPaneRenderer_RenderPane_Call struct {
45- *mock.Call
46-}
47-
48-// RenderPane is a helper method to define mock.On call
49-// - paneID string
50-// - webViewWidget layout.Widget
51-func (_e *MockPaneRenderer_Expecter) RenderPane(paneID interface{}, webViewWidget interface{}) *MockPaneRenderer_RenderPane_Call {
52- return &MockPaneRenderer_RenderPane_Call{Call: _e.mock.On("RenderPane", paneID, webViewWidget)}
53-}
54-
55-func (_c *MockPaneRenderer_RenderPane_Call) Run(run func(paneID string, webViewWidget layout.Widget)) *MockPaneRenderer_RenderPane_Call {
56- _c.Call.Run(func(args mock.Arguments) {
57- run(args[0].(string), args[1].(layout.Widget))
58- })
59- return _c
60-}
61-
62-func (_c *MockPaneRenderer_RenderPane_Call) Return(_a0 layout.Widget) *MockPaneRenderer_RenderPane_Call {
63- _c.Call.Return(_a0)
64- return _c
65-}
66-
67-func (_c *MockPaneRenderer_RenderPane_Call) RunAndReturn(run func(string, layout.Widget) layout.Widget) *MockPaneRenderer_RenderPane_Call {
68- _c.Call.Return(run)
69- return _c
70-}
71-
72-// NewMockPaneRenderer creates a new instance of MockPaneRenderer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
73-// The first argument is typically a *testing.T value.
74-func NewMockPaneRenderer(t interface {
75- mock.TestingT
76- Cleanup(func())
77-}) *MockPaneRenderer {
78- mock := &MockPaneRenderer{}
79- mock.Mock.Test(t)
80-
81- t.Cleanup(func() { mock.AssertExpectations(t) })
82-
83- return mock
84-}
D internal/ui/layout/mocks/mock_pane_view_factory.go +0 -85
@@ -1,85 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- entity "github.com/bnema/dumber/internal/domain/entity"
7- layout "github.com/bnema/dumber/internal/ui/layout"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockPaneViewFactory is an autogenerated mock type for the PaneViewFactory type
13-type MockPaneViewFactory struct {
14- mock.Mock
15-}
16-
17-type MockPaneViewFactory_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockPaneViewFactory) EXPECT() *MockPaneViewFactory_Expecter {
22- return &MockPaneViewFactory_Expecter{mock: &_m.Mock}
23-}
24-
25-// CreatePaneView provides a mock function with given fields: node
26-func (_m *MockPaneViewFactory) CreatePaneView(node *entity.PaneNode) layout.Widget {
27- ret := _m.Called(node)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for CreatePaneView")
31- }
32-
33- var r0 layout.Widget
34- if rf, ok := ret.Get(0).(func(*entity.PaneNode) layout.Widget); ok {
35- r0 = rf(node)
36- } else {
37- if ret.Get(0) != nil {
38- r0 = ret.Get(0).(layout.Widget)
39- }
40- }
41-
42- return r0
43-}
44-
45-// MockPaneViewFactory_CreatePaneView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePaneView'
46-type MockPaneViewFactory_CreatePaneView_Call struct {
47- *mock.Call
48-}
49-
50-// CreatePaneView is a helper method to define mock.On call
51-// - node *entity.PaneNode
52-func (_e *MockPaneViewFactory_Expecter) CreatePaneView(node interface{}) *MockPaneViewFactory_CreatePaneView_Call {
53- return &MockPaneViewFactory_CreatePaneView_Call{Call: _e.mock.On("CreatePaneView", node)}
54-}
55-
56-func (_c *MockPaneViewFactory_CreatePaneView_Call) Run(run func(node *entity.PaneNode)) *MockPaneViewFactory_CreatePaneView_Call {
57- _c.Call.Run(func(args mock.Arguments) {
58- run(args[0].(*entity.PaneNode))
59- })
60- return _c
61-}
62-
63-func (_c *MockPaneViewFactory_CreatePaneView_Call) Return(_a0 layout.Widget) *MockPaneViewFactory_CreatePaneView_Call {
64- _c.Call.Return(_a0)
65- return _c
66-}
67-
68-func (_c *MockPaneViewFactory_CreatePaneView_Call) RunAndReturn(run func(*entity.PaneNode) layout.Widget) *MockPaneViewFactory_CreatePaneView_Call {
69- _c.Call.Return(run)
70- return _c
71-}
72-
73-// NewMockPaneViewFactory creates a new instance of MockPaneViewFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
74-// The first argument is typically a *testing.T value.
75-func NewMockPaneViewFactory(t interface {
76- mock.TestingT
77- Cleanup(func())
78-}) *MockPaneViewFactory {
79- mock := &MockPaneViewFactory{}
80- mock.Mock.Test(t)
81-
82- t.Cleanup(func() { mock.AssertExpectations(t) })
83-
84- return mock
85-}
D internal/ui/layout/mocks/mock_paned_widget.go +0 -1768
@@ -1,1768 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockPanedWidget is an autogenerated mock type for the PanedWidget type
13-type MockPanedWidget struct {
14- mock.Mock
15-}
16-
17-type MockPanedWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockPanedWidget) EXPECT() *MockPanedWidget_Expecter {
22- return &MockPanedWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockPanedWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockPanedWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockPanedWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockPanedWidget_Expecter) AddController(controller interface{}) *MockPanedWidget_AddController_Call {
38- return &MockPanedWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockPanedWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockPanedWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockPanedWidget_AddController_Call) Return() *MockPanedWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockPanedWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockPanedWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockPanedWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockPanedWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockPanedWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockPanedWidget_Expecter) AddCssClass(cssClass interface{}) *MockPanedWidget_AddCssClass_Call {
71- return &MockPanedWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockPanedWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockPanedWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockPanedWidget_AddCssClass_Call) Return() *MockPanedWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockPanedWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockPanedWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// AddTickCallback provides a mock function with given fields: callback
92-func (_m *MockPanedWidget) AddTickCallback(callback func() bool) uint {
93- ret := _m.Called(callback)
94-
95- if len(ret) == 0 {
96- panic("no return value specified for AddTickCallback")
97- }
98-
99- var r0 uint
100- if rf, ok := ret.Get(0).(func(func() bool) uint); ok {
101- r0 = rf(callback)
102- } else {
103- r0 = ret.Get(0).(uint)
104- }
105-
106- return r0
107-}
108-
109-// MockPanedWidget_AddTickCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTickCallback'
110-type MockPanedWidget_AddTickCallback_Call struct {
111- *mock.Call
112-}
113-
114-// AddTickCallback is a helper method to define mock.On call
115-// - callback func() bool
116-func (_e *MockPanedWidget_Expecter) AddTickCallback(callback interface{}) *MockPanedWidget_AddTickCallback_Call {
117- return &MockPanedWidget_AddTickCallback_Call{Call: _e.mock.On("AddTickCallback", callback)}
118-}
119-
120-func (_c *MockPanedWidget_AddTickCallback_Call) Run(run func(callback func() bool)) *MockPanedWidget_AddTickCallback_Call {
121- _c.Call.Run(func(args mock.Arguments) {
122- run(args[0].(func() bool))
123- })
124- return _c
125-}
126-
127-func (_c *MockPanedWidget_AddTickCallback_Call) Return(_a0 uint) *MockPanedWidget_AddTickCallback_Call {
128- _c.Call.Return(_a0)
129- return _c
130-}
131-
132-func (_c *MockPanedWidget_AddTickCallback_Call) RunAndReturn(run func(func() bool) uint) *MockPanedWidget_AddTickCallback_Call {
133- _c.Call.Return(run)
134- return _c
135-}
136-
137-// ComputePoint provides a mock function with given fields: target
138-func (_m *MockPanedWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
139- ret := _m.Called(target)
140-
141- if len(ret) == 0 {
142- panic("no return value specified for ComputePoint")
143- }
144-
145- var r0 float64
146- var r1 float64
147- var r2 bool
148- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
149- return rf(target)
150- }
151- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
152- r0 = rf(target)
153- } else {
154- r0 = ret.Get(0).(float64)
155- }
156-
157- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
158- r1 = rf(target)
159- } else {
160- r1 = ret.Get(1).(float64)
161- }
162-
163- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
164- r2 = rf(target)
165- } else {
166- r2 = ret.Get(2).(bool)
167- }
168-
169- return r0, r1, r2
170-}
171-
172-// MockPanedWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
173-type MockPanedWidget_ComputePoint_Call struct {
174- *mock.Call
175-}
176-
177-// ComputePoint is a helper method to define mock.On call
178-// - target layout.Widget
179-func (_e *MockPanedWidget_Expecter) ComputePoint(target interface{}) *MockPanedWidget_ComputePoint_Call {
180- return &MockPanedWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
181-}
182-
183-func (_c *MockPanedWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockPanedWidget_ComputePoint_Call {
184- _c.Call.Run(func(args mock.Arguments) {
185- run(args[0].(layout.Widget))
186- })
187- return _c
188-}
189-
190-func (_c *MockPanedWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockPanedWidget_ComputePoint_Call {
191- _c.Call.Return(x, y, ok)
192- return _c
193-}
194-
195-func (_c *MockPanedWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockPanedWidget_ComputePoint_Call {
196- _c.Call.Return(run)
197- return _c
198-}
199-
200-// ConnectMap provides a mock function with given fields: callback
201-func (_m *MockPanedWidget) ConnectMap(callback func()) uint32 {
202- ret := _m.Called(callback)
203-
204- if len(ret) == 0 {
205- panic("no return value specified for ConnectMap")
206- }
207-
208- var r0 uint32
209- if rf, ok := ret.Get(0).(func(func()) uint32); ok {
210- r0 = rf(callback)
211- } else {
212- r0 = ret.Get(0).(uint32)
213- }
214-
215- return r0
216-}
217-
218-// MockPanedWidget_ConnectMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectMap'
219-type MockPanedWidget_ConnectMap_Call struct {
220- *mock.Call
221-}
222-
223-// ConnectMap is a helper method to define mock.On call
224-// - callback func()
225-func (_e *MockPanedWidget_Expecter) ConnectMap(callback interface{}) *MockPanedWidget_ConnectMap_Call {
226- return &MockPanedWidget_ConnectMap_Call{Call: _e.mock.On("ConnectMap", callback)}
227-}
228-
229-func (_c *MockPanedWidget_ConnectMap_Call) Run(run func(callback func())) *MockPanedWidget_ConnectMap_Call {
230- _c.Call.Run(func(args mock.Arguments) {
231- run(args[0].(func()))
232- })
233- return _c
234-}
235-
236-func (_c *MockPanedWidget_ConnectMap_Call) Return(_a0 uint32) *MockPanedWidget_ConnectMap_Call {
237- _c.Call.Return(_a0)
238- return _c
239-}
240-
241-func (_c *MockPanedWidget_ConnectMap_Call) RunAndReturn(run func(func()) uint32) *MockPanedWidget_ConnectMap_Call {
242- _c.Call.Return(run)
243- return _c
244-}
245-
246-// GetAllocatedHeight provides a mock function with no fields
247-func (_m *MockPanedWidget) GetAllocatedHeight() int {
248- ret := _m.Called()
249-
250- if len(ret) == 0 {
251- panic("no return value specified for GetAllocatedHeight")
252- }
253-
254- var r0 int
255- if rf, ok := ret.Get(0).(func() int); ok {
256- r0 = rf()
257- } else {
258- r0 = ret.Get(0).(int)
259- }
260-
261- return r0
262-}
263-
264-// MockPanedWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
265-type MockPanedWidget_GetAllocatedHeight_Call struct {
266- *mock.Call
267-}
268-
269-// GetAllocatedHeight is a helper method to define mock.On call
270-func (_e *MockPanedWidget_Expecter) GetAllocatedHeight() *MockPanedWidget_GetAllocatedHeight_Call {
271- return &MockPanedWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
272-}
273-
274-func (_c *MockPanedWidget_GetAllocatedHeight_Call) Run(run func()) *MockPanedWidget_GetAllocatedHeight_Call {
275- _c.Call.Run(func(args mock.Arguments) {
276- run()
277- })
278- return _c
279-}
280-
281-func (_c *MockPanedWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockPanedWidget_GetAllocatedHeight_Call {
282- _c.Call.Return(_a0)
283- return _c
284-}
285-
286-func (_c *MockPanedWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockPanedWidget_GetAllocatedHeight_Call {
287- _c.Call.Return(run)
288- return _c
289-}
290-
291-// GetAllocatedWidth provides a mock function with no fields
292-func (_m *MockPanedWidget) GetAllocatedWidth() int {
293- ret := _m.Called()
294-
295- if len(ret) == 0 {
296- panic("no return value specified for GetAllocatedWidth")
297- }
298-
299- var r0 int
300- if rf, ok := ret.Get(0).(func() int); ok {
301- r0 = rf()
302- } else {
303- r0 = ret.Get(0).(int)
304- }
305-
306- return r0
307-}
308-
309-// MockPanedWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
310-type MockPanedWidget_GetAllocatedWidth_Call struct {
311- *mock.Call
312-}
313-
314-// GetAllocatedWidth is a helper method to define mock.On call
315-func (_e *MockPanedWidget_Expecter) GetAllocatedWidth() *MockPanedWidget_GetAllocatedWidth_Call {
316- return &MockPanedWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
317-}
318-
319-func (_c *MockPanedWidget_GetAllocatedWidth_Call) Run(run func()) *MockPanedWidget_GetAllocatedWidth_Call {
320- _c.Call.Run(func(args mock.Arguments) {
321- run()
322- })
323- return _c
324-}
325-
326-func (_c *MockPanedWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockPanedWidget_GetAllocatedWidth_Call {
327- _c.Call.Return(_a0)
328- return _c
329-}
330-
331-func (_c *MockPanedWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockPanedWidget_GetAllocatedWidth_Call {
332- _c.Call.Return(run)
333- return _c
334-}
335-
336-// GetEndChild provides a mock function with no fields
337-func (_m *MockPanedWidget) GetEndChild() layout.Widget {
338- ret := _m.Called()
339-
340- if len(ret) == 0 {
341- panic("no return value specified for GetEndChild")
342- }
343-
344- var r0 layout.Widget
345- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
346- r0 = rf()
347- } else {
348- if ret.Get(0) != nil {
349- r0 = ret.Get(0).(layout.Widget)
350- }
351- }
352-
353- return r0
354-}
355-
356-// MockPanedWidget_GetEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEndChild'
357-type MockPanedWidget_GetEndChild_Call struct {
358- *mock.Call
359-}
360-
361-// GetEndChild is a helper method to define mock.On call
362-func (_e *MockPanedWidget_Expecter) GetEndChild() *MockPanedWidget_GetEndChild_Call {
363- return &MockPanedWidget_GetEndChild_Call{Call: _e.mock.On("GetEndChild")}
364-}
365-
366-func (_c *MockPanedWidget_GetEndChild_Call) Run(run func()) *MockPanedWidget_GetEndChild_Call {
367- _c.Call.Run(func(args mock.Arguments) {
368- run()
369- })
370- return _c
371-}
372-
373-func (_c *MockPanedWidget_GetEndChild_Call) Return(_a0 layout.Widget) *MockPanedWidget_GetEndChild_Call {
374- _c.Call.Return(_a0)
375- return _c
376-}
377-
378-func (_c *MockPanedWidget_GetEndChild_Call) RunAndReturn(run func() layout.Widget) *MockPanedWidget_GetEndChild_Call {
379- _c.Call.Return(run)
380- return _c
381-}
382-
383-// GetHexpand provides a mock function with no fields
384-func (_m *MockPanedWidget) GetHexpand() bool {
385- ret := _m.Called()
386-
387- if len(ret) == 0 {
388- panic("no return value specified for GetHexpand")
389- }
390-
391- var r0 bool
392- if rf, ok := ret.Get(0).(func() bool); ok {
393- r0 = rf()
394- } else {
395- r0 = ret.Get(0).(bool)
396- }
397-
398- return r0
399-}
400-
401-// MockPanedWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
402-type MockPanedWidget_GetHexpand_Call struct {
403- *mock.Call
404-}
405-
406-// GetHexpand is a helper method to define mock.On call
407-func (_e *MockPanedWidget_Expecter) GetHexpand() *MockPanedWidget_GetHexpand_Call {
408- return &MockPanedWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
409-}
410-
411-func (_c *MockPanedWidget_GetHexpand_Call) Run(run func()) *MockPanedWidget_GetHexpand_Call {
412- _c.Call.Run(func(args mock.Arguments) {
413- run()
414- })
415- return _c
416-}
417-
418-func (_c *MockPanedWidget_GetHexpand_Call) Return(_a0 bool) *MockPanedWidget_GetHexpand_Call {
419- _c.Call.Return(_a0)
420- return _c
421-}
422-
423-func (_c *MockPanedWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetHexpand_Call {
424- _c.Call.Return(run)
425- return _c
426-}
427-
428-// GetParent provides a mock function with no fields
429-func (_m *MockPanedWidget) GetParent() layout.Widget {
430- ret := _m.Called()
431-
432- if len(ret) == 0 {
433- panic("no return value specified for GetParent")
434- }
435-
436- var r0 layout.Widget
437- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
438- r0 = rf()
439- } else {
440- if ret.Get(0) != nil {
441- r0 = ret.Get(0).(layout.Widget)
442- }
443- }
444-
445- return r0
446-}
447-
448-// MockPanedWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
449-type MockPanedWidget_GetParent_Call struct {
450- *mock.Call
451-}
452-
453-// GetParent is a helper method to define mock.On call
454-func (_e *MockPanedWidget_Expecter) GetParent() *MockPanedWidget_GetParent_Call {
455- return &MockPanedWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
456-}
457-
458-func (_c *MockPanedWidget_GetParent_Call) Run(run func()) *MockPanedWidget_GetParent_Call {
459- _c.Call.Run(func(args mock.Arguments) {
460- run()
461- })
462- return _c
463-}
464-
465-func (_c *MockPanedWidget_GetParent_Call) Return(_a0 layout.Widget) *MockPanedWidget_GetParent_Call {
466- _c.Call.Return(_a0)
467- return _c
468-}
469-
470-func (_c *MockPanedWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockPanedWidget_GetParent_Call {
471- _c.Call.Return(run)
472- return _c
473-}
474-
475-// GetPosition provides a mock function with no fields
476-func (_m *MockPanedWidget) GetPosition() int {
477- ret := _m.Called()
478-
479- if len(ret) == 0 {
480- panic("no return value specified for GetPosition")
481- }
482-
483- var r0 int
484- if rf, ok := ret.Get(0).(func() int); ok {
485- r0 = rf()
486- } else {
487- r0 = ret.Get(0).(int)
488- }
489-
490- return r0
491-}
492-
493-// MockPanedWidget_GetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPosition'
494-type MockPanedWidget_GetPosition_Call struct {
495- *mock.Call
496-}
497-
498-// GetPosition is a helper method to define mock.On call
499-func (_e *MockPanedWidget_Expecter) GetPosition() *MockPanedWidget_GetPosition_Call {
500- return &MockPanedWidget_GetPosition_Call{Call: _e.mock.On("GetPosition")}
501-}
502-
503-func (_c *MockPanedWidget_GetPosition_Call) Run(run func()) *MockPanedWidget_GetPosition_Call {
504- _c.Call.Run(func(args mock.Arguments) {
505- run()
506- })
507- return _c
508-}
509-
510-func (_c *MockPanedWidget_GetPosition_Call) Return(_a0 int) *MockPanedWidget_GetPosition_Call {
511- _c.Call.Return(_a0)
512- return _c
513-}
514-
515-func (_c *MockPanedWidget_GetPosition_Call) RunAndReturn(run func() int) *MockPanedWidget_GetPosition_Call {
516- _c.Call.Return(run)
517- return _c
518-}
519-
520-// GetResizeEndChild provides a mock function with no fields
521-func (_m *MockPanedWidget) GetResizeEndChild() bool {
522- ret := _m.Called()
523-
524- if len(ret) == 0 {
525- panic("no return value specified for GetResizeEndChild")
526- }
527-
528- var r0 bool
529- if rf, ok := ret.Get(0).(func() bool); ok {
530- r0 = rf()
531- } else {
532- r0 = ret.Get(0).(bool)
533- }
534-
535- return r0
536-}
537-
538-// MockPanedWidget_GetResizeEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResizeEndChild'
539-type MockPanedWidget_GetResizeEndChild_Call struct {
540- *mock.Call
541-}
542-
543-// GetResizeEndChild is a helper method to define mock.On call
544-func (_e *MockPanedWidget_Expecter) GetResizeEndChild() *MockPanedWidget_GetResizeEndChild_Call {
545- return &MockPanedWidget_GetResizeEndChild_Call{Call: _e.mock.On("GetResizeEndChild")}
546-}
547-
548-func (_c *MockPanedWidget_GetResizeEndChild_Call) Run(run func()) *MockPanedWidget_GetResizeEndChild_Call {
549- _c.Call.Run(func(args mock.Arguments) {
550- run()
551- })
552- return _c
553-}
554-
555-func (_c *MockPanedWidget_GetResizeEndChild_Call) Return(_a0 bool) *MockPanedWidget_GetResizeEndChild_Call {
556- _c.Call.Return(_a0)
557- return _c
558-}
559-
560-func (_c *MockPanedWidget_GetResizeEndChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetResizeEndChild_Call {
561- _c.Call.Return(run)
562- return _c
563-}
564-
565-// GetResizeStartChild provides a mock function with no fields
566-func (_m *MockPanedWidget) GetResizeStartChild() bool {
567- ret := _m.Called()
568-
569- if len(ret) == 0 {
570- panic("no return value specified for GetResizeStartChild")
571- }
572-
573- var r0 bool
574- if rf, ok := ret.Get(0).(func() bool); ok {
575- r0 = rf()
576- } else {
577- r0 = ret.Get(0).(bool)
578- }
579-
580- return r0
581-}
582-
583-// MockPanedWidget_GetResizeStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResizeStartChild'
584-type MockPanedWidget_GetResizeStartChild_Call struct {
585- *mock.Call
586-}
587-
588-// GetResizeStartChild is a helper method to define mock.On call
589-func (_e *MockPanedWidget_Expecter) GetResizeStartChild() *MockPanedWidget_GetResizeStartChild_Call {
590- return &MockPanedWidget_GetResizeStartChild_Call{Call: _e.mock.On("GetResizeStartChild")}
591-}
592-
593-func (_c *MockPanedWidget_GetResizeStartChild_Call) Run(run func()) *MockPanedWidget_GetResizeStartChild_Call {
594- _c.Call.Run(func(args mock.Arguments) {
595- run()
596- })
597- return _c
598-}
599-
600-func (_c *MockPanedWidget_GetResizeStartChild_Call) Return(_a0 bool) *MockPanedWidget_GetResizeStartChild_Call {
601- _c.Call.Return(_a0)
602- return _c
603-}
604-
605-func (_c *MockPanedWidget_GetResizeStartChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetResizeStartChild_Call {
606- _c.Call.Return(run)
607- return _c
608-}
609-
610-// GetShrinkEndChild provides a mock function with no fields
611-func (_m *MockPanedWidget) GetShrinkEndChild() bool {
612- ret := _m.Called()
613-
614- if len(ret) == 0 {
615- panic("no return value specified for GetShrinkEndChild")
616- }
617-
618- var r0 bool
619- if rf, ok := ret.Get(0).(func() bool); ok {
620- r0 = rf()
621- } else {
622- r0 = ret.Get(0).(bool)
623- }
624-
625- return r0
626-}
627-
628-// MockPanedWidget_GetShrinkEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShrinkEndChild'
629-type MockPanedWidget_GetShrinkEndChild_Call struct {
630- *mock.Call
631-}
632-
633-// GetShrinkEndChild is a helper method to define mock.On call
634-func (_e *MockPanedWidget_Expecter) GetShrinkEndChild() *MockPanedWidget_GetShrinkEndChild_Call {
635- return &MockPanedWidget_GetShrinkEndChild_Call{Call: _e.mock.On("GetShrinkEndChild")}
636-}
637-
638-func (_c *MockPanedWidget_GetShrinkEndChild_Call) Run(run func()) *MockPanedWidget_GetShrinkEndChild_Call {
639- _c.Call.Run(func(args mock.Arguments) {
640- run()
641- })
642- return _c
643-}
644-
645-func (_c *MockPanedWidget_GetShrinkEndChild_Call) Return(_a0 bool) *MockPanedWidget_GetShrinkEndChild_Call {
646- _c.Call.Return(_a0)
647- return _c
648-}
649-
650-func (_c *MockPanedWidget_GetShrinkEndChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetShrinkEndChild_Call {
651- _c.Call.Return(run)
652- return _c
653-}
654-
655-// GetShrinkStartChild provides a mock function with no fields
656-func (_m *MockPanedWidget) GetShrinkStartChild() bool {
657- ret := _m.Called()
658-
659- if len(ret) == 0 {
660- panic("no return value specified for GetShrinkStartChild")
661- }
662-
663- var r0 bool
664- if rf, ok := ret.Get(0).(func() bool); ok {
665- r0 = rf()
666- } else {
667- r0 = ret.Get(0).(bool)
668- }
669-
670- return r0
671-}
672-
673-// MockPanedWidget_GetShrinkStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShrinkStartChild'
674-type MockPanedWidget_GetShrinkStartChild_Call struct {
675- *mock.Call
676-}
677-
678-// GetShrinkStartChild is a helper method to define mock.On call
679-func (_e *MockPanedWidget_Expecter) GetShrinkStartChild() *MockPanedWidget_GetShrinkStartChild_Call {
680- return &MockPanedWidget_GetShrinkStartChild_Call{Call: _e.mock.On("GetShrinkStartChild")}
681-}
682-
683-func (_c *MockPanedWidget_GetShrinkStartChild_Call) Run(run func()) *MockPanedWidget_GetShrinkStartChild_Call {
684- _c.Call.Run(func(args mock.Arguments) {
685- run()
686- })
687- return _c
688-}
689-
690-func (_c *MockPanedWidget_GetShrinkStartChild_Call) Return(_a0 bool) *MockPanedWidget_GetShrinkStartChild_Call {
691- _c.Call.Return(_a0)
692- return _c
693-}
694-
695-func (_c *MockPanedWidget_GetShrinkStartChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetShrinkStartChild_Call {
696- _c.Call.Return(run)
697- return _c
698-}
699-
700-// GetStartChild provides a mock function with no fields
701-func (_m *MockPanedWidget) GetStartChild() layout.Widget {
702- ret := _m.Called()
703-
704- if len(ret) == 0 {
705- panic("no return value specified for GetStartChild")
706- }
707-
708- var r0 layout.Widget
709- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
710- r0 = rf()
711- } else {
712- if ret.Get(0) != nil {
713- r0 = ret.Get(0).(layout.Widget)
714- }
715- }
716-
717- return r0
718-}
719-
720-// MockPanedWidget_GetStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStartChild'
721-type MockPanedWidget_GetStartChild_Call struct {
722- *mock.Call
723-}
724-
725-// GetStartChild is a helper method to define mock.On call
726-func (_e *MockPanedWidget_Expecter) GetStartChild() *MockPanedWidget_GetStartChild_Call {
727- return &MockPanedWidget_GetStartChild_Call{Call: _e.mock.On("GetStartChild")}
728-}
729-
730-func (_c *MockPanedWidget_GetStartChild_Call) Run(run func()) *MockPanedWidget_GetStartChild_Call {
731- _c.Call.Run(func(args mock.Arguments) {
732- run()
733- })
734- return _c
735-}
736-
737-func (_c *MockPanedWidget_GetStartChild_Call) Return(_a0 layout.Widget) *MockPanedWidget_GetStartChild_Call {
738- _c.Call.Return(_a0)
739- return _c
740-}
741-
742-func (_c *MockPanedWidget_GetStartChild_Call) RunAndReturn(run func() layout.Widget) *MockPanedWidget_GetStartChild_Call {
743- _c.Call.Return(run)
744- return _c
745-}
746-
747-// GetVexpand provides a mock function with no fields
748-func (_m *MockPanedWidget) GetVexpand() bool {
749- ret := _m.Called()
750-
751- if len(ret) == 0 {
752- panic("no return value specified for GetVexpand")
753- }
754-
755- var r0 bool
756- if rf, ok := ret.Get(0).(func() bool); ok {
757- r0 = rf()
758- } else {
759- r0 = ret.Get(0).(bool)
760- }
761-
762- return r0
763-}
764-
765-// MockPanedWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
766-type MockPanedWidget_GetVexpand_Call struct {
767- *mock.Call
768-}
769-
770-// GetVexpand is a helper method to define mock.On call
771-func (_e *MockPanedWidget_Expecter) GetVexpand() *MockPanedWidget_GetVexpand_Call {
772- return &MockPanedWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
773-}
774-
775-func (_c *MockPanedWidget_GetVexpand_Call) Run(run func()) *MockPanedWidget_GetVexpand_Call {
776- _c.Call.Run(func(args mock.Arguments) {
777- run()
778- })
779- return _c
780-}
781-
782-func (_c *MockPanedWidget_GetVexpand_Call) Return(_a0 bool) *MockPanedWidget_GetVexpand_Call {
783- _c.Call.Return(_a0)
784- return _c
785-}
786-
787-func (_c *MockPanedWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetVexpand_Call {
788- _c.Call.Return(run)
789- return _c
790-}
791-
792-// GetWideHandle provides a mock function with no fields
793-func (_m *MockPanedWidget) GetWideHandle() bool {
794- ret := _m.Called()
795-
796- if len(ret) == 0 {
797- panic("no return value specified for GetWideHandle")
798- }
799-
800- var r0 bool
801- if rf, ok := ret.Get(0).(func() bool); ok {
802- r0 = rf()
803- } else {
804- r0 = ret.Get(0).(bool)
805- }
806-
807- return r0
808-}
809-
810-// MockPanedWidget_GetWideHandle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWideHandle'
811-type MockPanedWidget_GetWideHandle_Call struct {
812- *mock.Call
813-}
814-
815-// GetWideHandle is a helper method to define mock.On call
816-func (_e *MockPanedWidget_Expecter) GetWideHandle() *MockPanedWidget_GetWideHandle_Call {
817- return &MockPanedWidget_GetWideHandle_Call{Call: _e.mock.On("GetWideHandle")}
818-}
819-
820-func (_c *MockPanedWidget_GetWideHandle_Call) Run(run func()) *MockPanedWidget_GetWideHandle_Call {
821- _c.Call.Run(func(args mock.Arguments) {
822- run()
823- })
824- return _c
825-}
826-
827-func (_c *MockPanedWidget_GetWideHandle_Call) Return(_a0 bool) *MockPanedWidget_GetWideHandle_Call {
828- _c.Call.Return(_a0)
829- return _c
830-}
831-
832-func (_c *MockPanedWidget_GetWideHandle_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetWideHandle_Call {
833- _c.Call.Return(run)
834- return _c
835-}
836-
837-// GrabFocus provides a mock function with no fields
838-func (_m *MockPanedWidget) GrabFocus() bool {
839- ret := _m.Called()
840-
841- if len(ret) == 0 {
842- panic("no return value specified for GrabFocus")
843- }
844-
845- var r0 bool
846- if rf, ok := ret.Get(0).(func() bool); ok {
847- r0 = rf()
848- } else {
849- r0 = ret.Get(0).(bool)
850- }
851-
852- return r0
853-}
854-
855-// MockPanedWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
856-type MockPanedWidget_GrabFocus_Call struct {
857- *mock.Call
858-}
859-
860-// GrabFocus is a helper method to define mock.On call
861-func (_e *MockPanedWidget_Expecter) GrabFocus() *MockPanedWidget_GrabFocus_Call {
862- return &MockPanedWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
863-}
864-
865-func (_c *MockPanedWidget_GrabFocus_Call) Run(run func()) *MockPanedWidget_GrabFocus_Call {
866- _c.Call.Run(func(args mock.Arguments) {
867- run()
868- })
869- return _c
870-}
871-
872-func (_c *MockPanedWidget_GrabFocus_Call) Return(_a0 bool) *MockPanedWidget_GrabFocus_Call {
873- _c.Call.Return(_a0)
874- return _c
875-}
876-
877-func (_c *MockPanedWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockPanedWidget_GrabFocus_Call {
878- _c.Call.Return(run)
879- return _c
880-}
881-
882-// GtkWidget provides a mock function with no fields
883-func (_m *MockPanedWidget) GtkWidget() *gtk.Widget {
884- ret := _m.Called()
885-
886- if len(ret) == 0 {
887- panic("no return value specified for GtkWidget")
888- }
889-
890- var r0 *gtk.Widget
891- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
892- r0 = rf()
893- } else {
894- if ret.Get(0) != nil {
895- r0 = ret.Get(0).(*gtk.Widget)
896- }
897- }
898-
899- return r0
900-}
901-
902-// MockPanedWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
903-type MockPanedWidget_GtkWidget_Call struct {
904- *mock.Call
905-}
906-
907-// GtkWidget is a helper method to define mock.On call
908-func (_e *MockPanedWidget_Expecter) GtkWidget() *MockPanedWidget_GtkWidget_Call {
909- return &MockPanedWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
910-}
911-
912-func (_c *MockPanedWidget_GtkWidget_Call) Run(run func()) *MockPanedWidget_GtkWidget_Call {
913- _c.Call.Run(func(args mock.Arguments) {
914- run()
915- })
916- return _c
917-}
918-
919-func (_c *MockPanedWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockPanedWidget_GtkWidget_Call {
920- _c.Call.Return(_a0)
921- return _c
922-}
923-
924-func (_c *MockPanedWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockPanedWidget_GtkWidget_Call {
925- _c.Call.Return(run)
926- return _c
927-}
928-
929-// HasCssClass provides a mock function with given fields: cssClass
930-func (_m *MockPanedWidget) HasCssClass(cssClass string) bool {
931- ret := _m.Called(cssClass)
932-
933- if len(ret) == 0 {
934- panic("no return value specified for HasCssClass")
935- }
936-
937- var r0 bool
938- if rf, ok := ret.Get(0).(func(string) bool); ok {
939- r0 = rf(cssClass)
940- } else {
941- r0 = ret.Get(0).(bool)
942- }
943-
944- return r0
945-}
946-
947-// MockPanedWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
948-type MockPanedWidget_HasCssClass_Call struct {
949- *mock.Call
950-}
951-
952-// HasCssClass is a helper method to define mock.On call
953-// - cssClass string
954-func (_e *MockPanedWidget_Expecter) HasCssClass(cssClass interface{}) *MockPanedWidget_HasCssClass_Call {
955- return &MockPanedWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
956-}
957-
958-func (_c *MockPanedWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockPanedWidget_HasCssClass_Call {
959- _c.Call.Run(func(args mock.Arguments) {
960- run(args[0].(string))
961- })
962- return _c
963-}
964-
965-func (_c *MockPanedWidget_HasCssClass_Call) Return(_a0 bool) *MockPanedWidget_HasCssClass_Call {
966- _c.Call.Return(_a0)
967- return _c
968-}
969-
970-func (_c *MockPanedWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockPanedWidget_HasCssClass_Call {
971- _c.Call.Return(run)
972- return _c
973-}
974-
975-// HasFocus provides a mock function with no fields
976-func (_m *MockPanedWidget) HasFocus() bool {
977- ret := _m.Called()
978-
979- if len(ret) == 0 {
980- panic("no return value specified for HasFocus")
981- }
982-
983- var r0 bool
984- if rf, ok := ret.Get(0).(func() bool); ok {
985- r0 = rf()
986- } else {
987- r0 = ret.Get(0).(bool)
988- }
989-
990- return r0
991-}
992-
993-// MockPanedWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
994-type MockPanedWidget_HasFocus_Call struct {
995- *mock.Call
996-}
997-
998-// HasFocus is a helper method to define mock.On call
999-func (_e *MockPanedWidget_Expecter) HasFocus() *MockPanedWidget_HasFocus_Call {
1000- return &MockPanedWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
1001-}
1002-
1003-func (_c *MockPanedWidget_HasFocus_Call) Run(run func()) *MockPanedWidget_HasFocus_Call {
1004- _c.Call.Run(func(args mock.Arguments) {
1005- run()
1006- })
1007- return _c
1008-}
1009-
1010-func (_c *MockPanedWidget_HasFocus_Call) Return(_a0 bool) *MockPanedWidget_HasFocus_Call {
1011- _c.Call.Return(_a0)
1012- return _c
1013-}
1014-
1015-func (_c *MockPanedWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockPanedWidget_HasFocus_Call {
1016- _c.Call.Return(run)
1017- return _c
1018-}
1019-
1020-// Hide provides a mock function with no fields
1021-func (_m *MockPanedWidget) Hide() {
1022- _m.Called()
1023-}
1024-
1025-// MockPanedWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
1026-type MockPanedWidget_Hide_Call struct {
1027- *mock.Call
1028-}
1029-
1030-// Hide is a helper method to define mock.On call
1031-func (_e *MockPanedWidget_Expecter) Hide() *MockPanedWidget_Hide_Call {
1032- return &MockPanedWidget_Hide_Call{Call: _e.mock.On("Hide")}
1033-}
1034-
1035-func (_c *MockPanedWidget_Hide_Call) Run(run func()) *MockPanedWidget_Hide_Call {
1036- _c.Call.Run(func(args mock.Arguments) {
1037- run()
1038- })
1039- return _c
1040-}
1041-
1042-func (_c *MockPanedWidget_Hide_Call) Return() *MockPanedWidget_Hide_Call {
1043- _c.Call.Return()
1044- return _c
1045-}
1046-
1047-func (_c *MockPanedWidget_Hide_Call) RunAndReturn(run func()) *MockPanedWidget_Hide_Call {
1048- _c.Run(run)
1049- return _c
1050-}
1051-
1052-// IsVisible provides a mock function with no fields
1053-func (_m *MockPanedWidget) IsVisible() bool {
1054- ret := _m.Called()
1055-
1056- if len(ret) == 0 {
1057- panic("no return value specified for IsVisible")
1058- }
1059-
1060- var r0 bool
1061- if rf, ok := ret.Get(0).(func() bool); ok {
1062- r0 = rf()
1063- } else {
1064- r0 = ret.Get(0).(bool)
1065- }
1066-
1067- return r0
1068-}
1069-
1070-// MockPanedWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
1071-type MockPanedWidget_IsVisible_Call struct {
1072- *mock.Call
1073-}
1074-
1075-// IsVisible is a helper method to define mock.On call
1076-func (_e *MockPanedWidget_Expecter) IsVisible() *MockPanedWidget_IsVisible_Call {
1077- return &MockPanedWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
1078-}
1079-
1080-func (_c *MockPanedWidget_IsVisible_Call) Run(run func()) *MockPanedWidget_IsVisible_Call {
1081- _c.Call.Run(func(args mock.Arguments) {
1082- run()
1083- })
1084- return _c
1085-}
1086-
1087-func (_c *MockPanedWidget_IsVisible_Call) Return(_a0 bool) *MockPanedWidget_IsVisible_Call {
1088- _c.Call.Return(_a0)
1089- return _c
1090-}
1091-
1092-func (_c *MockPanedWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockPanedWidget_IsVisible_Call {
1093- _c.Call.Return(run)
1094- return _c
1095-}
1096-
1097-// RemoveCssClass provides a mock function with given fields: cssClass
1098-func (_m *MockPanedWidget) RemoveCssClass(cssClass string) {
1099- _m.Called(cssClass)
1100-}
1101-
1102-// MockPanedWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
1103-type MockPanedWidget_RemoveCssClass_Call struct {
1104- *mock.Call
1105-}
1106-
1107-// RemoveCssClass is a helper method to define mock.On call
1108-// - cssClass string
1109-func (_e *MockPanedWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockPanedWidget_RemoveCssClass_Call {
1110- return &MockPanedWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
1111-}
1112-
1113-func (_c *MockPanedWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockPanedWidget_RemoveCssClass_Call {
1114- _c.Call.Run(func(args mock.Arguments) {
1115- run(args[0].(string))
1116- })
1117- return _c
1118-}
1119-
1120-func (_c *MockPanedWidget_RemoveCssClass_Call) Return() *MockPanedWidget_RemoveCssClass_Call {
1121- _c.Call.Return()
1122- return _c
1123-}
1124-
1125-func (_c *MockPanedWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockPanedWidget_RemoveCssClass_Call {
1126- _c.Run(run)
1127- return _c
1128-}
1129-
1130-// SetCanFocus provides a mock function with given fields: canFocus
1131-func (_m *MockPanedWidget) SetCanFocus(canFocus bool) {
1132- _m.Called(canFocus)
1133-}
1134-
1135-// MockPanedWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
1136-type MockPanedWidget_SetCanFocus_Call struct {
1137- *mock.Call
1138-}
1139-
1140-// SetCanFocus is a helper method to define mock.On call
1141-// - canFocus bool
1142-func (_e *MockPanedWidget_Expecter) SetCanFocus(canFocus interface{}) *MockPanedWidget_SetCanFocus_Call {
1143- return &MockPanedWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
1144-}
1145-
1146-func (_c *MockPanedWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockPanedWidget_SetCanFocus_Call {
1147- _c.Call.Run(func(args mock.Arguments) {
1148- run(args[0].(bool))
1149- })
1150- return _c
1151-}
1152-
1153-func (_c *MockPanedWidget_SetCanFocus_Call) Return() *MockPanedWidget_SetCanFocus_Call {
1154- _c.Call.Return()
1155- return _c
1156-}
1157-
1158-func (_c *MockPanedWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetCanFocus_Call {
1159- _c.Run(run)
1160- return _c
1161-}
1162-
1163-// SetCanTarget provides a mock function with given fields: canTarget
1164-func (_m *MockPanedWidget) SetCanTarget(canTarget bool) {
1165- _m.Called(canTarget)
1166-}
1167-
1168-// MockPanedWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
1169-type MockPanedWidget_SetCanTarget_Call struct {
1170- *mock.Call
1171-}
1172-
1173-// SetCanTarget is a helper method to define mock.On call
1174-// - canTarget bool
1175-func (_e *MockPanedWidget_Expecter) SetCanTarget(canTarget interface{}) *MockPanedWidget_SetCanTarget_Call {
1176- return &MockPanedWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
1177-}
1178-
1179-func (_c *MockPanedWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockPanedWidget_SetCanTarget_Call {
1180- _c.Call.Run(func(args mock.Arguments) {
1181- run(args[0].(bool))
1182- })
1183- return _c
1184-}
1185-
1186-func (_c *MockPanedWidget_SetCanTarget_Call) Return() *MockPanedWidget_SetCanTarget_Call {
1187- _c.Call.Return()
1188- return _c
1189-}
1190-
1191-func (_c *MockPanedWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetCanTarget_Call {
1192- _c.Run(run)
1193- return _c
1194-}
1195-
1196-// SetEndChild provides a mock function with given fields: child
1197-func (_m *MockPanedWidget) SetEndChild(child layout.Widget) {
1198- _m.Called(child)
1199-}
1200-
1201-// MockPanedWidget_SetEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEndChild'
1202-type MockPanedWidget_SetEndChild_Call struct {
1203- *mock.Call
1204-}
1205-
1206-// SetEndChild is a helper method to define mock.On call
1207-// - child layout.Widget
1208-func (_e *MockPanedWidget_Expecter) SetEndChild(child interface{}) *MockPanedWidget_SetEndChild_Call {
1209- return &MockPanedWidget_SetEndChild_Call{Call: _e.mock.On("SetEndChild", child)}
1210-}
1211-
1212-func (_c *MockPanedWidget_SetEndChild_Call) Run(run func(child layout.Widget)) *MockPanedWidget_SetEndChild_Call {
1213- _c.Call.Run(func(args mock.Arguments) {
1214- run(args[0].(layout.Widget))
1215- })
1216- return _c
1217-}
1218-
1219-func (_c *MockPanedWidget_SetEndChild_Call) Return() *MockPanedWidget_SetEndChild_Call {
1220- _c.Call.Return()
1221- return _c
1222-}
1223-
1224-func (_c *MockPanedWidget_SetEndChild_Call) RunAndReturn(run func(layout.Widget)) *MockPanedWidget_SetEndChild_Call {
1225- _c.Run(run)
1226- return _c
1227-}
1228-
1229-// SetFocusOnClick provides a mock function with given fields: focusOnClick
1230-func (_m *MockPanedWidget) SetFocusOnClick(focusOnClick bool) {
1231- _m.Called(focusOnClick)
1232-}
1233-
1234-// MockPanedWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
1235-type MockPanedWidget_SetFocusOnClick_Call struct {
1236- *mock.Call
1237-}
1238-
1239-// SetFocusOnClick is a helper method to define mock.On call
1240-// - focusOnClick bool
1241-func (_e *MockPanedWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockPanedWidget_SetFocusOnClick_Call {
1242- return &MockPanedWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
1243-}
1244-
1245-func (_c *MockPanedWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockPanedWidget_SetFocusOnClick_Call {
1246- _c.Call.Run(func(args mock.Arguments) {
1247- run(args[0].(bool))
1248- })
1249- return _c
1250-}
1251-
1252-func (_c *MockPanedWidget_SetFocusOnClick_Call) Return() *MockPanedWidget_SetFocusOnClick_Call {
1253- _c.Call.Return()
1254- return _c
1255-}
1256-
1257-func (_c *MockPanedWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetFocusOnClick_Call {
1258- _c.Run(run)
1259- return _c
1260-}
1261-
1262-// SetHalign provides a mock function with given fields: align
1263-func (_m *MockPanedWidget) SetHalign(align gtk.Align) {
1264- _m.Called(align)
1265-}
1266-
1267-// MockPanedWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
1268-type MockPanedWidget_SetHalign_Call struct {
1269- *mock.Call
1270-}
1271-
1272-// SetHalign is a helper method to define mock.On call
1273-// - align gtk.Align
1274-func (_e *MockPanedWidget_Expecter) SetHalign(align interface{}) *MockPanedWidget_SetHalign_Call {
1275- return &MockPanedWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
1276-}
1277-
1278-func (_c *MockPanedWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockPanedWidget_SetHalign_Call {
1279- _c.Call.Run(func(args mock.Arguments) {
1280- run(args[0].(gtk.Align))
1281- })
1282- return _c
1283-}
1284-
1285-func (_c *MockPanedWidget_SetHalign_Call) Return() *MockPanedWidget_SetHalign_Call {
1286- _c.Call.Return()
1287- return _c
1288-}
1289-
1290-func (_c *MockPanedWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockPanedWidget_SetHalign_Call {
1291- _c.Run(run)
1292- return _c
1293-}
1294-
1295-// SetHexpand provides a mock function with given fields: expand
1296-func (_m *MockPanedWidget) SetHexpand(expand bool) {
1297- _m.Called(expand)
1298-}
1299-
1300-// MockPanedWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
1301-type MockPanedWidget_SetHexpand_Call struct {
1302- *mock.Call
1303-}
1304-
1305-// SetHexpand is a helper method to define mock.On call
1306-// - expand bool
1307-func (_e *MockPanedWidget_Expecter) SetHexpand(expand interface{}) *MockPanedWidget_SetHexpand_Call {
1308- return &MockPanedWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
1309-}
1310-
1311-func (_c *MockPanedWidget_SetHexpand_Call) Run(run func(expand bool)) *MockPanedWidget_SetHexpand_Call {
1312- _c.Call.Run(func(args mock.Arguments) {
1313- run(args[0].(bool))
1314- })
1315- return _c
1316-}
1317-
1318-func (_c *MockPanedWidget_SetHexpand_Call) Return() *MockPanedWidget_SetHexpand_Call {
1319- _c.Call.Return()
1320- return _c
1321-}
1322-
1323-func (_c *MockPanedWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetHexpand_Call {
1324- _c.Run(run)
1325- return _c
1326-}
1327-
1328-// SetPosition provides a mock function with given fields: position
1329-func (_m *MockPanedWidget) SetPosition(position int) {
1330- _m.Called(position)
1331-}
1332-
1333-// MockPanedWidget_SetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPosition'
1334-type MockPanedWidget_SetPosition_Call struct {
1335- *mock.Call
1336-}
1337-
1338-// SetPosition is a helper method to define mock.On call
1339-// - position int
1340-func (_e *MockPanedWidget_Expecter) SetPosition(position interface{}) *MockPanedWidget_SetPosition_Call {
1341- return &MockPanedWidget_SetPosition_Call{Call: _e.mock.On("SetPosition", position)}
1342-}
1343-
1344-func (_c *MockPanedWidget_SetPosition_Call) Run(run func(position int)) *MockPanedWidget_SetPosition_Call {
1345- _c.Call.Run(func(args mock.Arguments) {
1346- run(args[0].(int))
1347- })
1348- return _c
1349-}
1350-
1351-func (_c *MockPanedWidget_SetPosition_Call) Return() *MockPanedWidget_SetPosition_Call {
1352- _c.Call.Return()
1353- return _c
1354-}
1355-
1356-func (_c *MockPanedWidget_SetPosition_Call) RunAndReturn(run func(int)) *MockPanedWidget_SetPosition_Call {
1357- _c.Run(run)
1358- return _c
1359-}
1360-
1361-// SetResizeEndChild provides a mock function with given fields: resize
1362-func (_m *MockPanedWidget) SetResizeEndChild(resize bool) {
1363- _m.Called(resize)
1364-}
1365-
1366-// MockPanedWidget_SetResizeEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetResizeEndChild'
1367-type MockPanedWidget_SetResizeEndChild_Call struct {
1368- *mock.Call
1369-}
1370-
1371-// SetResizeEndChild is a helper method to define mock.On call
1372-// - resize bool
1373-func (_e *MockPanedWidget_Expecter) SetResizeEndChild(resize interface{}) *MockPanedWidget_SetResizeEndChild_Call {
1374- return &MockPanedWidget_SetResizeEndChild_Call{Call: _e.mock.On("SetResizeEndChild", resize)}
1375-}
1376-
1377-func (_c *MockPanedWidget_SetResizeEndChild_Call) Run(run func(resize bool)) *MockPanedWidget_SetResizeEndChild_Call {
1378- _c.Call.Run(func(args mock.Arguments) {
1379- run(args[0].(bool))
1380- })
1381- return _c
1382-}
1383-
1384-func (_c *MockPanedWidget_SetResizeEndChild_Call) Return() *MockPanedWidget_SetResizeEndChild_Call {
1385- _c.Call.Return()
1386- return _c
1387-}
1388-
1389-func (_c *MockPanedWidget_SetResizeEndChild_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetResizeEndChild_Call {
1390- _c.Run(run)
1391- return _c
1392-}
1393-
1394-// SetResizeStartChild provides a mock function with given fields: resize
1395-func (_m *MockPanedWidget) SetResizeStartChild(resize bool) {
1396- _m.Called(resize)
1397-}
1398-
1399-// MockPanedWidget_SetResizeStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetResizeStartChild'
1400-type MockPanedWidget_SetResizeStartChild_Call struct {
1401- *mock.Call
1402-}
1403-
1404-// SetResizeStartChild is a helper method to define mock.On call
1405-// - resize bool
1406-func (_e *MockPanedWidget_Expecter) SetResizeStartChild(resize interface{}) *MockPanedWidget_SetResizeStartChild_Call {
1407- return &MockPanedWidget_SetResizeStartChild_Call{Call: _e.mock.On("SetResizeStartChild", resize)}
1408-}
1409-
1410-func (_c *MockPanedWidget_SetResizeStartChild_Call) Run(run func(resize bool)) *MockPanedWidget_SetResizeStartChild_Call {
1411- _c.Call.Run(func(args mock.Arguments) {
1412- run(args[0].(bool))
1413- })
1414- return _c
1415-}
1416-
1417-func (_c *MockPanedWidget_SetResizeStartChild_Call) Return() *MockPanedWidget_SetResizeStartChild_Call {
1418- _c.Call.Return()
1419- return _c
1420-}
1421-
1422-func (_c *MockPanedWidget_SetResizeStartChild_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetResizeStartChild_Call {
1423- _c.Run(run)
1424- return _c
1425-}
1426-
1427-// SetShrinkEndChild provides a mock function with given fields: shrink
1428-func (_m *MockPanedWidget) SetShrinkEndChild(shrink bool) {
1429- _m.Called(shrink)
1430-}
1431-
1432-// MockPanedWidget_SetShrinkEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetShrinkEndChild'
1433-type MockPanedWidget_SetShrinkEndChild_Call struct {
1434- *mock.Call
1435-}
1436-
1437-// SetShrinkEndChild is a helper method to define mock.On call
1438-// - shrink bool
1439-func (_e *MockPanedWidget_Expecter) SetShrinkEndChild(shrink interface{}) *MockPanedWidget_SetShrinkEndChild_Call {
1440- return &MockPanedWidget_SetShrinkEndChild_Call{Call: _e.mock.On("SetShrinkEndChild", shrink)}
1441-}
1442-
1443-func (_c *MockPanedWidget_SetShrinkEndChild_Call) Run(run func(shrink bool)) *MockPanedWidget_SetShrinkEndChild_Call {
1444- _c.Call.Run(func(args mock.Arguments) {
1445- run(args[0].(bool))
1446- })
1447- return _c
1448-}
1449-
1450-func (_c *MockPanedWidget_SetShrinkEndChild_Call) Return() *MockPanedWidget_SetShrinkEndChild_Call {
1451- _c.Call.Return()
1452- return _c
1453-}
1454-
1455-func (_c *MockPanedWidget_SetShrinkEndChild_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetShrinkEndChild_Call {
1456- _c.Run(run)
1457- return _c
1458-}
1459-
1460-// SetShrinkStartChild provides a mock function with given fields: shrink
1461-func (_m *MockPanedWidget) SetShrinkStartChild(shrink bool) {
1462- _m.Called(shrink)
1463-}
1464-
1465-// MockPanedWidget_SetShrinkStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetShrinkStartChild'
1466-type MockPanedWidget_SetShrinkStartChild_Call struct {
1467- *mock.Call
1468-}
1469-
1470-// SetShrinkStartChild is a helper method to define mock.On call
1471-// - shrink bool
1472-func (_e *MockPanedWidget_Expecter) SetShrinkStartChild(shrink interface{}) *MockPanedWidget_SetShrinkStartChild_Call {
1473- return &MockPanedWidget_SetShrinkStartChild_Call{Call: _e.mock.On("SetShrinkStartChild", shrink)}
1474-}
1475-
1476-func (_c *MockPanedWidget_SetShrinkStartChild_Call) Run(run func(shrink bool)) *MockPanedWidget_SetShrinkStartChild_Call {
1477- _c.Call.Run(func(args mock.Arguments) {
1478- run(args[0].(bool))
1479- })
1480- return _c
1481-}
1482-
1483-func (_c *MockPanedWidget_SetShrinkStartChild_Call) Return() *MockPanedWidget_SetShrinkStartChild_Call {
1484- _c.Call.Return()
1485- return _c
1486-}
1487-
1488-func (_c *MockPanedWidget_SetShrinkStartChild_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetShrinkStartChild_Call {
1489- _c.Run(run)
1490- return _c
1491-}
1492-
1493-// SetSizeRequest provides a mock function with given fields: width, height
1494-func (_m *MockPanedWidget) SetSizeRequest(width int, height int) {
1495- _m.Called(width, height)
1496-}
1497-
1498-// MockPanedWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
1499-type MockPanedWidget_SetSizeRequest_Call struct {
1500- *mock.Call
1501-}
1502-
1503-// SetSizeRequest is a helper method to define mock.On call
1504-// - width int
1505-// - height int
1506-func (_e *MockPanedWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockPanedWidget_SetSizeRequest_Call {
1507- return &MockPanedWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
1508-}
1509-
1510-func (_c *MockPanedWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockPanedWidget_SetSizeRequest_Call {
1511- _c.Call.Run(func(args mock.Arguments) {
1512- run(args[0].(int), args[1].(int))
1513- })
1514- return _c
1515-}
1516-
1517-func (_c *MockPanedWidget_SetSizeRequest_Call) Return() *MockPanedWidget_SetSizeRequest_Call {
1518- _c.Call.Return()
1519- return _c
1520-}
1521-
1522-func (_c *MockPanedWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockPanedWidget_SetSizeRequest_Call {
1523- _c.Run(run)
1524- return _c
1525-}
1526-
1527-// SetStartChild provides a mock function with given fields: child
1528-func (_m *MockPanedWidget) SetStartChild(child layout.Widget) {
1529- _m.Called(child)
1530-}
1531-
1532-// MockPanedWidget_SetStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStartChild'
1533-type MockPanedWidget_SetStartChild_Call struct {
1534- *mock.Call
1535-}
1536-
1537-// SetStartChild is a helper method to define mock.On call
1538-// - child layout.Widget
1539-func (_e *MockPanedWidget_Expecter) SetStartChild(child interface{}) *MockPanedWidget_SetStartChild_Call {
1540- return &MockPanedWidget_SetStartChild_Call{Call: _e.mock.On("SetStartChild", child)}
1541-}
1542-
1543-func (_c *MockPanedWidget_SetStartChild_Call) Run(run func(child layout.Widget)) *MockPanedWidget_SetStartChild_Call {
1544- _c.Call.Run(func(args mock.Arguments) {
1545- run(args[0].(layout.Widget))
1546- })
1547- return _c
1548-}
1549-
1550-func (_c *MockPanedWidget_SetStartChild_Call) Return() *MockPanedWidget_SetStartChild_Call {
1551- _c.Call.Return()
1552- return _c
1553-}
1554-
1555-func (_c *MockPanedWidget_SetStartChild_Call) RunAndReturn(run func(layout.Widget)) *MockPanedWidget_SetStartChild_Call {
1556- _c.Run(run)
1557- return _c
1558-}
1559-
1560-// SetValign provides a mock function with given fields: align
1561-func (_m *MockPanedWidget) SetValign(align gtk.Align) {
1562- _m.Called(align)
1563-}
1564-
1565-// MockPanedWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1566-type MockPanedWidget_SetValign_Call struct {
1567- *mock.Call
1568-}
1569-
1570-// SetValign is a helper method to define mock.On call
1571-// - align gtk.Align
1572-func (_e *MockPanedWidget_Expecter) SetValign(align interface{}) *MockPanedWidget_SetValign_Call {
1573- return &MockPanedWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1574-}
1575-
1576-func (_c *MockPanedWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockPanedWidget_SetValign_Call {
1577- _c.Call.Run(func(args mock.Arguments) {
1578- run(args[0].(gtk.Align))
1579- })
1580- return _c
1581-}
1582-
1583-func (_c *MockPanedWidget_SetValign_Call) Return() *MockPanedWidget_SetValign_Call {
1584- _c.Call.Return()
1585- return _c
1586-}
1587-
1588-func (_c *MockPanedWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockPanedWidget_SetValign_Call {
1589- _c.Run(run)
1590- return _c
1591-}
1592-
1593-// SetVexpand provides a mock function with given fields: expand
1594-func (_m *MockPanedWidget) SetVexpand(expand bool) {
1595- _m.Called(expand)
1596-}
1597-
1598-// MockPanedWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1599-type MockPanedWidget_SetVexpand_Call struct {
1600- *mock.Call
1601-}
1602-
1603-// SetVexpand is a helper method to define mock.On call
1604-// - expand bool
1605-func (_e *MockPanedWidget_Expecter) SetVexpand(expand interface{}) *MockPanedWidget_SetVexpand_Call {
1606- return &MockPanedWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1607-}
1608-
1609-func (_c *MockPanedWidget_SetVexpand_Call) Run(run func(expand bool)) *MockPanedWidget_SetVexpand_Call {
1610- _c.Call.Run(func(args mock.Arguments) {
1611- run(args[0].(bool))
1612- })
1613- return _c
1614-}
1615-
1616-func (_c *MockPanedWidget_SetVexpand_Call) Return() *MockPanedWidget_SetVexpand_Call {
1617- _c.Call.Return()
1618- return _c
1619-}
1620-
1621-func (_c *MockPanedWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetVexpand_Call {
1622- _c.Run(run)
1623- return _c
1624-}
1625-
1626-// SetVisible provides a mock function with given fields: visible
1627-func (_m *MockPanedWidget) SetVisible(visible bool) {
1628- _m.Called(visible)
1629-}
1630-
1631-// MockPanedWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1632-type MockPanedWidget_SetVisible_Call struct {
1633- *mock.Call
1634-}
1635-
1636-// SetVisible is a helper method to define mock.On call
1637-// - visible bool
1638-func (_e *MockPanedWidget_Expecter) SetVisible(visible interface{}) *MockPanedWidget_SetVisible_Call {
1639- return &MockPanedWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1640-}
1641-
1642-func (_c *MockPanedWidget_SetVisible_Call) Run(run func(visible bool)) *MockPanedWidget_SetVisible_Call {
1643- _c.Call.Run(func(args mock.Arguments) {
1644- run(args[0].(bool))
1645- })
1646- return _c
1647-}
1648-
1649-func (_c *MockPanedWidget_SetVisible_Call) Return() *MockPanedWidget_SetVisible_Call {
1650- _c.Call.Return()
1651- return _c
1652-}
1653-
1654-func (_c *MockPanedWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetVisible_Call {
1655- _c.Run(run)
1656- return _c
1657-}
1658-
1659-// SetWideHandle provides a mock function with given fields: wide
1660-func (_m *MockPanedWidget) SetWideHandle(wide bool) {
1661- _m.Called(wide)
1662-}
1663-
1664-// MockPanedWidget_SetWideHandle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetWideHandle'
1665-type MockPanedWidget_SetWideHandle_Call struct {
1666- *mock.Call
1667-}
1668-
1669-// SetWideHandle is a helper method to define mock.On call
1670-// - wide bool
1671-func (_e *MockPanedWidget_Expecter) SetWideHandle(wide interface{}) *MockPanedWidget_SetWideHandle_Call {
1672- return &MockPanedWidget_SetWideHandle_Call{Call: _e.mock.On("SetWideHandle", wide)}
1673-}
1674-
1675-func (_c *MockPanedWidget_SetWideHandle_Call) Run(run func(wide bool)) *MockPanedWidget_SetWideHandle_Call {
1676- _c.Call.Run(func(args mock.Arguments) {
1677- run(args[0].(bool))
1678- })
1679- return _c
1680-}
1681-
1682-func (_c *MockPanedWidget_SetWideHandle_Call) Return() *MockPanedWidget_SetWideHandle_Call {
1683- _c.Call.Return()
1684- return _c
1685-}
1686-
1687-func (_c *MockPanedWidget_SetWideHandle_Call) RunAndReturn(run func(bool)) *MockPanedWidget_SetWideHandle_Call {
1688- _c.Run(run)
1689- return _c
1690-}
1691-
1692-// Show provides a mock function with no fields
1693-func (_m *MockPanedWidget) Show() {
1694- _m.Called()
1695-}
1696-
1697-// MockPanedWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1698-type MockPanedWidget_Show_Call struct {
1699- *mock.Call
1700-}
1701-
1702-// Show is a helper method to define mock.On call
1703-func (_e *MockPanedWidget_Expecter) Show() *MockPanedWidget_Show_Call {
1704- return &MockPanedWidget_Show_Call{Call: _e.mock.On("Show")}
1705-}
1706-
1707-func (_c *MockPanedWidget_Show_Call) Run(run func()) *MockPanedWidget_Show_Call {
1708- _c.Call.Run(func(args mock.Arguments) {
1709- run()
1710- })
1711- return _c
1712-}
1713-
1714-func (_c *MockPanedWidget_Show_Call) Return() *MockPanedWidget_Show_Call {
1715- _c.Call.Return()
1716- return _c
1717-}
1718-
1719-func (_c *MockPanedWidget_Show_Call) RunAndReturn(run func()) *MockPanedWidget_Show_Call {
1720- _c.Run(run)
1721- return _c
1722-}
1723-
1724-// Unparent provides a mock function with no fields
1725-func (_m *MockPanedWidget) Unparent() {
1726- _m.Called()
1727-}
1728-
1729-// MockPanedWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1730-type MockPanedWidget_Unparent_Call struct {
1731- *mock.Call
1732-}
1733-
1734-// Unparent is a helper method to define mock.On call
1735-func (_e *MockPanedWidget_Expecter) Unparent() *MockPanedWidget_Unparent_Call {
1736- return &MockPanedWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1737-}
1738-
1739-func (_c *MockPanedWidget_Unparent_Call) Run(run func()) *MockPanedWidget_Unparent_Call {
1740- _c.Call.Run(func(args mock.Arguments) {
1741- run()
1742- })
1743- return _c
1744-}
1745-
1746-func (_c *MockPanedWidget_Unparent_Call) Return() *MockPanedWidget_Unparent_Call {
1747- _c.Call.Return()
1748- return _c
1749-}
1750-
1751-func (_c *MockPanedWidget_Unparent_Call) RunAndReturn(run func()) *MockPanedWidget_Unparent_Call {
1752- _c.Run(run)
1753- return _c
1754-}
1755-
1756-// NewMockPanedWidget creates a new instance of MockPanedWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1757-// The first argument is typically a *testing.T value.
1758-func NewMockPanedWidget(t interface {
1759- mock.TestingT
1760- Cleanup(func())
1761-}) *MockPanedWidget {
1762- mock := &MockPanedWidget{}
1763- mock.Mock.Test(t)
1764-
1765- t.Cleanup(func() { mock.AssertExpectations(t) })
1766-
1767- return mock
1768-}
D internal/ui/layout/mocks/mock_progress_bar_widget.go +0 -1126
@@ -1,1126 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockProgressBarWidget is an autogenerated mock type for the ProgressBarWidget type
13-type MockProgressBarWidget struct {
14- mock.Mock
15-}
16-
17-type MockProgressBarWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockProgressBarWidget) EXPECT() *MockProgressBarWidget_Expecter {
22- return &MockProgressBarWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockProgressBarWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockProgressBarWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockProgressBarWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockProgressBarWidget_Expecter) AddController(controller interface{}) *MockProgressBarWidget_AddController_Call {
38- return &MockProgressBarWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockProgressBarWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockProgressBarWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockProgressBarWidget_AddController_Call) Return() *MockProgressBarWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockProgressBarWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockProgressBarWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockProgressBarWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockProgressBarWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockProgressBarWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockProgressBarWidget_Expecter) AddCssClass(cssClass interface{}) *MockProgressBarWidget_AddCssClass_Call {
71- return &MockProgressBarWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockProgressBarWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockProgressBarWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockProgressBarWidget_AddCssClass_Call) Return() *MockProgressBarWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockProgressBarWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockProgressBarWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// ComputePoint provides a mock function with given fields: target
92-func (_m *MockProgressBarWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
93- ret := _m.Called(target)
94-
95- if len(ret) == 0 {
96- panic("no return value specified for ComputePoint")
97- }
98-
99- var r0 float64
100- var r1 float64
101- var r2 bool
102- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
103- return rf(target)
104- }
105- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
106- r0 = rf(target)
107- } else {
108- r0 = ret.Get(0).(float64)
109- }
110-
111- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
112- r1 = rf(target)
113- } else {
114- r1 = ret.Get(1).(float64)
115- }
116-
117- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
118- r2 = rf(target)
119- } else {
120- r2 = ret.Get(2).(bool)
121- }
122-
123- return r0, r1, r2
124-}
125-
126-// MockProgressBarWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
127-type MockProgressBarWidget_ComputePoint_Call struct {
128- *mock.Call
129-}
130-
131-// ComputePoint is a helper method to define mock.On call
132-// - target layout.Widget
133-func (_e *MockProgressBarWidget_Expecter) ComputePoint(target interface{}) *MockProgressBarWidget_ComputePoint_Call {
134- return &MockProgressBarWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
135-}
136-
137-func (_c *MockProgressBarWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockProgressBarWidget_ComputePoint_Call {
138- _c.Call.Run(func(args mock.Arguments) {
139- run(args[0].(layout.Widget))
140- })
141- return _c
142-}
143-
144-func (_c *MockProgressBarWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockProgressBarWidget_ComputePoint_Call {
145- _c.Call.Return(x, y, ok)
146- return _c
147-}
148-
149-func (_c *MockProgressBarWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockProgressBarWidget_ComputePoint_Call {
150- _c.Call.Return(run)
151- return _c
152-}
153-
154-// GetAllocatedHeight provides a mock function with no fields
155-func (_m *MockProgressBarWidget) GetAllocatedHeight() int {
156- ret := _m.Called()
157-
158- if len(ret) == 0 {
159- panic("no return value specified for GetAllocatedHeight")
160- }
161-
162- var r0 int
163- if rf, ok := ret.Get(0).(func() int); ok {
164- r0 = rf()
165- } else {
166- r0 = ret.Get(0).(int)
167- }
168-
169- return r0
170-}
171-
172-// MockProgressBarWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
173-type MockProgressBarWidget_GetAllocatedHeight_Call struct {
174- *mock.Call
175-}
176-
177-// GetAllocatedHeight is a helper method to define mock.On call
178-func (_e *MockProgressBarWidget_Expecter) GetAllocatedHeight() *MockProgressBarWidget_GetAllocatedHeight_Call {
179- return &MockProgressBarWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
180-}
181-
182-func (_c *MockProgressBarWidget_GetAllocatedHeight_Call) Run(run func()) *MockProgressBarWidget_GetAllocatedHeight_Call {
183- _c.Call.Run(func(args mock.Arguments) {
184- run()
185- })
186- return _c
187-}
188-
189-func (_c *MockProgressBarWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockProgressBarWidget_GetAllocatedHeight_Call {
190- _c.Call.Return(_a0)
191- return _c
192-}
193-
194-func (_c *MockProgressBarWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockProgressBarWidget_GetAllocatedHeight_Call {
195- _c.Call.Return(run)
196- return _c
197-}
198-
199-// GetAllocatedWidth provides a mock function with no fields
200-func (_m *MockProgressBarWidget) GetAllocatedWidth() int {
201- ret := _m.Called()
202-
203- if len(ret) == 0 {
204- panic("no return value specified for GetAllocatedWidth")
205- }
206-
207- var r0 int
208- if rf, ok := ret.Get(0).(func() int); ok {
209- r0 = rf()
210- } else {
211- r0 = ret.Get(0).(int)
212- }
213-
214- return r0
215-}
216-
217-// MockProgressBarWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
218-type MockProgressBarWidget_GetAllocatedWidth_Call struct {
219- *mock.Call
220-}
221-
222-// GetAllocatedWidth is a helper method to define mock.On call
223-func (_e *MockProgressBarWidget_Expecter) GetAllocatedWidth() *MockProgressBarWidget_GetAllocatedWidth_Call {
224- return &MockProgressBarWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
225-}
226-
227-func (_c *MockProgressBarWidget_GetAllocatedWidth_Call) Run(run func()) *MockProgressBarWidget_GetAllocatedWidth_Call {
228- _c.Call.Run(func(args mock.Arguments) {
229- run()
230- })
231- return _c
232-}
233-
234-func (_c *MockProgressBarWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockProgressBarWidget_GetAllocatedWidth_Call {
235- _c.Call.Return(_a0)
236- return _c
237-}
238-
239-func (_c *MockProgressBarWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockProgressBarWidget_GetAllocatedWidth_Call {
240- _c.Call.Return(run)
241- return _c
242-}
243-
244-// GetFraction provides a mock function with no fields
245-func (_m *MockProgressBarWidget) GetFraction() float64 {
246- ret := _m.Called()
247-
248- if len(ret) == 0 {
249- panic("no return value specified for GetFraction")
250- }
251-
252- var r0 float64
253- if rf, ok := ret.Get(0).(func() float64); ok {
254- r0 = rf()
255- } else {
256- r0 = ret.Get(0).(float64)
257- }
258-
259- return r0
260-}
261-
262-// MockProgressBarWidget_GetFraction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFraction'
263-type MockProgressBarWidget_GetFraction_Call struct {
264- *mock.Call
265-}
266-
267-// GetFraction is a helper method to define mock.On call
268-func (_e *MockProgressBarWidget_Expecter) GetFraction() *MockProgressBarWidget_GetFraction_Call {
269- return &MockProgressBarWidget_GetFraction_Call{Call: _e.mock.On("GetFraction")}
270-}
271-
272-func (_c *MockProgressBarWidget_GetFraction_Call) Run(run func()) *MockProgressBarWidget_GetFraction_Call {
273- _c.Call.Run(func(args mock.Arguments) {
274- run()
275- })
276- return _c
277-}
278-
279-func (_c *MockProgressBarWidget_GetFraction_Call) Return(_a0 float64) *MockProgressBarWidget_GetFraction_Call {
280- _c.Call.Return(_a0)
281- return _c
282-}
283-
284-func (_c *MockProgressBarWidget_GetFraction_Call) RunAndReturn(run func() float64) *MockProgressBarWidget_GetFraction_Call {
285- _c.Call.Return(run)
286- return _c
287-}
288-
289-// GetHexpand provides a mock function with no fields
290-func (_m *MockProgressBarWidget) GetHexpand() bool {
291- ret := _m.Called()
292-
293- if len(ret) == 0 {
294- panic("no return value specified for GetHexpand")
295- }
296-
297- var r0 bool
298- if rf, ok := ret.Get(0).(func() bool); ok {
299- r0 = rf()
300- } else {
301- r0 = ret.Get(0).(bool)
302- }
303-
304- return r0
305-}
306-
307-// MockProgressBarWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
308-type MockProgressBarWidget_GetHexpand_Call struct {
309- *mock.Call
310-}
311-
312-// GetHexpand is a helper method to define mock.On call
313-func (_e *MockProgressBarWidget_Expecter) GetHexpand() *MockProgressBarWidget_GetHexpand_Call {
314- return &MockProgressBarWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
315-}
316-
317-func (_c *MockProgressBarWidget_GetHexpand_Call) Run(run func()) *MockProgressBarWidget_GetHexpand_Call {
318- _c.Call.Run(func(args mock.Arguments) {
319- run()
320- })
321- return _c
322-}
323-
324-func (_c *MockProgressBarWidget_GetHexpand_Call) Return(_a0 bool) *MockProgressBarWidget_GetHexpand_Call {
325- _c.Call.Return(_a0)
326- return _c
327-}
328-
329-func (_c *MockProgressBarWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_GetHexpand_Call {
330- _c.Call.Return(run)
331- return _c
332-}
333-
334-// GetParent provides a mock function with no fields
335-func (_m *MockProgressBarWidget) GetParent() layout.Widget {
336- ret := _m.Called()
337-
338- if len(ret) == 0 {
339- panic("no return value specified for GetParent")
340- }
341-
342- var r0 layout.Widget
343- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
344- r0 = rf()
345- } else {
346- if ret.Get(0) != nil {
347- r0 = ret.Get(0).(layout.Widget)
348- }
349- }
350-
351- return r0
352-}
353-
354-// MockProgressBarWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
355-type MockProgressBarWidget_GetParent_Call struct {
356- *mock.Call
357-}
358-
359-// GetParent is a helper method to define mock.On call
360-func (_e *MockProgressBarWidget_Expecter) GetParent() *MockProgressBarWidget_GetParent_Call {
361- return &MockProgressBarWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
362-}
363-
364-func (_c *MockProgressBarWidget_GetParent_Call) Run(run func()) *MockProgressBarWidget_GetParent_Call {
365- _c.Call.Run(func(args mock.Arguments) {
366- run()
367- })
368- return _c
369-}
370-
371-func (_c *MockProgressBarWidget_GetParent_Call) Return(_a0 layout.Widget) *MockProgressBarWidget_GetParent_Call {
372- _c.Call.Return(_a0)
373- return _c
374-}
375-
376-func (_c *MockProgressBarWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockProgressBarWidget_GetParent_Call {
377- _c.Call.Return(run)
378- return _c
379-}
380-
381-// GetVexpand provides a mock function with no fields
382-func (_m *MockProgressBarWidget) GetVexpand() bool {
383- ret := _m.Called()
384-
385- if len(ret) == 0 {
386- panic("no return value specified for GetVexpand")
387- }
388-
389- var r0 bool
390- if rf, ok := ret.Get(0).(func() bool); ok {
391- r0 = rf()
392- } else {
393- r0 = ret.Get(0).(bool)
394- }
395-
396- return r0
397-}
398-
399-// MockProgressBarWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
400-type MockProgressBarWidget_GetVexpand_Call struct {
401- *mock.Call
402-}
403-
404-// GetVexpand is a helper method to define mock.On call
405-func (_e *MockProgressBarWidget_Expecter) GetVexpand() *MockProgressBarWidget_GetVexpand_Call {
406- return &MockProgressBarWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
407-}
408-
409-func (_c *MockProgressBarWidget_GetVexpand_Call) Run(run func()) *MockProgressBarWidget_GetVexpand_Call {
410- _c.Call.Run(func(args mock.Arguments) {
411- run()
412- })
413- return _c
414-}
415-
416-func (_c *MockProgressBarWidget_GetVexpand_Call) Return(_a0 bool) *MockProgressBarWidget_GetVexpand_Call {
417- _c.Call.Return(_a0)
418- return _c
419-}
420-
421-func (_c *MockProgressBarWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_GetVexpand_Call {
422- _c.Call.Return(run)
423- return _c
424-}
425-
426-// GrabFocus provides a mock function with no fields
427-func (_m *MockProgressBarWidget) GrabFocus() bool {
428- ret := _m.Called()
429-
430- if len(ret) == 0 {
431- panic("no return value specified for GrabFocus")
432- }
433-
434- var r0 bool
435- if rf, ok := ret.Get(0).(func() bool); ok {
436- r0 = rf()
437- } else {
438- r0 = ret.Get(0).(bool)
439- }
440-
441- return r0
442-}
443-
444-// MockProgressBarWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
445-type MockProgressBarWidget_GrabFocus_Call struct {
446- *mock.Call
447-}
448-
449-// GrabFocus is a helper method to define mock.On call
450-func (_e *MockProgressBarWidget_Expecter) GrabFocus() *MockProgressBarWidget_GrabFocus_Call {
451- return &MockProgressBarWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
452-}
453-
454-func (_c *MockProgressBarWidget_GrabFocus_Call) Run(run func()) *MockProgressBarWidget_GrabFocus_Call {
455- _c.Call.Run(func(args mock.Arguments) {
456- run()
457- })
458- return _c
459-}
460-
461-func (_c *MockProgressBarWidget_GrabFocus_Call) Return(_a0 bool) *MockProgressBarWidget_GrabFocus_Call {
462- _c.Call.Return(_a0)
463- return _c
464-}
465-
466-func (_c *MockProgressBarWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_GrabFocus_Call {
467- _c.Call.Return(run)
468- return _c
469-}
470-
471-// GtkWidget provides a mock function with no fields
472-func (_m *MockProgressBarWidget) GtkWidget() *gtk.Widget {
473- ret := _m.Called()
474-
475- if len(ret) == 0 {
476- panic("no return value specified for GtkWidget")
477- }
478-
479- var r0 *gtk.Widget
480- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
481- r0 = rf()
482- } else {
483- if ret.Get(0) != nil {
484- r0 = ret.Get(0).(*gtk.Widget)
485- }
486- }
487-
488- return r0
489-}
490-
491-// MockProgressBarWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
492-type MockProgressBarWidget_GtkWidget_Call struct {
493- *mock.Call
494-}
495-
496-// GtkWidget is a helper method to define mock.On call
497-func (_e *MockProgressBarWidget_Expecter) GtkWidget() *MockProgressBarWidget_GtkWidget_Call {
498- return &MockProgressBarWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
499-}
500-
501-func (_c *MockProgressBarWidget_GtkWidget_Call) Run(run func()) *MockProgressBarWidget_GtkWidget_Call {
502- _c.Call.Run(func(args mock.Arguments) {
503- run()
504- })
505- return _c
506-}
507-
508-func (_c *MockProgressBarWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockProgressBarWidget_GtkWidget_Call {
509- _c.Call.Return(_a0)
510- return _c
511-}
512-
513-func (_c *MockProgressBarWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockProgressBarWidget_GtkWidget_Call {
514- _c.Call.Return(run)
515- return _c
516-}
517-
518-// HasCssClass provides a mock function with given fields: cssClass
519-func (_m *MockProgressBarWidget) HasCssClass(cssClass string) bool {
520- ret := _m.Called(cssClass)
521-
522- if len(ret) == 0 {
523- panic("no return value specified for HasCssClass")
524- }
525-
526- var r0 bool
527- if rf, ok := ret.Get(0).(func(string) bool); ok {
528- r0 = rf(cssClass)
529- } else {
530- r0 = ret.Get(0).(bool)
531- }
532-
533- return r0
534-}
535-
536-// MockProgressBarWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
537-type MockProgressBarWidget_HasCssClass_Call struct {
538- *mock.Call
539-}
540-
541-// HasCssClass is a helper method to define mock.On call
542-// - cssClass string
543-func (_e *MockProgressBarWidget_Expecter) HasCssClass(cssClass interface{}) *MockProgressBarWidget_HasCssClass_Call {
544- return &MockProgressBarWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
545-}
546-
547-func (_c *MockProgressBarWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockProgressBarWidget_HasCssClass_Call {
548- _c.Call.Run(func(args mock.Arguments) {
549- run(args[0].(string))
550- })
551- return _c
552-}
553-
554-func (_c *MockProgressBarWidget_HasCssClass_Call) Return(_a0 bool) *MockProgressBarWidget_HasCssClass_Call {
555- _c.Call.Return(_a0)
556- return _c
557-}
558-
559-func (_c *MockProgressBarWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockProgressBarWidget_HasCssClass_Call {
560- _c.Call.Return(run)
561- return _c
562-}
563-
564-// HasFocus provides a mock function with no fields
565-func (_m *MockProgressBarWidget) HasFocus() bool {
566- ret := _m.Called()
567-
568- if len(ret) == 0 {
569- panic("no return value specified for HasFocus")
570- }
571-
572- var r0 bool
573- if rf, ok := ret.Get(0).(func() bool); ok {
574- r0 = rf()
575- } else {
576- r0 = ret.Get(0).(bool)
577- }
578-
579- return r0
580-}
581-
582-// MockProgressBarWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
583-type MockProgressBarWidget_HasFocus_Call struct {
584- *mock.Call
585-}
586-
587-// HasFocus is a helper method to define mock.On call
588-func (_e *MockProgressBarWidget_Expecter) HasFocus() *MockProgressBarWidget_HasFocus_Call {
589- return &MockProgressBarWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
590-}
591-
592-func (_c *MockProgressBarWidget_HasFocus_Call) Run(run func()) *MockProgressBarWidget_HasFocus_Call {
593- _c.Call.Run(func(args mock.Arguments) {
594- run()
595- })
596- return _c
597-}
598-
599-func (_c *MockProgressBarWidget_HasFocus_Call) Return(_a0 bool) *MockProgressBarWidget_HasFocus_Call {
600- _c.Call.Return(_a0)
601- return _c
602-}
603-
604-func (_c *MockProgressBarWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_HasFocus_Call {
605- _c.Call.Return(run)
606- return _c
607-}
608-
609-// Hide provides a mock function with no fields
610-func (_m *MockProgressBarWidget) Hide() {
611- _m.Called()
612-}
613-
614-// MockProgressBarWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
615-type MockProgressBarWidget_Hide_Call struct {
616- *mock.Call
617-}
618-
619-// Hide is a helper method to define mock.On call
620-func (_e *MockProgressBarWidget_Expecter) Hide() *MockProgressBarWidget_Hide_Call {
621- return &MockProgressBarWidget_Hide_Call{Call: _e.mock.On("Hide")}
622-}
623-
624-func (_c *MockProgressBarWidget_Hide_Call) Run(run func()) *MockProgressBarWidget_Hide_Call {
625- _c.Call.Run(func(args mock.Arguments) {
626- run()
627- })
628- return _c
629-}
630-
631-func (_c *MockProgressBarWidget_Hide_Call) Return() *MockProgressBarWidget_Hide_Call {
632- _c.Call.Return()
633- return _c
634-}
635-
636-func (_c *MockProgressBarWidget_Hide_Call) RunAndReturn(run func()) *MockProgressBarWidget_Hide_Call {
637- _c.Run(run)
638- return _c
639-}
640-
641-// IsVisible provides a mock function with no fields
642-func (_m *MockProgressBarWidget) IsVisible() bool {
643- ret := _m.Called()
644-
645- if len(ret) == 0 {
646- panic("no return value specified for IsVisible")
647- }
648-
649- var r0 bool
650- if rf, ok := ret.Get(0).(func() bool); ok {
651- r0 = rf()
652- } else {
653- r0 = ret.Get(0).(bool)
654- }
655-
656- return r0
657-}
658-
659-// MockProgressBarWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
660-type MockProgressBarWidget_IsVisible_Call struct {
661- *mock.Call
662-}
663-
664-// IsVisible is a helper method to define mock.On call
665-func (_e *MockProgressBarWidget_Expecter) IsVisible() *MockProgressBarWidget_IsVisible_Call {
666- return &MockProgressBarWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
667-}
668-
669-func (_c *MockProgressBarWidget_IsVisible_Call) Run(run func()) *MockProgressBarWidget_IsVisible_Call {
670- _c.Call.Run(func(args mock.Arguments) {
671- run()
672- })
673- return _c
674-}
675-
676-func (_c *MockProgressBarWidget_IsVisible_Call) Return(_a0 bool) *MockProgressBarWidget_IsVisible_Call {
677- _c.Call.Return(_a0)
678- return _c
679-}
680-
681-func (_c *MockProgressBarWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_IsVisible_Call {
682- _c.Call.Return(run)
683- return _c
684-}
685-
686-// RemoveCssClass provides a mock function with given fields: cssClass
687-func (_m *MockProgressBarWidget) RemoveCssClass(cssClass string) {
688- _m.Called(cssClass)
689-}
690-
691-// MockProgressBarWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
692-type MockProgressBarWidget_RemoveCssClass_Call struct {
693- *mock.Call
694-}
695-
696-// RemoveCssClass is a helper method to define mock.On call
697-// - cssClass string
698-func (_e *MockProgressBarWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockProgressBarWidget_RemoveCssClass_Call {
699- return &MockProgressBarWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
700-}
701-
702-func (_c *MockProgressBarWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockProgressBarWidget_RemoveCssClass_Call {
703- _c.Call.Run(func(args mock.Arguments) {
704- run(args[0].(string))
705- })
706- return _c
707-}
708-
709-func (_c *MockProgressBarWidget_RemoveCssClass_Call) Return() *MockProgressBarWidget_RemoveCssClass_Call {
710- _c.Call.Return()
711- return _c
712-}
713-
714-func (_c *MockProgressBarWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockProgressBarWidget_RemoveCssClass_Call {
715- _c.Run(run)
716- return _c
717-}
718-
719-// SetCanFocus provides a mock function with given fields: canFocus
720-func (_m *MockProgressBarWidget) SetCanFocus(canFocus bool) {
721- _m.Called(canFocus)
722-}
723-
724-// MockProgressBarWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
725-type MockProgressBarWidget_SetCanFocus_Call struct {
726- *mock.Call
727-}
728-
729-// SetCanFocus is a helper method to define mock.On call
730-// - canFocus bool
731-func (_e *MockProgressBarWidget_Expecter) SetCanFocus(canFocus interface{}) *MockProgressBarWidget_SetCanFocus_Call {
732- return &MockProgressBarWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
733-}
734-
735-func (_c *MockProgressBarWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockProgressBarWidget_SetCanFocus_Call {
736- _c.Call.Run(func(args mock.Arguments) {
737- run(args[0].(bool))
738- })
739- return _c
740-}
741-
742-func (_c *MockProgressBarWidget_SetCanFocus_Call) Return() *MockProgressBarWidget_SetCanFocus_Call {
743- _c.Call.Return()
744- return _c
745-}
746-
747-func (_c *MockProgressBarWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockProgressBarWidget_SetCanFocus_Call {
748- _c.Run(run)
749- return _c
750-}
751-
752-// SetCanTarget provides a mock function with given fields: canTarget
753-func (_m *MockProgressBarWidget) SetCanTarget(canTarget bool) {
754- _m.Called(canTarget)
755-}
756-
757-// MockProgressBarWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
758-type MockProgressBarWidget_SetCanTarget_Call struct {
759- *mock.Call
760-}
761-
762-// SetCanTarget is a helper method to define mock.On call
763-// - canTarget bool
764-func (_e *MockProgressBarWidget_Expecter) SetCanTarget(canTarget interface{}) *MockProgressBarWidget_SetCanTarget_Call {
765- return &MockProgressBarWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
766-}
767-
768-func (_c *MockProgressBarWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockProgressBarWidget_SetCanTarget_Call {
769- _c.Call.Run(func(args mock.Arguments) {
770- run(args[0].(bool))
771- })
772- return _c
773-}
774-
775-func (_c *MockProgressBarWidget_SetCanTarget_Call) Return() *MockProgressBarWidget_SetCanTarget_Call {
776- _c.Call.Return()
777- return _c
778-}
779-
780-func (_c *MockProgressBarWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockProgressBarWidget_SetCanTarget_Call {
781- _c.Run(run)
782- return _c
783-}
784-
785-// SetFocusOnClick provides a mock function with given fields: focusOnClick
786-func (_m *MockProgressBarWidget) SetFocusOnClick(focusOnClick bool) {
787- _m.Called(focusOnClick)
788-}
789-
790-// MockProgressBarWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
791-type MockProgressBarWidget_SetFocusOnClick_Call struct {
792- *mock.Call
793-}
794-
795-// SetFocusOnClick is a helper method to define mock.On call
796-// - focusOnClick bool
797-func (_e *MockProgressBarWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockProgressBarWidget_SetFocusOnClick_Call {
798- return &MockProgressBarWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
799-}
800-
801-func (_c *MockProgressBarWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockProgressBarWidget_SetFocusOnClick_Call {
802- _c.Call.Run(func(args mock.Arguments) {
803- run(args[0].(bool))
804- })
805- return _c
806-}
807-
808-func (_c *MockProgressBarWidget_SetFocusOnClick_Call) Return() *MockProgressBarWidget_SetFocusOnClick_Call {
809- _c.Call.Return()
810- return _c
811-}
812-
813-func (_c *MockProgressBarWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockProgressBarWidget_SetFocusOnClick_Call {
814- _c.Run(run)
815- return _c
816-}
817-
818-// SetFraction provides a mock function with given fields: fraction
819-func (_m *MockProgressBarWidget) SetFraction(fraction float64) {
820- _m.Called(fraction)
821-}
822-
823-// MockProgressBarWidget_SetFraction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFraction'
824-type MockProgressBarWidget_SetFraction_Call struct {
825- *mock.Call
826-}
827-
828-// SetFraction is a helper method to define mock.On call
829-// - fraction float64
830-func (_e *MockProgressBarWidget_Expecter) SetFraction(fraction interface{}) *MockProgressBarWidget_SetFraction_Call {
831- return &MockProgressBarWidget_SetFraction_Call{Call: _e.mock.On("SetFraction", fraction)}
832-}
833-
834-func (_c *MockProgressBarWidget_SetFraction_Call) Run(run func(fraction float64)) *MockProgressBarWidget_SetFraction_Call {
835- _c.Call.Run(func(args mock.Arguments) {
836- run(args[0].(float64))
837- })
838- return _c
839-}
840-
841-func (_c *MockProgressBarWidget_SetFraction_Call) Return() *MockProgressBarWidget_SetFraction_Call {
842- _c.Call.Return()
843- return _c
844-}
845-
846-func (_c *MockProgressBarWidget_SetFraction_Call) RunAndReturn(run func(float64)) *MockProgressBarWidget_SetFraction_Call {
847- _c.Run(run)
848- return _c
849-}
850-
851-// SetHalign provides a mock function with given fields: align
852-func (_m *MockProgressBarWidget) SetHalign(align gtk.Align) {
853- _m.Called(align)
854-}
855-
856-// MockProgressBarWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
857-type MockProgressBarWidget_SetHalign_Call struct {
858- *mock.Call
859-}
860-
861-// SetHalign is a helper method to define mock.On call
862-// - align gtk.Align
863-func (_e *MockProgressBarWidget_Expecter) SetHalign(align interface{}) *MockProgressBarWidget_SetHalign_Call {
864- return &MockProgressBarWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
865-}
866-
867-func (_c *MockProgressBarWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockProgressBarWidget_SetHalign_Call {
868- _c.Call.Run(func(args mock.Arguments) {
869- run(args[0].(gtk.Align))
870- })
871- return _c
872-}
873-
874-func (_c *MockProgressBarWidget_SetHalign_Call) Return() *MockProgressBarWidget_SetHalign_Call {
875- _c.Call.Return()
876- return _c
877-}
878-
879-func (_c *MockProgressBarWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockProgressBarWidget_SetHalign_Call {
880- _c.Run(run)
881- return _c
882-}
883-
884-// SetHexpand provides a mock function with given fields: expand
885-func (_m *MockProgressBarWidget) SetHexpand(expand bool) {
886- _m.Called(expand)
887-}
888-
889-// MockProgressBarWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
890-type MockProgressBarWidget_SetHexpand_Call struct {
891- *mock.Call
892-}
893-
894-// SetHexpand is a helper method to define mock.On call
895-// - expand bool
896-func (_e *MockProgressBarWidget_Expecter) SetHexpand(expand interface{}) *MockProgressBarWidget_SetHexpand_Call {
897- return &MockProgressBarWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
898-}
899-
900-func (_c *MockProgressBarWidget_SetHexpand_Call) Run(run func(expand bool)) *MockProgressBarWidget_SetHexpand_Call {
901- _c.Call.Run(func(args mock.Arguments) {
902- run(args[0].(bool))
903- })
904- return _c
905-}
906-
907-func (_c *MockProgressBarWidget_SetHexpand_Call) Return() *MockProgressBarWidget_SetHexpand_Call {
908- _c.Call.Return()
909- return _c
910-}
911-
912-func (_c *MockProgressBarWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockProgressBarWidget_SetHexpand_Call {
913- _c.Run(run)
914- return _c
915-}
916-
917-// SetSizeRequest provides a mock function with given fields: width, height
918-func (_m *MockProgressBarWidget) SetSizeRequest(width int, height int) {
919- _m.Called(width, height)
920-}
921-
922-// MockProgressBarWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
923-type MockProgressBarWidget_SetSizeRequest_Call struct {
924- *mock.Call
925-}
926-
927-// SetSizeRequest is a helper method to define mock.On call
928-// - width int
929-// - height int
930-func (_e *MockProgressBarWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockProgressBarWidget_SetSizeRequest_Call {
931- return &MockProgressBarWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
932-}
933-
934-func (_c *MockProgressBarWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockProgressBarWidget_SetSizeRequest_Call {
935- _c.Call.Run(func(args mock.Arguments) {
936- run(args[0].(int), args[1].(int))
937- })
938- return _c
939-}
940-
941-func (_c *MockProgressBarWidget_SetSizeRequest_Call) Return() *MockProgressBarWidget_SetSizeRequest_Call {
942- _c.Call.Return()
943- return _c
944-}
945-
946-func (_c *MockProgressBarWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockProgressBarWidget_SetSizeRequest_Call {
947- _c.Run(run)
948- return _c
949-}
950-
951-// SetValign provides a mock function with given fields: align
952-func (_m *MockProgressBarWidget) SetValign(align gtk.Align) {
953- _m.Called(align)
954-}
955-
956-// MockProgressBarWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
957-type MockProgressBarWidget_SetValign_Call struct {
958- *mock.Call
959-}
960-
961-// SetValign is a helper method to define mock.On call
962-// - align gtk.Align
963-func (_e *MockProgressBarWidget_Expecter) SetValign(align interface{}) *MockProgressBarWidget_SetValign_Call {
964- return &MockProgressBarWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
965-}
966-
967-func (_c *MockProgressBarWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockProgressBarWidget_SetValign_Call {
968- _c.Call.Run(func(args mock.Arguments) {
969- run(args[0].(gtk.Align))
970- })
971- return _c
972-}
973-
974-func (_c *MockProgressBarWidget_SetValign_Call) Return() *MockProgressBarWidget_SetValign_Call {
975- _c.Call.Return()
976- return _c
977-}
978-
979-func (_c *MockProgressBarWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockProgressBarWidget_SetValign_Call {
980- _c.Run(run)
981- return _c
982-}
983-
984-// SetVexpand provides a mock function with given fields: expand
985-func (_m *MockProgressBarWidget) SetVexpand(expand bool) {
986- _m.Called(expand)
987-}
988-
989-// MockProgressBarWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
990-type MockProgressBarWidget_SetVexpand_Call struct {
991- *mock.Call
992-}
993-
994-// SetVexpand is a helper method to define mock.On call
995-// - expand bool
996-func (_e *MockProgressBarWidget_Expecter) SetVexpand(expand interface{}) *MockProgressBarWidget_SetVexpand_Call {
997- return &MockProgressBarWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
998-}
999-
1000-func (_c *MockProgressBarWidget_SetVexpand_Call) Run(run func(expand bool)) *MockProgressBarWidget_SetVexpand_Call {
1001- _c.Call.Run(func(args mock.Arguments) {
1002- run(args[0].(bool))
1003- })
1004- return _c
1005-}
1006-
1007-func (_c *MockProgressBarWidget_SetVexpand_Call) Return() *MockProgressBarWidget_SetVexpand_Call {
1008- _c.Call.Return()
1009- return _c
1010-}
1011-
1012-func (_c *MockProgressBarWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockProgressBarWidget_SetVexpand_Call {
1013- _c.Run(run)
1014- return _c
1015-}
1016-
1017-// SetVisible provides a mock function with given fields: visible
1018-func (_m *MockProgressBarWidget) SetVisible(visible bool) {
1019- _m.Called(visible)
1020-}
1021-
1022-// MockProgressBarWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1023-type MockProgressBarWidget_SetVisible_Call struct {
1024- *mock.Call
1025-}
1026-
1027-// SetVisible is a helper method to define mock.On call
1028-// - visible bool
1029-func (_e *MockProgressBarWidget_Expecter) SetVisible(visible interface{}) *MockProgressBarWidget_SetVisible_Call {
1030- return &MockProgressBarWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1031-}
1032-
1033-func (_c *MockProgressBarWidget_SetVisible_Call) Run(run func(visible bool)) *MockProgressBarWidget_SetVisible_Call {
1034- _c.Call.Run(func(args mock.Arguments) {
1035- run(args[0].(bool))
1036- })
1037- return _c
1038-}
1039-
1040-func (_c *MockProgressBarWidget_SetVisible_Call) Return() *MockProgressBarWidget_SetVisible_Call {
1041- _c.Call.Return()
1042- return _c
1043-}
1044-
1045-func (_c *MockProgressBarWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockProgressBarWidget_SetVisible_Call {
1046- _c.Run(run)
1047- return _c
1048-}
1049-
1050-// Show provides a mock function with no fields
1051-func (_m *MockProgressBarWidget) Show() {
1052- _m.Called()
1053-}
1054-
1055-// MockProgressBarWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1056-type MockProgressBarWidget_Show_Call struct {
1057- *mock.Call
1058-}
1059-
1060-// Show is a helper method to define mock.On call
1061-func (_e *MockProgressBarWidget_Expecter) Show() *MockProgressBarWidget_Show_Call {
1062- return &MockProgressBarWidget_Show_Call{Call: _e.mock.On("Show")}
1063-}
1064-
1065-func (_c *MockProgressBarWidget_Show_Call) Run(run func()) *MockProgressBarWidget_Show_Call {
1066- _c.Call.Run(func(args mock.Arguments) {
1067- run()
1068- })
1069- return _c
1070-}
1071-
1072-func (_c *MockProgressBarWidget_Show_Call) Return() *MockProgressBarWidget_Show_Call {
1073- _c.Call.Return()
1074- return _c
1075-}
1076-
1077-func (_c *MockProgressBarWidget_Show_Call) RunAndReturn(run func()) *MockProgressBarWidget_Show_Call {
1078- _c.Run(run)
1079- return _c
1080-}
1081-
1082-// Unparent provides a mock function with no fields
1083-func (_m *MockProgressBarWidget) Unparent() {
1084- _m.Called()
1085-}
1086-
1087-// MockProgressBarWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1088-type MockProgressBarWidget_Unparent_Call struct {
1089- *mock.Call
1090-}
1091-
1092-// Unparent is a helper method to define mock.On call
1093-func (_e *MockProgressBarWidget_Expecter) Unparent() *MockProgressBarWidget_Unparent_Call {
1094- return &MockProgressBarWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1095-}
1096-
1097-func (_c *MockProgressBarWidget_Unparent_Call) Run(run func()) *MockProgressBarWidget_Unparent_Call {
1098- _c.Call.Run(func(args mock.Arguments) {
1099- run()
1100- })
1101- return _c
1102-}
1103-
1104-func (_c *MockProgressBarWidget_Unparent_Call) Return() *MockProgressBarWidget_Unparent_Call {
1105- _c.Call.Return()
1106- return _c
1107-}
1108-
1109-func (_c *MockProgressBarWidget_Unparent_Call) RunAndReturn(run func()) *MockProgressBarWidget_Unparent_Call {
1110- _c.Run(run)
1111- return _c
1112-}
1113-
1114-// NewMockProgressBarWidget creates a new instance of MockProgressBarWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1115-// The first argument is typically a *testing.T value.
1116-func NewMockProgressBarWidget(t interface {
1117- mock.TestingT
1118- Cleanup(func())
1119-}) *MockProgressBarWidget {
1120- mock := &MockProgressBarWidget{}
1121- mock.Mock.Test(t)
1122-
1123- t.Cleanup(func() { mock.AssertExpectations(t) })
1124-
1125- return mock
1126-}
D internal/ui/layout/mocks/mock_widget.go +0 -1048
@@ -1,1048 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockWidget is an autogenerated mock type for the Widget type
13-type MockWidget struct {
14- mock.Mock
15-}
16-
17-type MockWidget_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockWidget) EXPECT() *MockWidget_Expecter {
22- return &MockWidget_Expecter{mock: &_m.Mock}
23-}
24-
25-// AddController provides a mock function with given fields: controller
26-func (_m *MockWidget) AddController(controller *gtk.EventController) {
27- _m.Called(controller)
28-}
29-
30-// MockWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
31-type MockWidget_AddController_Call struct {
32- *mock.Call
33-}
34-
35-// AddController is a helper method to define mock.On call
36-// - controller *gtk.EventController
37-func (_e *MockWidget_Expecter) AddController(controller interface{}) *MockWidget_AddController_Call {
38- return &MockWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
39-}
40-
41-func (_c *MockWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockWidget_AddController_Call {
42- _c.Call.Run(func(args mock.Arguments) {
43- run(args[0].(*gtk.EventController))
44- })
45- return _c
46-}
47-
48-func (_c *MockWidget_AddController_Call) Return() *MockWidget_AddController_Call {
49- _c.Call.Return()
50- return _c
51-}
52-
53-func (_c *MockWidget_AddController_Call) RunAndReturn(run func(*gtk.EventController)) *MockWidget_AddController_Call {
54- _c.Run(run)
55- return _c
56-}
57-
58-// AddCssClass provides a mock function with given fields: cssClass
59-func (_m *MockWidget) AddCssClass(cssClass string) {
60- _m.Called(cssClass)
61-}
62-
63-// MockWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
64-type MockWidget_AddCssClass_Call struct {
65- *mock.Call
66-}
67-
68-// AddCssClass is a helper method to define mock.On call
69-// - cssClass string
70-func (_e *MockWidget_Expecter) AddCssClass(cssClass interface{}) *MockWidget_AddCssClass_Call {
71- return &MockWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
72-}
73-
74-func (_c *MockWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockWidget_AddCssClass_Call {
75- _c.Call.Run(func(args mock.Arguments) {
76- run(args[0].(string))
77- })
78- return _c
79-}
80-
81-func (_c *MockWidget_AddCssClass_Call) Return() *MockWidget_AddCssClass_Call {
82- _c.Call.Return()
83- return _c
84-}
85-
86-func (_c *MockWidget_AddCssClass_Call) RunAndReturn(run func(string)) *MockWidget_AddCssClass_Call {
87- _c.Run(run)
88- return _c
89-}
90-
91-// ComputePoint provides a mock function with given fields: target
92-func (_m *MockWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
93- ret := _m.Called(target)
94-
95- if len(ret) == 0 {
96- panic("no return value specified for ComputePoint")
97- }
98-
99- var r0 float64
100- var r1 float64
101- var r2 bool
102- if rf, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
103- return rf(target)
104- }
105- if rf, ok := ret.Get(0).(func(layout.Widget) float64); ok {
106- r0 = rf(target)
107- } else {
108- r0 = ret.Get(0).(float64)
109- }
110-
111- if rf, ok := ret.Get(1).(func(layout.Widget) float64); ok {
112- r1 = rf(target)
113- } else {
114- r1 = ret.Get(1).(float64)
115- }
116-
117- if rf, ok := ret.Get(2).(func(layout.Widget) bool); ok {
118- r2 = rf(target)
119- } else {
120- r2 = ret.Get(2).(bool)
121- }
122-
123- return r0, r1, r2
124-}
125-
126-// MockWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
127-type MockWidget_ComputePoint_Call struct {
128- *mock.Call
129-}
130-
131-// ComputePoint is a helper method to define mock.On call
132-// - target layout.Widget
133-func (_e *MockWidget_Expecter) ComputePoint(target interface{}) *MockWidget_ComputePoint_Call {
134- return &MockWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
135-}
136-
137-func (_c *MockWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockWidget_ComputePoint_Call {
138- _c.Call.Run(func(args mock.Arguments) {
139- run(args[0].(layout.Widget))
140- })
141- return _c
142-}
143-
144-func (_c *MockWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockWidget_ComputePoint_Call {
145- _c.Call.Return(x, y, ok)
146- return _c
147-}
148-
149-func (_c *MockWidget_ComputePoint_Call) RunAndReturn(run func(layout.Widget) (float64, float64, bool)) *MockWidget_ComputePoint_Call {
150- _c.Call.Return(run)
151- return _c
152-}
153-
154-// GetAllocatedHeight provides a mock function with no fields
155-func (_m *MockWidget) GetAllocatedHeight() int {
156- ret := _m.Called()
157-
158- if len(ret) == 0 {
159- panic("no return value specified for GetAllocatedHeight")
160- }
161-
162- var r0 int
163- if rf, ok := ret.Get(0).(func() int); ok {
164- r0 = rf()
165- } else {
166- r0 = ret.Get(0).(int)
167- }
168-
169- return r0
170-}
171-
172-// MockWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
173-type MockWidget_GetAllocatedHeight_Call struct {
174- *mock.Call
175-}
176-
177-// GetAllocatedHeight is a helper method to define mock.On call
178-func (_e *MockWidget_Expecter) GetAllocatedHeight() *MockWidget_GetAllocatedHeight_Call {
179- return &MockWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
180-}
181-
182-func (_c *MockWidget_GetAllocatedHeight_Call) Run(run func()) *MockWidget_GetAllocatedHeight_Call {
183- _c.Call.Run(func(args mock.Arguments) {
184- run()
185- })
186- return _c
187-}
188-
189-func (_c *MockWidget_GetAllocatedHeight_Call) Return(_a0 int) *MockWidget_GetAllocatedHeight_Call {
190- _c.Call.Return(_a0)
191- return _c
192-}
193-
194-func (_c *MockWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockWidget_GetAllocatedHeight_Call {
195- _c.Call.Return(run)
196- return _c
197-}
198-
199-// GetAllocatedWidth provides a mock function with no fields
200-func (_m *MockWidget) GetAllocatedWidth() int {
201- ret := _m.Called()
202-
203- if len(ret) == 0 {
204- panic("no return value specified for GetAllocatedWidth")
205- }
206-
207- var r0 int
208- if rf, ok := ret.Get(0).(func() int); ok {
209- r0 = rf()
210- } else {
211- r0 = ret.Get(0).(int)
212- }
213-
214- return r0
215-}
216-
217-// MockWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
218-type MockWidget_GetAllocatedWidth_Call struct {
219- *mock.Call
220-}
221-
222-// GetAllocatedWidth is a helper method to define mock.On call
223-func (_e *MockWidget_Expecter) GetAllocatedWidth() *MockWidget_GetAllocatedWidth_Call {
224- return &MockWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
225-}
226-
227-func (_c *MockWidget_GetAllocatedWidth_Call) Run(run func()) *MockWidget_GetAllocatedWidth_Call {
228- _c.Call.Run(func(args mock.Arguments) {
229- run()
230- })
231- return _c
232-}
233-
234-func (_c *MockWidget_GetAllocatedWidth_Call) Return(_a0 int) *MockWidget_GetAllocatedWidth_Call {
235- _c.Call.Return(_a0)
236- return _c
237-}
238-
239-func (_c *MockWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockWidget_GetAllocatedWidth_Call {
240- _c.Call.Return(run)
241- return _c
242-}
243-
244-// GetHexpand provides a mock function with no fields
245-func (_m *MockWidget) GetHexpand() bool {
246- ret := _m.Called()
247-
248- if len(ret) == 0 {
249- panic("no return value specified for GetHexpand")
250- }
251-
252- var r0 bool
253- if rf, ok := ret.Get(0).(func() bool); ok {
254- r0 = rf()
255- } else {
256- r0 = ret.Get(0).(bool)
257- }
258-
259- return r0
260-}
261-
262-// MockWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
263-type MockWidget_GetHexpand_Call struct {
264- *mock.Call
265-}
266-
267-// GetHexpand is a helper method to define mock.On call
268-func (_e *MockWidget_Expecter) GetHexpand() *MockWidget_GetHexpand_Call {
269- return &MockWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
270-}
271-
272-func (_c *MockWidget_GetHexpand_Call) Run(run func()) *MockWidget_GetHexpand_Call {
273- _c.Call.Run(func(args mock.Arguments) {
274- run()
275- })
276- return _c
277-}
278-
279-func (_c *MockWidget_GetHexpand_Call) Return(_a0 bool) *MockWidget_GetHexpand_Call {
280- _c.Call.Return(_a0)
281- return _c
282-}
283-
284-func (_c *MockWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockWidget_GetHexpand_Call {
285- _c.Call.Return(run)
286- return _c
287-}
288-
289-// GetParent provides a mock function with no fields
290-func (_m *MockWidget) GetParent() layout.Widget {
291- ret := _m.Called()
292-
293- if len(ret) == 0 {
294- panic("no return value specified for GetParent")
295- }
296-
297- var r0 layout.Widget
298- if rf, ok := ret.Get(0).(func() layout.Widget); ok {
299- r0 = rf()
300- } else {
301- if ret.Get(0) != nil {
302- r0 = ret.Get(0).(layout.Widget)
303- }
304- }
305-
306- return r0
307-}
308-
309-// MockWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
310-type MockWidget_GetParent_Call struct {
311- *mock.Call
312-}
313-
314-// GetParent is a helper method to define mock.On call
315-func (_e *MockWidget_Expecter) GetParent() *MockWidget_GetParent_Call {
316- return &MockWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
317-}
318-
319-func (_c *MockWidget_GetParent_Call) Run(run func()) *MockWidget_GetParent_Call {
320- _c.Call.Run(func(args mock.Arguments) {
321- run()
322- })
323- return _c
324-}
325-
326-func (_c *MockWidget_GetParent_Call) Return(_a0 layout.Widget) *MockWidget_GetParent_Call {
327- _c.Call.Return(_a0)
328- return _c
329-}
330-
331-func (_c *MockWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockWidget_GetParent_Call {
332- _c.Call.Return(run)
333- return _c
334-}
335-
336-// GetVexpand provides a mock function with no fields
337-func (_m *MockWidget) GetVexpand() bool {
338- ret := _m.Called()
339-
340- if len(ret) == 0 {
341- panic("no return value specified for GetVexpand")
342- }
343-
344- var r0 bool
345- if rf, ok := ret.Get(0).(func() bool); ok {
346- r0 = rf()
347- } else {
348- r0 = ret.Get(0).(bool)
349- }
350-
351- return r0
352-}
353-
354-// MockWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
355-type MockWidget_GetVexpand_Call struct {
356- *mock.Call
357-}
358-
359-// GetVexpand is a helper method to define mock.On call
360-func (_e *MockWidget_Expecter) GetVexpand() *MockWidget_GetVexpand_Call {
361- return &MockWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
362-}
363-
364-func (_c *MockWidget_GetVexpand_Call) Run(run func()) *MockWidget_GetVexpand_Call {
365- _c.Call.Run(func(args mock.Arguments) {
366- run()
367- })
368- return _c
369-}
370-
371-func (_c *MockWidget_GetVexpand_Call) Return(_a0 bool) *MockWidget_GetVexpand_Call {
372- _c.Call.Return(_a0)
373- return _c
374-}
375-
376-func (_c *MockWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockWidget_GetVexpand_Call {
377- _c.Call.Return(run)
378- return _c
379-}
380-
381-// GrabFocus provides a mock function with no fields
382-func (_m *MockWidget) GrabFocus() bool {
383- ret := _m.Called()
384-
385- if len(ret) == 0 {
386- panic("no return value specified for GrabFocus")
387- }
388-
389- var r0 bool
390- if rf, ok := ret.Get(0).(func() bool); ok {
391- r0 = rf()
392- } else {
393- r0 = ret.Get(0).(bool)
394- }
395-
396- return r0
397-}
398-
399-// MockWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
400-type MockWidget_GrabFocus_Call struct {
401- *mock.Call
402-}
403-
404-// GrabFocus is a helper method to define mock.On call
405-func (_e *MockWidget_Expecter) GrabFocus() *MockWidget_GrabFocus_Call {
406- return &MockWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
407-}
408-
409-func (_c *MockWidget_GrabFocus_Call) Run(run func()) *MockWidget_GrabFocus_Call {
410- _c.Call.Run(func(args mock.Arguments) {
411- run()
412- })
413- return _c
414-}
415-
416-func (_c *MockWidget_GrabFocus_Call) Return(_a0 bool) *MockWidget_GrabFocus_Call {
417- _c.Call.Return(_a0)
418- return _c
419-}
420-
421-func (_c *MockWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockWidget_GrabFocus_Call {
422- _c.Call.Return(run)
423- return _c
424-}
425-
426-// GtkWidget provides a mock function with no fields
427-func (_m *MockWidget) GtkWidget() *gtk.Widget {
428- ret := _m.Called()
429-
430- if len(ret) == 0 {
431- panic("no return value specified for GtkWidget")
432- }
433-
434- var r0 *gtk.Widget
435- if rf, ok := ret.Get(0).(func() *gtk.Widget); ok {
436- r0 = rf()
437- } else {
438- if ret.Get(0) != nil {
439- r0 = ret.Get(0).(*gtk.Widget)
440- }
441- }
442-
443- return r0
444-}
445-
446-// MockWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
447-type MockWidget_GtkWidget_Call struct {
448- *mock.Call
449-}
450-
451-// GtkWidget is a helper method to define mock.On call
452-func (_e *MockWidget_Expecter) GtkWidget() *MockWidget_GtkWidget_Call {
453- return &MockWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
454-}
455-
456-func (_c *MockWidget_GtkWidget_Call) Run(run func()) *MockWidget_GtkWidget_Call {
457- _c.Call.Run(func(args mock.Arguments) {
458- run()
459- })
460- return _c
461-}
462-
463-func (_c *MockWidget_GtkWidget_Call) Return(_a0 *gtk.Widget) *MockWidget_GtkWidget_Call {
464- _c.Call.Return(_a0)
465- return _c
466-}
467-
468-func (_c *MockWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockWidget_GtkWidget_Call {
469- _c.Call.Return(run)
470- return _c
471-}
472-
473-// HasCssClass provides a mock function with given fields: cssClass
474-func (_m *MockWidget) HasCssClass(cssClass string) bool {
475- ret := _m.Called(cssClass)
476-
477- if len(ret) == 0 {
478- panic("no return value specified for HasCssClass")
479- }
480-
481- var r0 bool
482- if rf, ok := ret.Get(0).(func(string) bool); ok {
483- r0 = rf(cssClass)
484- } else {
485- r0 = ret.Get(0).(bool)
486- }
487-
488- return r0
489-}
490-
491-// MockWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
492-type MockWidget_HasCssClass_Call struct {
493- *mock.Call
494-}
495-
496-// HasCssClass is a helper method to define mock.On call
497-// - cssClass string
498-func (_e *MockWidget_Expecter) HasCssClass(cssClass interface{}) *MockWidget_HasCssClass_Call {
499- return &MockWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
500-}
501-
502-func (_c *MockWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockWidget_HasCssClass_Call {
503- _c.Call.Run(func(args mock.Arguments) {
504- run(args[0].(string))
505- })
506- return _c
507-}
508-
509-func (_c *MockWidget_HasCssClass_Call) Return(_a0 bool) *MockWidget_HasCssClass_Call {
510- _c.Call.Return(_a0)
511- return _c
512-}
513-
514-func (_c *MockWidget_HasCssClass_Call) RunAndReturn(run func(string) bool) *MockWidget_HasCssClass_Call {
515- _c.Call.Return(run)
516- return _c
517-}
518-
519-// HasFocus provides a mock function with no fields
520-func (_m *MockWidget) HasFocus() bool {
521- ret := _m.Called()
522-
523- if len(ret) == 0 {
524- panic("no return value specified for HasFocus")
525- }
526-
527- var r0 bool
528- if rf, ok := ret.Get(0).(func() bool); ok {
529- r0 = rf()
530- } else {
531- r0 = ret.Get(0).(bool)
532- }
533-
534- return r0
535-}
536-
537-// MockWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
538-type MockWidget_HasFocus_Call struct {
539- *mock.Call
540-}
541-
542-// HasFocus is a helper method to define mock.On call
543-func (_e *MockWidget_Expecter) HasFocus() *MockWidget_HasFocus_Call {
544- return &MockWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
545-}
546-
547-func (_c *MockWidget_HasFocus_Call) Run(run func()) *MockWidget_HasFocus_Call {
548- _c.Call.Run(func(args mock.Arguments) {
549- run()
550- })
551- return _c
552-}
553-
554-func (_c *MockWidget_HasFocus_Call) Return(_a0 bool) *MockWidget_HasFocus_Call {
555- _c.Call.Return(_a0)
556- return _c
557-}
558-
559-func (_c *MockWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockWidget_HasFocus_Call {
560- _c.Call.Return(run)
561- return _c
562-}
563-
564-// Hide provides a mock function with no fields
565-func (_m *MockWidget) Hide() {
566- _m.Called()
567-}
568-
569-// MockWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
570-type MockWidget_Hide_Call struct {
571- *mock.Call
572-}
573-
574-// Hide is a helper method to define mock.On call
575-func (_e *MockWidget_Expecter) Hide() *MockWidget_Hide_Call {
576- return &MockWidget_Hide_Call{Call: _e.mock.On("Hide")}
577-}
578-
579-func (_c *MockWidget_Hide_Call) Run(run func()) *MockWidget_Hide_Call {
580- _c.Call.Run(func(args mock.Arguments) {
581- run()
582- })
583- return _c
584-}
585-
586-func (_c *MockWidget_Hide_Call) Return() *MockWidget_Hide_Call {
587- _c.Call.Return()
588- return _c
589-}
590-
591-func (_c *MockWidget_Hide_Call) RunAndReturn(run func()) *MockWidget_Hide_Call {
592- _c.Run(run)
593- return _c
594-}
595-
596-// IsVisible provides a mock function with no fields
597-func (_m *MockWidget) IsVisible() bool {
598- ret := _m.Called()
599-
600- if len(ret) == 0 {
601- panic("no return value specified for IsVisible")
602- }
603-
604- var r0 bool
605- if rf, ok := ret.Get(0).(func() bool); ok {
606- r0 = rf()
607- } else {
608- r0 = ret.Get(0).(bool)
609- }
610-
611- return r0
612-}
613-
614-// MockWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
615-type MockWidget_IsVisible_Call struct {
616- *mock.Call
617-}
618-
619-// IsVisible is a helper method to define mock.On call
620-func (_e *MockWidget_Expecter) IsVisible() *MockWidget_IsVisible_Call {
621- return &MockWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
622-}
623-
624-func (_c *MockWidget_IsVisible_Call) Run(run func()) *MockWidget_IsVisible_Call {
625- _c.Call.Run(func(args mock.Arguments) {
626- run()
627- })
628- return _c
629-}
630-
631-func (_c *MockWidget_IsVisible_Call) Return(_a0 bool) *MockWidget_IsVisible_Call {
632- _c.Call.Return(_a0)
633- return _c
634-}
635-
636-func (_c *MockWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockWidget_IsVisible_Call {
637- _c.Call.Return(run)
638- return _c
639-}
640-
641-// RemoveCssClass provides a mock function with given fields: cssClass
642-func (_m *MockWidget) RemoveCssClass(cssClass string) {
643- _m.Called(cssClass)
644-}
645-
646-// MockWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
647-type MockWidget_RemoveCssClass_Call struct {
648- *mock.Call
649-}
650-
651-// RemoveCssClass is a helper method to define mock.On call
652-// - cssClass string
653-func (_e *MockWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockWidget_RemoveCssClass_Call {
654- return &MockWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
655-}
656-
657-func (_c *MockWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockWidget_RemoveCssClass_Call {
658- _c.Call.Run(func(args mock.Arguments) {
659- run(args[0].(string))
660- })
661- return _c
662-}
663-
664-func (_c *MockWidget_RemoveCssClass_Call) Return() *MockWidget_RemoveCssClass_Call {
665- _c.Call.Return()
666- return _c
667-}
668-
669-func (_c *MockWidget_RemoveCssClass_Call) RunAndReturn(run func(string)) *MockWidget_RemoveCssClass_Call {
670- _c.Run(run)
671- return _c
672-}
673-
674-// SetCanFocus provides a mock function with given fields: canFocus
675-func (_m *MockWidget) SetCanFocus(canFocus bool) {
676- _m.Called(canFocus)
677-}
678-
679-// MockWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
680-type MockWidget_SetCanFocus_Call struct {
681- *mock.Call
682-}
683-
684-// SetCanFocus is a helper method to define mock.On call
685-// - canFocus bool
686-func (_e *MockWidget_Expecter) SetCanFocus(canFocus interface{}) *MockWidget_SetCanFocus_Call {
687- return &MockWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
688-}
689-
690-func (_c *MockWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockWidget_SetCanFocus_Call {
691- _c.Call.Run(func(args mock.Arguments) {
692- run(args[0].(bool))
693- })
694- return _c
695-}
696-
697-func (_c *MockWidget_SetCanFocus_Call) Return() *MockWidget_SetCanFocus_Call {
698- _c.Call.Return()
699- return _c
700-}
701-
702-func (_c *MockWidget_SetCanFocus_Call) RunAndReturn(run func(bool)) *MockWidget_SetCanFocus_Call {
703- _c.Run(run)
704- return _c
705-}
706-
707-// SetCanTarget provides a mock function with given fields: canTarget
708-func (_m *MockWidget) SetCanTarget(canTarget bool) {
709- _m.Called(canTarget)
710-}
711-
712-// MockWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
713-type MockWidget_SetCanTarget_Call struct {
714- *mock.Call
715-}
716-
717-// SetCanTarget is a helper method to define mock.On call
718-// - canTarget bool
719-func (_e *MockWidget_Expecter) SetCanTarget(canTarget interface{}) *MockWidget_SetCanTarget_Call {
720- return &MockWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
721-}
722-
723-func (_c *MockWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockWidget_SetCanTarget_Call {
724- _c.Call.Run(func(args mock.Arguments) {
725- run(args[0].(bool))
726- })
727- return _c
728-}
729-
730-func (_c *MockWidget_SetCanTarget_Call) Return() *MockWidget_SetCanTarget_Call {
731- _c.Call.Return()
732- return _c
733-}
734-
735-func (_c *MockWidget_SetCanTarget_Call) RunAndReturn(run func(bool)) *MockWidget_SetCanTarget_Call {
736- _c.Run(run)
737- return _c
738-}
739-
740-// SetFocusOnClick provides a mock function with given fields: focusOnClick
741-func (_m *MockWidget) SetFocusOnClick(focusOnClick bool) {
742- _m.Called(focusOnClick)
743-}
744-
745-// MockWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
746-type MockWidget_SetFocusOnClick_Call struct {
747- *mock.Call
748-}
749-
750-// SetFocusOnClick is a helper method to define mock.On call
751-// - focusOnClick bool
752-func (_e *MockWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockWidget_SetFocusOnClick_Call {
753- return &MockWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
754-}
755-
756-func (_c *MockWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockWidget_SetFocusOnClick_Call {
757- _c.Call.Run(func(args mock.Arguments) {
758- run(args[0].(bool))
759- })
760- return _c
761-}
762-
763-func (_c *MockWidget_SetFocusOnClick_Call) Return() *MockWidget_SetFocusOnClick_Call {
764- _c.Call.Return()
765- return _c
766-}
767-
768-func (_c *MockWidget_SetFocusOnClick_Call) RunAndReturn(run func(bool)) *MockWidget_SetFocusOnClick_Call {
769- _c.Run(run)
770- return _c
771-}
772-
773-// SetHalign provides a mock function with given fields: align
774-func (_m *MockWidget) SetHalign(align gtk.Align) {
775- _m.Called(align)
776-}
777-
778-// MockWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
779-type MockWidget_SetHalign_Call struct {
780- *mock.Call
781-}
782-
783-// SetHalign is a helper method to define mock.On call
784-// - align gtk.Align
785-func (_e *MockWidget_Expecter) SetHalign(align interface{}) *MockWidget_SetHalign_Call {
786- return &MockWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
787-}
788-
789-func (_c *MockWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockWidget_SetHalign_Call {
790- _c.Call.Run(func(args mock.Arguments) {
791- run(args[0].(gtk.Align))
792- })
793- return _c
794-}
795-
796-func (_c *MockWidget_SetHalign_Call) Return() *MockWidget_SetHalign_Call {
797- _c.Call.Return()
798- return _c
799-}
800-
801-func (_c *MockWidget_SetHalign_Call) RunAndReturn(run func(gtk.Align)) *MockWidget_SetHalign_Call {
802- _c.Run(run)
803- return _c
804-}
805-
806-// SetHexpand provides a mock function with given fields: expand
807-func (_m *MockWidget) SetHexpand(expand bool) {
808- _m.Called(expand)
809-}
810-
811-// MockWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
812-type MockWidget_SetHexpand_Call struct {
813- *mock.Call
814-}
815-
816-// SetHexpand is a helper method to define mock.On call
817-// - expand bool
818-func (_e *MockWidget_Expecter) SetHexpand(expand interface{}) *MockWidget_SetHexpand_Call {
819- return &MockWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
820-}
821-
822-func (_c *MockWidget_SetHexpand_Call) Run(run func(expand bool)) *MockWidget_SetHexpand_Call {
823- _c.Call.Run(func(args mock.Arguments) {
824- run(args[0].(bool))
825- })
826- return _c
827-}
828-
829-func (_c *MockWidget_SetHexpand_Call) Return() *MockWidget_SetHexpand_Call {
830- _c.Call.Return()
831- return _c
832-}
833-
834-func (_c *MockWidget_SetHexpand_Call) RunAndReturn(run func(bool)) *MockWidget_SetHexpand_Call {
835- _c.Run(run)
836- return _c
837-}
838-
839-// SetSizeRequest provides a mock function with given fields: width, height
840-func (_m *MockWidget) SetSizeRequest(width int, height int) {
841- _m.Called(width, height)
842-}
843-
844-// MockWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
845-type MockWidget_SetSizeRequest_Call struct {
846- *mock.Call
847-}
848-
849-// SetSizeRequest is a helper method to define mock.On call
850-// - width int
851-// - height int
852-func (_e *MockWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockWidget_SetSizeRequest_Call {
853- return &MockWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
854-}
855-
856-func (_c *MockWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockWidget_SetSizeRequest_Call {
857- _c.Call.Run(func(args mock.Arguments) {
858- run(args[0].(int), args[1].(int))
859- })
860- return _c
861-}
862-
863-func (_c *MockWidget_SetSizeRequest_Call) Return() *MockWidget_SetSizeRequest_Call {
864- _c.Call.Return()
865- return _c
866-}
867-
868-func (_c *MockWidget_SetSizeRequest_Call) RunAndReturn(run func(int, int)) *MockWidget_SetSizeRequest_Call {
869- _c.Run(run)
870- return _c
871-}
872-
873-// SetValign provides a mock function with given fields: align
874-func (_m *MockWidget) SetValign(align gtk.Align) {
875- _m.Called(align)
876-}
877-
878-// MockWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
879-type MockWidget_SetValign_Call struct {
880- *mock.Call
881-}
882-
883-// SetValign is a helper method to define mock.On call
884-// - align gtk.Align
885-func (_e *MockWidget_Expecter) SetValign(align interface{}) *MockWidget_SetValign_Call {
886- return &MockWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
887-}
888-
889-func (_c *MockWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockWidget_SetValign_Call {
890- _c.Call.Run(func(args mock.Arguments) {
891- run(args[0].(gtk.Align))
892- })
893- return _c
894-}
895-
896-func (_c *MockWidget_SetValign_Call) Return() *MockWidget_SetValign_Call {
897- _c.Call.Return()
898- return _c
899-}
900-
901-func (_c *MockWidget_SetValign_Call) RunAndReturn(run func(gtk.Align)) *MockWidget_SetValign_Call {
902- _c.Run(run)
903- return _c
904-}
905-
906-// SetVexpand provides a mock function with given fields: expand
907-func (_m *MockWidget) SetVexpand(expand bool) {
908- _m.Called(expand)
909-}
910-
911-// MockWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
912-type MockWidget_SetVexpand_Call struct {
913- *mock.Call
914-}
915-
916-// SetVexpand is a helper method to define mock.On call
917-// - expand bool
918-func (_e *MockWidget_Expecter) SetVexpand(expand interface{}) *MockWidget_SetVexpand_Call {
919- return &MockWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
920-}
921-
922-func (_c *MockWidget_SetVexpand_Call) Run(run func(expand bool)) *MockWidget_SetVexpand_Call {
923- _c.Call.Run(func(args mock.Arguments) {
924- run(args[0].(bool))
925- })
926- return _c
927-}
928-
929-func (_c *MockWidget_SetVexpand_Call) Return() *MockWidget_SetVexpand_Call {
930- _c.Call.Return()
931- return _c
932-}
933-
934-func (_c *MockWidget_SetVexpand_Call) RunAndReturn(run func(bool)) *MockWidget_SetVexpand_Call {
935- _c.Run(run)
936- return _c
937-}
938-
939-// SetVisible provides a mock function with given fields: visible
940-func (_m *MockWidget) SetVisible(visible bool) {
941- _m.Called(visible)
942-}
943-
944-// MockWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
945-type MockWidget_SetVisible_Call struct {
946- *mock.Call
947-}
948-
949-// SetVisible is a helper method to define mock.On call
950-// - visible bool
951-func (_e *MockWidget_Expecter) SetVisible(visible interface{}) *MockWidget_SetVisible_Call {
952- return &MockWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
953-}
954-
955-func (_c *MockWidget_SetVisible_Call) Run(run func(visible bool)) *MockWidget_SetVisible_Call {
956- _c.Call.Run(func(args mock.Arguments) {
957- run(args[0].(bool))
958- })
959- return _c
960-}
961-
962-func (_c *MockWidget_SetVisible_Call) Return() *MockWidget_SetVisible_Call {
963- _c.Call.Return()
964- return _c
965-}
966-
967-func (_c *MockWidget_SetVisible_Call) RunAndReturn(run func(bool)) *MockWidget_SetVisible_Call {
968- _c.Run(run)
969- return _c
970-}
971-
972-// Show provides a mock function with no fields
973-func (_m *MockWidget) Show() {
974- _m.Called()
975-}
976-
977-// MockWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
978-type MockWidget_Show_Call struct {
979- *mock.Call
980-}
981-
982-// Show is a helper method to define mock.On call
983-func (_e *MockWidget_Expecter) Show() *MockWidget_Show_Call {
984- return &MockWidget_Show_Call{Call: _e.mock.On("Show")}
985-}
986-
987-func (_c *MockWidget_Show_Call) Run(run func()) *MockWidget_Show_Call {
988- _c.Call.Run(func(args mock.Arguments) {
989- run()
990- })
991- return _c
992-}
993-
994-func (_c *MockWidget_Show_Call) Return() *MockWidget_Show_Call {
995- _c.Call.Return()
996- return _c
997-}
998-
999-func (_c *MockWidget_Show_Call) RunAndReturn(run func()) *MockWidget_Show_Call {
1000- _c.Run(run)
1001- return _c
1002-}
1003-
1004-// Unparent provides a mock function with no fields
1005-func (_m *MockWidget) Unparent() {
1006- _m.Called()
1007-}
1008-
1009-// MockWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1010-type MockWidget_Unparent_Call struct {
1011- *mock.Call
1012-}
1013-
1014-// Unparent is a helper method to define mock.On call
1015-func (_e *MockWidget_Expecter) Unparent() *MockWidget_Unparent_Call {
1016- return &MockWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1017-}
1018-
1019-func (_c *MockWidget_Unparent_Call) Run(run func()) *MockWidget_Unparent_Call {
1020- _c.Call.Run(func(args mock.Arguments) {
1021- run()
1022- })
1023- return _c
1024-}
1025-
1026-func (_c *MockWidget_Unparent_Call) Return() *MockWidget_Unparent_Call {
1027- _c.Call.Return()
1028- return _c
1029-}
1030-
1031-func (_c *MockWidget_Unparent_Call) RunAndReturn(run func()) *MockWidget_Unparent_Call {
1032- _c.Run(run)
1033- return _c
1034-}
1035-
1036-// NewMockWidget creates a new instance of MockWidget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1037-// The first argument is typically a *testing.T value.
1038-func NewMockWidget(t interface {
1039- mock.TestingT
1040- Cleanup(func())
1041-}) *MockWidget {
1042- mock := &MockWidget{}
1043- mock.Mock.Test(t)
1044-
1045- t.Cleanup(func() { mock.AssertExpectations(t) })
1046-
1047- return mock
1048-}
D internal/ui/layout/mocks/mock_widget_factory.go +0 -418
@@ -1,418 +0,0 @@
1-// Code generated by mockery v2.53.5. DO NOT EDIT.
2-
3-package mocks
4-
5-import (
6- layout "github.com/bnema/dumber/internal/ui/layout"
7- gtk "github.com/jwijenbergh/puregotk/v4/gtk"
8-
9- mock "github.com/stretchr/testify/mock"
10-)
11-
12-// MockWidgetFactory is an autogenerated mock type for the WidgetFactory type
13-type MockWidgetFactory struct {
14- mock.Mock
15-}
16-
17-type MockWidgetFactory_Expecter struct {
18- mock *mock.Mock
19-}
20-
21-func (_m *MockWidgetFactory) EXPECT() *MockWidgetFactory_Expecter {
22- return &MockWidgetFactory_Expecter{mock: &_m.Mock}
23-}
24-
25-// NewBox provides a mock function with given fields: orientation, spacing
26-func (_m *MockWidgetFactory) NewBox(orientation gtk.Orientation, spacing int) layout.BoxWidget {
27- ret := _m.Called(orientation, spacing)
28-
29- if len(ret) == 0 {
30- panic("no return value specified for NewBox")
31- }
32-
33- var r0 layout.BoxWidget
34- if rf, ok := ret.Get(0).(func(gtk.Orientation, int) layout.BoxWidget); ok {
35- r0 = rf(orientation, spacing)
36- } else {
37- if ret.Get(0) != nil {
38- r0 = ret.Get(0).(layout.BoxWidget)
39- }
40- }
41-
42- return r0
43-}
44-
45-// MockWidgetFactory_NewBox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewBox'
46-type MockWidgetFactory_NewBox_Call struct {
47- *mock.Call
48-}
49-
50-// NewBox is a helper method to define mock.On call
51-// - orientation gtk.Orientation
52-// - spacing int
53-func (_e *MockWidgetFactory_Expecter) NewBox(orientation interface{}, spacing interface{}) *MockWidgetFactory_NewBox_Call {
54- return &MockWidgetFactory_NewBox_Call{Call: _e.mock.On("NewBox", orientation, spacing)}
55-}
56-
57-func (_c *MockWidgetFactory_NewBox_Call) Run(run func(orientation gtk.Orientation, spacing int)) *MockWidgetFactory_NewBox_Call {
58- _c.Call.Run(func(args mock.Arguments) {
59- run(args[0].(gtk.Orientation), args[1].(int))
60- })
61- return _c
62-}
63-
64-func (_c *MockWidgetFactory_NewBox_Call) Return(_a0 layout.BoxWidget) *MockWidgetFactory_NewBox_Call {
65- _c.Call.Return(_a0)
66- return _c
67-}
68-
69-func (_c *MockWidgetFactory_NewBox_Call) RunAndReturn(run func(gtk.Orientation, int) layout.BoxWidget) *MockWidgetFactory_NewBox_Call {
70- _c.Call.Return(run)
71- return _c
72-}
73-
74-// NewButton provides a mock function with no fields
75-func (_m *MockWidgetFactory) NewButton() layout.ButtonWidget {
76- ret := _m.Called()
77-
78- if len(ret) == 0 {
79- panic("no return value specified for NewButton")
80- }
81-
82- var r0 layout.ButtonWidget
83- if rf, ok := ret.Get(0).(func() layout.ButtonWidget); ok {
84- r0 = rf()
85- } else {
86- if ret.Get(0) != nil {
87- r0 = ret.Get(0).(layout.ButtonWidget)
88- }
89- }
90-
91- return r0
92-}
93-
94-// MockWidgetFactory_NewButton_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewButton'
95-type MockWidgetFactory_NewButton_Call struct {
96- *mock.Call
97-}
98-
99-// NewButton is a helper method to define mock.On call
100-func (_e *MockWidgetFactory_Expecter) NewButton() *MockWidgetFactory_NewButton_Call {
101- return &MockWidgetFactory_NewButton_Call{Call: _e.mock.On("NewButton")}
102-}
103-
104-func (_c *MockWidgetFactory_NewButton_Call) Run(run func()) *MockWidgetFactory_NewButton_Call {
105- _c.Call.Run(func(args mock.Arguments) {
106- run()
107- })
108- return _c
109-}
110-
111-func (_c *MockWidgetFactory_NewButton_Call) Return(_a0 layout.ButtonWidget) *MockWidgetFactory_NewButton_Call {
112- _c.Call.Return(_a0)
113- return _c
114-}
115-
116-func (_c *MockWidgetFactory_NewButton_Call) RunAndReturn(run func() layout.ButtonWidget) *MockWidgetFactory_NewButton_Call {
117- _c.Call.Return(run)
118- return _c
119-}
120-
121-// NewImage provides a mock function with no fields
122-func (_m *MockWidgetFactory) NewImage() layout.ImageWidget {
123- ret := _m.Called()
124-
125- if len(ret) == 0 {
126- panic("no return value specified for NewImage")
127- }
128-
129- var r0 layout.ImageWidget
130- if rf, ok := ret.Get(0).(func() layout.ImageWidget); ok {
131- r0 = rf()
132- } else {
133- if ret.Get(0) != nil {
134- r0 = ret.Get(0).(layout.ImageWidget)
135- }
136- }
137-
138- return r0
139-}
140-
141-// MockWidgetFactory_NewImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewImage'
142-type MockWidgetFactory_NewImage_Call struct {
143- *mock.Call
144-}
145-
146-// NewImage is a helper method to define mock.On call
147-func (_e *MockWidgetFactory_Expecter) NewImage() *MockWidgetFactory_NewImage_Call {
148- return &MockWidgetFactory_NewImage_Call{Call: _e.mock.On("NewImage")}
149-}
150-
151-func (_c *MockWidgetFactory_NewImage_Call) Run(run func()) *MockWidgetFactory_NewImage_Call {
152- _c.Call.Run(func(args mock.Arguments) {
153- run()
154- })
155- return _c
156-}
157-
158-func (_c *MockWidgetFactory_NewImage_Call) Return(_a0 layout.ImageWidget) *MockWidgetFactory_NewImage_Call {
159- _c.Call.Return(_a0)
160- return _c
161-}
162-
163-func (_c *MockWidgetFactory_NewImage_Call) RunAndReturn(run func() layout.ImageWidget) *MockWidgetFactory_NewImage_Call {
164- _c.Call.Return(run)
165- return _c
166-}
167-
168-// NewLabel provides a mock function with given fields: text
169-func (_m *MockWidgetFactory) NewLabel(text string) layout.LabelWidget {
170- ret := _m.Called(text)
171-
172- if len(ret) == 0 {
173- panic("no return value specified for NewLabel")
174- }
175-
176- var r0 layout.LabelWidget
177- if rf, ok := ret.Get(0).(func(string) layout.LabelWidget); ok {
178- r0 = rf(text)
179- } else {
180- if ret.Get(0) != nil {
181- r0 = ret.Get(0).(layout.LabelWidget)
182- }
183- }
184-
185- return r0
186-}
187-
188-// MockWidgetFactory_NewLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewLabel'
189-type MockWidgetFactory_NewLabel_Call struct {
190- *mock.Call
191-}
192-
193-// NewLabel is a helper method to define mock.On call
194-// - text string
195-func (_e *MockWidgetFactory_Expecter) NewLabel(text interface{}) *MockWidgetFactory_NewLabel_Call {
196- return &MockWidgetFactory_NewLabel_Call{Call: _e.mock.On("NewLabel", text)}
197-}
198-
199-func (_c *MockWidgetFactory_NewLabel_Call) Run(run func(text string)) *MockWidgetFactory_NewLabel_Call {
200- _c.Call.Run(func(args mock.Arguments) {
201- run(args[0].(string))
202- })
203- return _c
204-}
205-
206-func (_c *MockWidgetFactory_NewLabel_Call) Return(_a0 layout.LabelWidget) *MockWidgetFactory_NewLabel_Call {
207- _c.Call.Return(_a0)
208- return _c
209-}
210-
211-func (_c *MockWidgetFactory_NewLabel_Call) RunAndReturn(run func(string) layout.LabelWidget) *MockWidgetFactory_NewLabel_Call {
212- _c.Call.Return(run)
213- return _c
214-}
215-
216-// NewOverlay provides a mock function with no fields
217-func (_m *MockWidgetFactory) NewOverlay() layout.OverlayWidget {
218- ret := _m.Called()
219-
220- if len(ret) == 0 {
221- panic("no return value specified for NewOverlay")
222- }
223-
224- var r0 layout.OverlayWidget
225- if rf, ok := ret.Get(0).(func() layout.OverlayWidget); ok {
226- r0 = rf()
227- } else {
228- if ret.Get(0) != nil {
229- r0 = ret.Get(0).(layout.OverlayWidget)
230- }
231- }
232-
233- return r0
234-}
235-
236-// MockWidgetFactory_NewOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewOverlay'
237-type MockWidgetFactory_NewOverlay_Call struct {
238- *mock.Call
239-}
240-
241-// NewOverlay is a helper method to define mock.On call
242-func (_e *MockWidgetFactory_Expecter) NewOverlay() *MockWidgetFactory_NewOverlay_Call {
243- return &MockWidgetFactory_NewOverlay_Call{Call: _e.mock.On("NewOverlay")}
244-}
245-
246-func (_c *MockWidgetFactory_NewOverlay_Call) Run(run func()) *MockWidgetFactory_NewOverlay_Call {
247- _c.Call.Run(func(args mock.Arguments) {
248- run()
249- })
250- return _c
251-}
252-
253-func (_c *MockWidgetFactory_NewOverlay_Call) Return(_a0 layout.OverlayWidget) *MockWidgetFactory_NewOverlay_Call {
254- _c.Call.Return(_a0)
255- return _c
256-}
257-
258-func (_c *MockWidgetFactory_NewOverlay_Call) RunAndReturn(run func() layout.OverlayWidget) *MockWidgetFactory_NewOverlay_Call {
259- _c.Call.Return(run)
260- return _c
261-}
262-
263-// NewPaned provides a mock function with given fields: orientation
264-func (_m *MockWidgetFactory) NewPaned(orientation gtk.Orientation) layout.PanedWidget {
265- ret := _m.Called(orientation)
266-
267- if len(ret) == 0 {
268- panic("no return value specified for NewPaned")
269- }
270-
271- var r0 layout.PanedWidget
272- if rf, ok := ret.Get(0).(func(gtk.Orientation) layout.PanedWidget); ok {
273- r0 = rf(orientation)
274- } else {
275- if ret.Get(0) != nil {
276- r0 = ret.Get(0).(layout.PanedWidget)
277- }
278- }
279-
280- return r0
281-}
282-
283-// MockWidgetFactory_NewPaned_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPaned'
284-type MockWidgetFactory_NewPaned_Call struct {
285- *mock.Call
286-}
287-
288-// NewPaned is a helper method to define mock.On call
289-// - orientation gtk.Orientation
290-func (_e *MockWidgetFactory_Expecter) NewPaned(orientation interface{}) *MockWidgetFactory_NewPaned_Call {
291- return &MockWidgetFactory_NewPaned_Call{Call: _e.mock.On("NewPaned", orientation)}
292-}
293-
294-func (_c *MockWidgetFactory_NewPaned_Call) Run(run func(orientation gtk.Orientation)) *MockWidgetFactory_NewPaned_Call {
295- _c.Call.Run(func(args mock.Arguments) {
296- run(args[0].(gtk.Orientation))
297- })
298- return _c
299-}
300-
301-func (_c *MockWidgetFactory_NewPaned_Call) Return(_a0 layout.PanedWidget) *MockWidgetFactory_NewPaned_Call {
302- _c.Call.Return(_a0)
303- return _c
304-}
305-
306-func (_c *MockWidgetFactory_NewPaned_Call) RunAndReturn(run func(gtk.Orientation) layout.PanedWidget) *MockWidgetFactory_NewPaned_Call {
307- _c.Call.Return(run)
308- return _c
309-}
310-
311-// NewProgressBar provides a mock function with no fields
312-func (_m *MockWidgetFactory) NewProgressBar() layout.ProgressBarWidget {
313- ret := _m.Called()
314-
315- if len(ret) == 0 {
316- panic("no return value specified for NewProgressBar")
317- }
318-
319- var r0 layout.ProgressBarWidget
320- if rf, ok := ret.Get(0).(func() layout.ProgressBarWidget); ok {
321- r0 = rf()
322- } else {
323- if ret.Get(0) != nil {
324- r0 = ret.Get(0).(layout.ProgressBarWidget)
325- }
326- }
327-
328- return r0
329-}
330-
331-// MockWidgetFactory_NewProgressBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewProgressBar'
332-type MockWidgetFactory_NewProgressBar_Call struct {
333- *mock.Call
334-}
335-
336-// NewProgressBar is a helper method to define mock.On call
337-func (_e *MockWidgetFactory_Expecter) NewProgressBar() *MockWidgetFactory_NewProgressBar_Call {
338- return &MockWidgetFactory_NewProgressBar_Call{Call: _e.mock.On("NewProgressBar")}
339-}
340-
341-func (_c *MockWidgetFactory_NewProgressBar_Call) Run(run func()) *MockWidgetFactory_NewProgressBar_Call {
342- _c.Call.Run(func(args mock.Arguments) {
343- run()
344- })
345- return _c
346-}
347-
348-func (_c *MockWidgetFactory_NewProgressBar_Call) Return(_a0 layout.ProgressBarWidget) *MockWidgetFactory_NewProgressBar_Call {
349- _c.Call.Return(_a0)
350- return _c
351-}
352-
353-func (_c *MockWidgetFactory_NewProgressBar_Call) RunAndReturn(run func() layout.ProgressBarWidget) *MockWidgetFactory_NewProgressBar_Call {
354- _c.Call.Return(run)
355- return _c
356-}
357-
358-// WrapWidget provides a mock function with given fields: w
359-func (_m *MockWidgetFactory) WrapWidget(w *gtk.Widget) layout.Widget {
360- ret := _m.Called(w)
361-
362- if len(ret) == 0 {
363- panic("no return value specified for WrapWidget")
364- }
365-
366- var r0 layout.Widget
367- if rf, ok := ret.Get(0).(func(*gtk.Widget) layout.Widget); ok {
368- r0 = rf(w)
369- } else {
370- if ret.Get(0) != nil {
371- r0 = ret.Get(0).(layout.Widget)
372- }
373- }
374-
375- return r0
376-}
377-
378-// MockWidgetFactory_WrapWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WrapWidget'
379-type MockWidgetFactory_WrapWidget_Call struct {
380- *mock.Call
381-}
382-
383-// WrapWidget is a helper method to define mock.On call
384-// - w *gtk.Widget
385-func (_e *MockWidgetFactory_Expecter) WrapWidget(w interface{}) *MockWidgetFactory_WrapWidget_Call {
386- return &MockWidgetFactory_WrapWidget_Call{Call: _e.mock.On("WrapWidget", w)}
387-}
388-
389-func (_c *MockWidgetFactory_WrapWidget_Call) Run(run func(w *gtk.Widget)) *MockWidgetFactory_WrapWidget_Call {
390- _c.Call.Run(func(args mock.Arguments) {
391- run(args[0].(*gtk.Widget))
392- })
393- return _c
394-}
395-
396-func (_c *MockWidgetFactory_WrapWidget_Call) Return(_a0 layout.Widget) *MockWidgetFactory_WrapWidget_Call {
397- _c.Call.Return(_a0)
398- return _c
399-}
400-
401-func (_c *MockWidgetFactory_WrapWidget_Call) RunAndReturn(run func(*gtk.Widget) layout.Widget) *MockWidgetFactory_WrapWidget_Call {
402- _c.Call.Return(run)
403- return _c
404-}
405-
406-// NewMockWidgetFactory creates a new instance of MockWidgetFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
407-// The first argument is typically a *testing.T value.
408-func NewMockWidgetFactory(t interface {
409- mock.TestingT
410- Cleanup(func())
411-}) *MockWidgetFactory {
412- mock := &MockWidgetFactory{}
413- mock.Mock.Test(t)
414-
415- t.Cleanup(func() { mock.AssertExpectations(t) })
416-
417- return mock
418-}
A internal/ui/layout/mocks/mocks.go +11983 -0 large diff (11983 lines changed): collapsed

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close