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
@@ -0,0 +1,11983 @@
1+// Code generated by mockery; DO NOT EDIT.
2+// github.com/vektra/mockery
3+// template: testify
4+
5+package mocks
6+
7+import (
8+ "github.com/bnema/dumber/internal/domain/entity"
9+ "github.com/bnema/dumber/internal/ui/layout"
10+ "github.com/jwijenbergh/puregotk/v4/gtk"
11+ mock "github.com/stretchr/testify/mock"
12+)
13+
14+// 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.
15+// The first argument is typically a *testing.T value.
16+func NewMockPaneViewFactory(t interface {
17+ mock.TestingT
18+ Cleanup(func())
19+}) *MockPaneViewFactory {
20+ mock := &MockPaneViewFactory{}
21+ mock.Mock.Test(t)
22+
23+ t.Cleanup(func() { mock.AssertExpectations(t) })
24+
25+ return mock
26+}
27+
28+// MockPaneViewFactory is an autogenerated mock type for the PaneViewFactory type
29+type MockPaneViewFactory struct {
30+ mock.Mock
31+}
32+
33+type MockPaneViewFactory_Expecter struct {
34+ mock *mock.Mock
35+}
36+
37+func (_m *MockPaneViewFactory) EXPECT() *MockPaneViewFactory_Expecter {
38+ return &MockPaneViewFactory_Expecter{mock: &_m.Mock}
39+}
40+
41+// CreatePaneView provides a mock function for the type MockPaneViewFactory
42+func (_mock *MockPaneViewFactory) CreatePaneView(node *entity.PaneNode) layout.Widget {
43+ ret := _mock.Called(node)
44+
45+ if len(ret) == 0 {
46+ panic("no return value specified for CreatePaneView")
47+ }
48+
49+ var r0 layout.Widget
50+ if returnFunc, ok := ret.Get(0).(func(*entity.PaneNode) layout.Widget); ok {
51+ r0 = returnFunc(node)
52+ } else {
53+ if ret.Get(0) != nil {
54+ r0 = ret.Get(0).(layout.Widget)
55+ }
56+ }
57+ return r0
58+}
59+
60+// MockPaneViewFactory_CreatePaneView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePaneView'
61+type MockPaneViewFactory_CreatePaneView_Call struct {
62+ *mock.Call
63+}
64+
65+// CreatePaneView is a helper method to define mock.On call
66+// - node *entity.PaneNode
67+func (_e *MockPaneViewFactory_Expecter) CreatePaneView(node interface{}) *MockPaneViewFactory_CreatePaneView_Call {
68+ return &MockPaneViewFactory_CreatePaneView_Call{Call: _e.mock.On("CreatePaneView", node)}
69+}
70+
71+func (_c *MockPaneViewFactory_CreatePaneView_Call) Run(run func(node *entity.PaneNode)) *MockPaneViewFactory_CreatePaneView_Call {
72+ _c.Call.Run(func(args mock.Arguments) {
73+ var arg0 *entity.PaneNode
74+ if args[0] != nil {
75+ arg0 = args[0].(*entity.PaneNode)
76+ }
77+ run(
78+ arg0,
79+ )
80+ })
81+ return _c
82+}
83+
84+func (_c *MockPaneViewFactory_CreatePaneView_Call) Return(widget layout.Widget) *MockPaneViewFactory_CreatePaneView_Call {
85+ _c.Call.Return(widget)
86+ return _c
87+}
88+
89+func (_c *MockPaneViewFactory_CreatePaneView_Call) RunAndReturn(run func(node *entity.PaneNode) layout.Widget) *MockPaneViewFactory_CreatePaneView_Call {
90+ _c.Call.Return(run)
91+ return _c
92+}
93+
94+// 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.
95+// The first argument is typically a *testing.T value.
96+func NewMockWidget(t interface {
97+ mock.TestingT
98+ Cleanup(func())
99+}) *MockWidget {
100+ mock := &MockWidget{}
101+ mock.Mock.Test(t)
102+
103+ t.Cleanup(func() { mock.AssertExpectations(t) })
104+
105+ return mock
106+}
107+
108+// MockWidget is an autogenerated mock type for the Widget type
109+type MockWidget struct {
110+ mock.Mock
111+}
112+
113+type MockWidget_Expecter struct {
114+ mock *mock.Mock
115+}
116+
117+func (_m *MockWidget) EXPECT() *MockWidget_Expecter {
118+ return &MockWidget_Expecter{mock: &_m.Mock}
119+}
120+
121+// AddController provides a mock function for the type MockWidget
122+func (_mock *MockWidget) AddController(controller *gtk.EventController) {
123+ _mock.Called(controller)
124+ return
125+}
126+
127+// MockWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
128+type MockWidget_AddController_Call struct {
129+ *mock.Call
130+}
131+
132+// AddController is a helper method to define mock.On call
133+// - controller *gtk.EventController
134+func (_e *MockWidget_Expecter) AddController(controller interface{}) *MockWidget_AddController_Call {
135+ return &MockWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
136+}
137+
138+func (_c *MockWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockWidget_AddController_Call {
139+ _c.Call.Run(func(args mock.Arguments) {
140+ var arg0 *gtk.EventController
141+ if args[0] != nil {
142+ arg0 = args[0].(*gtk.EventController)
143+ }
144+ run(
145+ arg0,
146+ )
147+ })
148+ return _c
149+}
150+
151+func (_c *MockWidget_AddController_Call) Return() *MockWidget_AddController_Call {
152+ _c.Call.Return()
153+ return _c
154+}
155+
156+func (_c *MockWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockWidget_AddController_Call {
157+ _c.Run(run)
158+ return _c
159+}
160+
161+// AddCssClass provides a mock function for the type MockWidget
162+func (_mock *MockWidget) AddCssClass(cssClass string) {
163+ _mock.Called(cssClass)
164+ return
165+}
166+
167+// MockWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
168+type MockWidget_AddCssClass_Call struct {
169+ *mock.Call
170+}
171+
172+// AddCssClass is a helper method to define mock.On call
173+// - cssClass string
174+func (_e *MockWidget_Expecter) AddCssClass(cssClass interface{}) *MockWidget_AddCssClass_Call {
175+ return &MockWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
176+}
177+
178+func (_c *MockWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockWidget_AddCssClass_Call {
179+ _c.Call.Run(func(args mock.Arguments) {
180+ var arg0 string
181+ if args[0] != nil {
182+ arg0 = args[0].(string)
183+ }
184+ run(
185+ arg0,
186+ )
187+ })
188+ return _c
189+}
190+
191+func (_c *MockWidget_AddCssClass_Call) Return() *MockWidget_AddCssClass_Call {
192+ _c.Call.Return()
193+ return _c
194+}
195+
196+func (_c *MockWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockWidget_AddCssClass_Call {
197+ _c.Run(run)
198+ return _c
199+}
200+
201+// ComputePoint provides a mock function for the type MockWidget
202+func (_mock *MockWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
203+ ret := _mock.Called(target)
204+
205+ if len(ret) == 0 {
206+ panic("no return value specified for ComputePoint")
207+ }
208+
209+ var r0 float64
210+ var r1 float64
211+ var r2 bool
212+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
213+ return returnFunc(target)
214+ }
215+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
216+ r0 = returnFunc(target)
217+ } else {
218+ r0 = ret.Get(0).(float64)
219+ }
220+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
221+ r1 = returnFunc(target)
222+ } else {
223+ r1 = ret.Get(1).(float64)
224+ }
225+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
226+ r2 = returnFunc(target)
227+ } else {
228+ r2 = ret.Get(2).(bool)
229+ }
230+ return r0, r1, r2
231+}
232+
233+// MockWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
234+type MockWidget_ComputePoint_Call struct {
235+ *mock.Call
236+}
237+
238+// ComputePoint is a helper method to define mock.On call
239+// - target layout.Widget
240+func (_e *MockWidget_Expecter) ComputePoint(target interface{}) *MockWidget_ComputePoint_Call {
241+ return &MockWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
242+}
243+
244+func (_c *MockWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockWidget_ComputePoint_Call {
245+ _c.Call.Run(func(args mock.Arguments) {
246+ var arg0 layout.Widget
247+ if args[0] != nil {
248+ arg0 = args[0].(layout.Widget)
249+ }
250+ run(
251+ arg0,
252+ )
253+ })
254+ return _c
255+}
256+
257+func (_c *MockWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockWidget_ComputePoint_Call {
258+ _c.Call.Return(x, y, ok)
259+ return _c
260+}
261+
262+func (_c *MockWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockWidget_ComputePoint_Call {
263+ _c.Call.Return(run)
264+ return _c
265+}
266+
267+// GetAllocatedHeight provides a mock function for the type MockWidget
268+func (_mock *MockWidget) GetAllocatedHeight() int {
269+ ret := _mock.Called()
270+
271+ if len(ret) == 0 {
272+ panic("no return value specified for GetAllocatedHeight")
273+ }
274+
275+ var r0 int
276+ if returnFunc, ok := ret.Get(0).(func() int); ok {
277+ r0 = returnFunc()
278+ } else {
279+ r0 = ret.Get(0).(int)
280+ }
281+ return r0
282+}
283+
284+// MockWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
285+type MockWidget_GetAllocatedHeight_Call struct {
286+ *mock.Call
287+}
288+
289+// GetAllocatedHeight is a helper method to define mock.On call
290+func (_e *MockWidget_Expecter) GetAllocatedHeight() *MockWidget_GetAllocatedHeight_Call {
291+ return &MockWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
292+}
293+
294+func (_c *MockWidget_GetAllocatedHeight_Call) Run(run func()) *MockWidget_GetAllocatedHeight_Call {
295+ _c.Call.Run(func(args mock.Arguments) {
296+ run()
297+ })
298+ return _c
299+}
300+
301+func (_c *MockWidget_GetAllocatedHeight_Call) Return(n int) *MockWidget_GetAllocatedHeight_Call {
302+ _c.Call.Return(n)
303+ return _c
304+}
305+
306+func (_c *MockWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockWidget_GetAllocatedHeight_Call {
307+ _c.Call.Return(run)
308+ return _c
309+}
310+
311+// GetAllocatedWidth provides a mock function for the type MockWidget
312+func (_mock *MockWidget) GetAllocatedWidth() int {
313+ ret := _mock.Called()
314+
315+ if len(ret) == 0 {
316+ panic("no return value specified for GetAllocatedWidth")
317+ }
318+
319+ var r0 int
320+ if returnFunc, ok := ret.Get(0).(func() int); ok {
321+ r0 = returnFunc()
322+ } else {
323+ r0 = ret.Get(0).(int)
324+ }
325+ return r0
326+}
327+
328+// MockWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
329+type MockWidget_GetAllocatedWidth_Call struct {
330+ *mock.Call
331+}
332+
333+// GetAllocatedWidth is a helper method to define mock.On call
334+func (_e *MockWidget_Expecter) GetAllocatedWidth() *MockWidget_GetAllocatedWidth_Call {
335+ return &MockWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
336+}
337+
338+func (_c *MockWidget_GetAllocatedWidth_Call) Run(run func()) *MockWidget_GetAllocatedWidth_Call {
339+ _c.Call.Run(func(args mock.Arguments) {
340+ run()
341+ })
342+ return _c
343+}
344+
345+func (_c *MockWidget_GetAllocatedWidth_Call) Return(n int) *MockWidget_GetAllocatedWidth_Call {
346+ _c.Call.Return(n)
347+ return _c
348+}
349+
350+func (_c *MockWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockWidget_GetAllocatedWidth_Call {
351+ _c.Call.Return(run)
352+ return _c
353+}
354+
355+// GetHexpand provides a mock function for the type MockWidget
356+func (_mock *MockWidget) GetHexpand() bool {
357+ ret := _mock.Called()
358+
359+ if len(ret) == 0 {
360+ panic("no return value specified for GetHexpand")
361+ }
362+
363+ var r0 bool
364+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
365+ r0 = returnFunc()
366+ } else {
367+ r0 = ret.Get(0).(bool)
368+ }
369+ return r0
370+}
371+
372+// MockWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
373+type MockWidget_GetHexpand_Call struct {
374+ *mock.Call
375+}
376+
377+// GetHexpand is a helper method to define mock.On call
378+func (_e *MockWidget_Expecter) GetHexpand() *MockWidget_GetHexpand_Call {
379+ return &MockWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
380+}
381+
382+func (_c *MockWidget_GetHexpand_Call) Run(run func()) *MockWidget_GetHexpand_Call {
383+ _c.Call.Run(func(args mock.Arguments) {
384+ run()
385+ })
386+ return _c
387+}
388+
389+func (_c *MockWidget_GetHexpand_Call) Return(b bool) *MockWidget_GetHexpand_Call {
390+ _c.Call.Return(b)
391+ return _c
392+}
393+
394+func (_c *MockWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockWidget_GetHexpand_Call {
395+ _c.Call.Return(run)
396+ return _c
397+}
398+
399+// GetParent provides a mock function for the type MockWidget
400+func (_mock *MockWidget) GetParent() layout.Widget {
401+ ret := _mock.Called()
402+
403+ if len(ret) == 0 {
404+ panic("no return value specified for GetParent")
405+ }
406+
407+ var r0 layout.Widget
408+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
409+ r0 = returnFunc()
410+ } else {
411+ if ret.Get(0) != nil {
412+ r0 = ret.Get(0).(layout.Widget)
413+ }
414+ }
415+ return r0
416+}
417+
418+// MockWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
419+type MockWidget_GetParent_Call struct {
420+ *mock.Call
421+}
422+
423+// GetParent is a helper method to define mock.On call
424+func (_e *MockWidget_Expecter) GetParent() *MockWidget_GetParent_Call {
425+ return &MockWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
426+}
427+
428+func (_c *MockWidget_GetParent_Call) Run(run func()) *MockWidget_GetParent_Call {
429+ _c.Call.Run(func(args mock.Arguments) {
430+ run()
431+ })
432+ return _c
433+}
434+
435+func (_c *MockWidget_GetParent_Call) Return(widget layout.Widget) *MockWidget_GetParent_Call {
436+ _c.Call.Return(widget)
437+ return _c
438+}
439+
440+func (_c *MockWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockWidget_GetParent_Call {
441+ _c.Call.Return(run)
442+ return _c
443+}
444+
445+// GetVexpand provides a mock function for the type MockWidget
446+func (_mock *MockWidget) GetVexpand() bool {
447+ ret := _mock.Called()
448+
449+ if len(ret) == 0 {
450+ panic("no return value specified for GetVexpand")
451+ }
452+
453+ var r0 bool
454+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
455+ r0 = returnFunc()
456+ } else {
457+ r0 = ret.Get(0).(bool)
458+ }
459+ return r0
460+}
461+
462+// MockWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
463+type MockWidget_GetVexpand_Call struct {
464+ *mock.Call
465+}
466+
467+// GetVexpand is a helper method to define mock.On call
468+func (_e *MockWidget_Expecter) GetVexpand() *MockWidget_GetVexpand_Call {
469+ return &MockWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
470+}
471+
472+func (_c *MockWidget_GetVexpand_Call) Run(run func()) *MockWidget_GetVexpand_Call {
473+ _c.Call.Run(func(args mock.Arguments) {
474+ run()
475+ })
476+ return _c
477+}
478+
479+func (_c *MockWidget_GetVexpand_Call) Return(b bool) *MockWidget_GetVexpand_Call {
480+ _c.Call.Return(b)
481+ return _c
482+}
483+
484+func (_c *MockWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockWidget_GetVexpand_Call {
485+ _c.Call.Return(run)
486+ return _c
487+}
488+
489+// GrabFocus provides a mock function for the type MockWidget
490+func (_mock *MockWidget) GrabFocus() bool {
491+ ret := _mock.Called()
492+
493+ if len(ret) == 0 {
494+ panic("no return value specified for GrabFocus")
495+ }
496+
497+ var r0 bool
498+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
499+ r0 = returnFunc()
500+ } else {
501+ r0 = ret.Get(0).(bool)
502+ }
503+ return r0
504+}
505+
506+// MockWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
507+type MockWidget_GrabFocus_Call struct {
508+ *mock.Call
509+}
510+
511+// GrabFocus is a helper method to define mock.On call
512+func (_e *MockWidget_Expecter) GrabFocus() *MockWidget_GrabFocus_Call {
513+ return &MockWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
514+}
515+
516+func (_c *MockWidget_GrabFocus_Call) Run(run func()) *MockWidget_GrabFocus_Call {
517+ _c.Call.Run(func(args mock.Arguments) {
518+ run()
519+ })
520+ return _c
521+}
522+
523+func (_c *MockWidget_GrabFocus_Call) Return(b bool) *MockWidget_GrabFocus_Call {
524+ _c.Call.Return(b)
525+ return _c
526+}
527+
528+func (_c *MockWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockWidget_GrabFocus_Call {
529+ _c.Call.Return(run)
530+ return _c
531+}
532+
533+// GtkWidget provides a mock function for the type MockWidget
534+func (_mock *MockWidget) GtkWidget() *gtk.Widget {
535+ ret := _mock.Called()
536+
537+ if len(ret) == 0 {
538+ panic("no return value specified for GtkWidget")
539+ }
540+
541+ var r0 *gtk.Widget
542+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
543+ r0 = returnFunc()
544+ } else {
545+ if ret.Get(0) != nil {
546+ r0 = ret.Get(0).(*gtk.Widget)
547+ }
548+ }
549+ return r0
550+}
551+
552+// MockWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
553+type MockWidget_GtkWidget_Call struct {
554+ *mock.Call
555+}
556+
557+// GtkWidget is a helper method to define mock.On call
558+func (_e *MockWidget_Expecter) GtkWidget() *MockWidget_GtkWidget_Call {
559+ return &MockWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
560+}
561+
562+func (_c *MockWidget_GtkWidget_Call) Run(run func()) *MockWidget_GtkWidget_Call {
563+ _c.Call.Run(func(args mock.Arguments) {
564+ run()
565+ })
566+ return _c
567+}
568+
569+func (_c *MockWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockWidget_GtkWidget_Call {
570+ _c.Call.Return(widget)
571+ return _c
572+}
573+
574+func (_c *MockWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockWidget_GtkWidget_Call {
575+ _c.Call.Return(run)
576+ return _c
577+}
578+
579+// HasCssClass provides a mock function for the type MockWidget
580+func (_mock *MockWidget) HasCssClass(cssClass string) bool {
581+ ret := _mock.Called(cssClass)
582+
583+ if len(ret) == 0 {
584+ panic("no return value specified for HasCssClass")
585+ }
586+
587+ var r0 bool
588+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
589+ r0 = returnFunc(cssClass)
590+ } else {
591+ r0 = ret.Get(0).(bool)
592+ }
593+ return r0
594+}
595+
596+// MockWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
597+type MockWidget_HasCssClass_Call struct {
598+ *mock.Call
599+}
600+
601+// HasCssClass is a helper method to define mock.On call
602+// - cssClass string
603+func (_e *MockWidget_Expecter) HasCssClass(cssClass interface{}) *MockWidget_HasCssClass_Call {
604+ return &MockWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
605+}
606+
607+func (_c *MockWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockWidget_HasCssClass_Call {
608+ _c.Call.Run(func(args mock.Arguments) {
609+ var arg0 string
610+ if args[0] != nil {
611+ arg0 = args[0].(string)
612+ }
613+ run(
614+ arg0,
615+ )
616+ })
617+ return _c
618+}
619+
620+func (_c *MockWidget_HasCssClass_Call) Return(b bool) *MockWidget_HasCssClass_Call {
621+ _c.Call.Return(b)
622+ return _c
623+}
624+
625+func (_c *MockWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockWidget_HasCssClass_Call {
626+ _c.Call.Return(run)
627+ return _c
628+}
629+
630+// HasFocus provides a mock function for the type MockWidget
631+func (_mock *MockWidget) HasFocus() bool {
632+ ret := _mock.Called()
633+
634+ if len(ret) == 0 {
635+ panic("no return value specified for HasFocus")
636+ }
637+
638+ var r0 bool
639+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
640+ r0 = returnFunc()
641+ } else {
642+ r0 = ret.Get(0).(bool)
643+ }
644+ return r0
645+}
646+
647+// MockWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
648+type MockWidget_HasFocus_Call struct {
649+ *mock.Call
650+}
651+
652+// HasFocus is a helper method to define mock.On call
653+func (_e *MockWidget_Expecter) HasFocus() *MockWidget_HasFocus_Call {
654+ return &MockWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
655+}
656+
657+func (_c *MockWidget_HasFocus_Call) Run(run func()) *MockWidget_HasFocus_Call {
658+ _c.Call.Run(func(args mock.Arguments) {
659+ run()
660+ })
661+ return _c
662+}
663+
664+func (_c *MockWidget_HasFocus_Call) Return(b bool) *MockWidget_HasFocus_Call {
665+ _c.Call.Return(b)
666+ return _c
667+}
668+
669+func (_c *MockWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockWidget_HasFocus_Call {
670+ _c.Call.Return(run)
671+ return _c
672+}
673+
674+// Hide provides a mock function for the type MockWidget
675+func (_mock *MockWidget) Hide() {
676+ _mock.Called()
677+ return
678+}
679+
680+// MockWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
681+type MockWidget_Hide_Call struct {
682+ *mock.Call
683+}
684+
685+// Hide is a helper method to define mock.On call
686+func (_e *MockWidget_Expecter) Hide() *MockWidget_Hide_Call {
687+ return &MockWidget_Hide_Call{Call: _e.mock.On("Hide")}
688+}
689+
690+func (_c *MockWidget_Hide_Call) Run(run func()) *MockWidget_Hide_Call {
691+ _c.Call.Run(func(args mock.Arguments) {
692+ run()
693+ })
694+ return _c
695+}
696+
697+func (_c *MockWidget_Hide_Call) Return() *MockWidget_Hide_Call {
698+ _c.Call.Return()
699+ return _c
700+}
701+
702+func (_c *MockWidget_Hide_Call) RunAndReturn(run func()) *MockWidget_Hide_Call {
703+ _c.Run(run)
704+ return _c
705+}
706+
707+// IsVisible provides a mock function for the type MockWidget
708+func (_mock *MockWidget) IsVisible() bool {
709+ ret := _mock.Called()
710+
711+ if len(ret) == 0 {
712+ panic("no return value specified for IsVisible")
713+ }
714+
715+ var r0 bool
716+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
717+ r0 = returnFunc()
718+ } else {
719+ r0 = ret.Get(0).(bool)
720+ }
721+ return r0
722+}
723+
724+// MockWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
725+type MockWidget_IsVisible_Call struct {
726+ *mock.Call
727+}
728+
729+// IsVisible is a helper method to define mock.On call
730+func (_e *MockWidget_Expecter) IsVisible() *MockWidget_IsVisible_Call {
731+ return &MockWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
732+}
733+
734+func (_c *MockWidget_IsVisible_Call) Run(run func()) *MockWidget_IsVisible_Call {
735+ _c.Call.Run(func(args mock.Arguments) {
736+ run()
737+ })
738+ return _c
739+}
740+
741+func (_c *MockWidget_IsVisible_Call) Return(b bool) *MockWidget_IsVisible_Call {
742+ _c.Call.Return(b)
743+ return _c
744+}
745+
746+func (_c *MockWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockWidget_IsVisible_Call {
747+ _c.Call.Return(run)
748+ return _c
749+}
750+
751+// RemoveCssClass provides a mock function for the type MockWidget
752+func (_mock *MockWidget) RemoveCssClass(cssClass string) {
753+ _mock.Called(cssClass)
754+ return
755+}
756+
757+// MockWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
758+type MockWidget_RemoveCssClass_Call struct {
759+ *mock.Call
760+}
761+
762+// RemoveCssClass is a helper method to define mock.On call
763+// - cssClass string
764+func (_e *MockWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockWidget_RemoveCssClass_Call {
765+ return &MockWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
766+}
767+
768+func (_c *MockWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockWidget_RemoveCssClass_Call {
769+ _c.Call.Run(func(args mock.Arguments) {
770+ var arg0 string
771+ if args[0] != nil {
772+ arg0 = args[0].(string)
773+ }
774+ run(
775+ arg0,
776+ )
777+ })
778+ return _c
779+}
780+
781+func (_c *MockWidget_RemoveCssClass_Call) Return() *MockWidget_RemoveCssClass_Call {
782+ _c.Call.Return()
783+ return _c
784+}
785+
786+func (_c *MockWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockWidget_RemoveCssClass_Call {
787+ _c.Run(run)
788+ return _c
789+}
790+
791+// SetCanFocus provides a mock function for the type MockWidget
792+func (_mock *MockWidget) SetCanFocus(canFocus bool) {
793+ _mock.Called(canFocus)
794+ return
795+}
796+
797+// MockWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
798+type MockWidget_SetCanFocus_Call struct {
799+ *mock.Call
800+}
801+
802+// SetCanFocus is a helper method to define mock.On call
803+// - canFocus bool
804+func (_e *MockWidget_Expecter) SetCanFocus(canFocus interface{}) *MockWidget_SetCanFocus_Call {
805+ return &MockWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
806+}
807+
808+func (_c *MockWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockWidget_SetCanFocus_Call {
809+ _c.Call.Run(func(args mock.Arguments) {
810+ var arg0 bool
811+ if args[0] != nil {
812+ arg0 = args[0].(bool)
813+ }
814+ run(
815+ arg0,
816+ )
817+ })
818+ return _c
819+}
820+
821+func (_c *MockWidget_SetCanFocus_Call) Return() *MockWidget_SetCanFocus_Call {
822+ _c.Call.Return()
823+ return _c
824+}
825+
826+func (_c *MockWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockWidget_SetCanFocus_Call {
827+ _c.Run(run)
828+ return _c
829+}
830+
831+// SetCanTarget provides a mock function for the type MockWidget
832+func (_mock *MockWidget) SetCanTarget(canTarget bool) {
833+ _mock.Called(canTarget)
834+ return
835+}
836+
837+// MockWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
838+type MockWidget_SetCanTarget_Call struct {
839+ *mock.Call
840+}
841+
842+// SetCanTarget is a helper method to define mock.On call
843+// - canTarget bool
844+func (_e *MockWidget_Expecter) SetCanTarget(canTarget interface{}) *MockWidget_SetCanTarget_Call {
845+ return &MockWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
846+}
847+
848+func (_c *MockWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockWidget_SetCanTarget_Call {
849+ _c.Call.Run(func(args mock.Arguments) {
850+ var arg0 bool
851+ if args[0] != nil {
852+ arg0 = args[0].(bool)
853+ }
854+ run(
855+ arg0,
856+ )
857+ })
858+ return _c
859+}
860+
861+func (_c *MockWidget_SetCanTarget_Call) Return() *MockWidget_SetCanTarget_Call {
862+ _c.Call.Return()
863+ return _c
864+}
865+
866+func (_c *MockWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockWidget_SetCanTarget_Call {
867+ _c.Run(run)
868+ return _c
869+}
870+
871+// SetFocusOnClick provides a mock function for the type MockWidget
872+func (_mock *MockWidget) SetFocusOnClick(focusOnClick bool) {
873+ _mock.Called(focusOnClick)
874+ return
875+}
876+
877+// MockWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
878+type MockWidget_SetFocusOnClick_Call struct {
879+ *mock.Call
880+}
881+
882+// SetFocusOnClick is a helper method to define mock.On call
883+// - focusOnClick bool
884+func (_e *MockWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockWidget_SetFocusOnClick_Call {
885+ return &MockWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
886+}
887+
888+func (_c *MockWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockWidget_SetFocusOnClick_Call {
889+ _c.Call.Run(func(args mock.Arguments) {
890+ var arg0 bool
891+ if args[0] != nil {
892+ arg0 = args[0].(bool)
893+ }
894+ run(
895+ arg0,
896+ )
897+ })
898+ return _c
899+}
900+
901+func (_c *MockWidget_SetFocusOnClick_Call) Return() *MockWidget_SetFocusOnClick_Call {
902+ _c.Call.Return()
903+ return _c
904+}
905+
906+func (_c *MockWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockWidget_SetFocusOnClick_Call {
907+ _c.Run(run)
908+ return _c
909+}
910+
911+// SetHalign provides a mock function for the type MockWidget
912+func (_mock *MockWidget) SetHalign(align gtk.Align) {
913+ _mock.Called(align)
914+ return
915+}
916+
917+// MockWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
918+type MockWidget_SetHalign_Call struct {
919+ *mock.Call
920+}
921+
922+// SetHalign is a helper method to define mock.On call
923+// - align gtk.Align
924+func (_e *MockWidget_Expecter) SetHalign(align interface{}) *MockWidget_SetHalign_Call {
925+ return &MockWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
926+}
927+
928+func (_c *MockWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockWidget_SetHalign_Call {
929+ _c.Call.Run(func(args mock.Arguments) {
930+ var arg0 gtk.Align
931+ if args[0] != nil {
932+ arg0 = args[0].(gtk.Align)
933+ }
934+ run(
935+ arg0,
936+ )
937+ })
938+ return _c
939+}
940+
941+func (_c *MockWidget_SetHalign_Call) Return() *MockWidget_SetHalign_Call {
942+ _c.Call.Return()
943+ return _c
944+}
945+
946+func (_c *MockWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockWidget_SetHalign_Call {
947+ _c.Run(run)
948+ return _c
949+}
950+
951+// SetHexpand provides a mock function for the type MockWidget
952+func (_mock *MockWidget) SetHexpand(expand bool) {
953+ _mock.Called(expand)
954+ return
955+}
956+
957+// MockWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
958+type MockWidget_SetHexpand_Call struct {
959+ *mock.Call
960+}
961+
962+// SetHexpand is a helper method to define mock.On call
963+// - expand bool
964+func (_e *MockWidget_Expecter) SetHexpand(expand interface{}) *MockWidget_SetHexpand_Call {
965+ return &MockWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
966+}
967+
968+func (_c *MockWidget_SetHexpand_Call) Run(run func(expand bool)) *MockWidget_SetHexpand_Call {
969+ _c.Call.Run(func(args mock.Arguments) {
970+ var arg0 bool
971+ if args[0] != nil {
972+ arg0 = args[0].(bool)
973+ }
974+ run(
975+ arg0,
976+ )
977+ })
978+ return _c
979+}
980+
981+func (_c *MockWidget_SetHexpand_Call) Return() *MockWidget_SetHexpand_Call {
982+ _c.Call.Return()
983+ return _c
984+}
985+
986+func (_c *MockWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockWidget_SetHexpand_Call {
987+ _c.Run(run)
988+ return _c
989+}
990+
991+// SetSizeRequest provides a mock function for the type MockWidget
992+func (_mock *MockWidget) SetSizeRequest(width int, height int) {
993+ _mock.Called(width, height)
994+ return
995+}
996+
997+// MockWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
998+type MockWidget_SetSizeRequest_Call struct {
999+ *mock.Call
1000+}
1001+
1002+// SetSizeRequest is a helper method to define mock.On call
1003+// - width int
1004+// - height int
1005+func (_e *MockWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockWidget_SetSizeRequest_Call {
1006+ return &MockWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
1007+}
1008+
1009+func (_c *MockWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockWidget_SetSizeRequest_Call {
1010+ _c.Call.Run(func(args mock.Arguments) {
1011+ var arg0 int
1012+ if args[0] != nil {
1013+ arg0 = args[0].(int)
1014+ }
1015+ var arg1 int
1016+ if args[1] != nil {
1017+ arg1 = args[1].(int)
1018+ }
1019+ run(
1020+ arg0,
1021+ arg1,
1022+ )
1023+ })
1024+ return _c
1025+}
1026+
1027+func (_c *MockWidget_SetSizeRequest_Call) Return() *MockWidget_SetSizeRequest_Call {
1028+ _c.Call.Return()
1029+ return _c
1030+}
1031+
1032+func (_c *MockWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockWidget_SetSizeRequest_Call {
1033+ _c.Run(run)
1034+ return _c
1035+}
1036+
1037+// SetValign provides a mock function for the type MockWidget
1038+func (_mock *MockWidget) SetValign(align gtk.Align) {
1039+ _mock.Called(align)
1040+ return
1041+}
1042+
1043+// MockWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
1044+type MockWidget_SetValign_Call struct {
1045+ *mock.Call
1046+}
1047+
1048+// SetValign is a helper method to define mock.On call
1049+// - align gtk.Align
1050+func (_e *MockWidget_Expecter) SetValign(align interface{}) *MockWidget_SetValign_Call {
1051+ return &MockWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
1052+}
1053+
1054+func (_c *MockWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockWidget_SetValign_Call {
1055+ _c.Call.Run(func(args mock.Arguments) {
1056+ var arg0 gtk.Align
1057+ if args[0] != nil {
1058+ arg0 = args[0].(gtk.Align)
1059+ }
1060+ run(
1061+ arg0,
1062+ )
1063+ })
1064+ return _c
1065+}
1066+
1067+func (_c *MockWidget_SetValign_Call) Return() *MockWidget_SetValign_Call {
1068+ _c.Call.Return()
1069+ return _c
1070+}
1071+
1072+func (_c *MockWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockWidget_SetValign_Call {
1073+ _c.Run(run)
1074+ return _c
1075+}
1076+
1077+// SetVexpand provides a mock function for the type MockWidget
1078+func (_mock *MockWidget) SetVexpand(expand bool) {
1079+ _mock.Called(expand)
1080+ return
1081+}
1082+
1083+// MockWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
1084+type MockWidget_SetVexpand_Call struct {
1085+ *mock.Call
1086+}
1087+
1088+// SetVexpand is a helper method to define mock.On call
1089+// - expand bool
1090+func (_e *MockWidget_Expecter) SetVexpand(expand interface{}) *MockWidget_SetVexpand_Call {
1091+ return &MockWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
1092+}
1093+
1094+func (_c *MockWidget_SetVexpand_Call) Run(run func(expand bool)) *MockWidget_SetVexpand_Call {
1095+ _c.Call.Run(func(args mock.Arguments) {
1096+ var arg0 bool
1097+ if args[0] != nil {
1098+ arg0 = args[0].(bool)
1099+ }
1100+ run(
1101+ arg0,
1102+ )
1103+ })
1104+ return _c
1105+}
1106+
1107+func (_c *MockWidget_SetVexpand_Call) Return() *MockWidget_SetVexpand_Call {
1108+ _c.Call.Return()
1109+ return _c
1110+}
1111+
1112+func (_c *MockWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockWidget_SetVexpand_Call {
1113+ _c.Run(run)
1114+ return _c
1115+}
1116+
1117+// SetVisible provides a mock function for the type MockWidget
1118+func (_mock *MockWidget) SetVisible(visible bool) {
1119+ _mock.Called(visible)
1120+ return
1121+}
1122+
1123+// MockWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
1124+type MockWidget_SetVisible_Call struct {
1125+ *mock.Call
1126+}
1127+
1128+// SetVisible is a helper method to define mock.On call
1129+// - visible bool
1130+func (_e *MockWidget_Expecter) SetVisible(visible interface{}) *MockWidget_SetVisible_Call {
1131+ return &MockWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
1132+}
1133+
1134+func (_c *MockWidget_SetVisible_Call) Run(run func(visible bool)) *MockWidget_SetVisible_Call {
1135+ _c.Call.Run(func(args mock.Arguments) {
1136+ var arg0 bool
1137+ if args[0] != nil {
1138+ arg0 = args[0].(bool)
1139+ }
1140+ run(
1141+ arg0,
1142+ )
1143+ })
1144+ return _c
1145+}
1146+
1147+func (_c *MockWidget_SetVisible_Call) Return() *MockWidget_SetVisible_Call {
1148+ _c.Call.Return()
1149+ return _c
1150+}
1151+
1152+func (_c *MockWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockWidget_SetVisible_Call {
1153+ _c.Run(run)
1154+ return _c
1155+}
1156+
1157+// Show provides a mock function for the type MockWidget
1158+func (_mock *MockWidget) Show() {
1159+ _mock.Called()
1160+ return
1161+}
1162+
1163+// MockWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
1164+type MockWidget_Show_Call struct {
1165+ *mock.Call
1166+}
1167+
1168+// Show is a helper method to define mock.On call
1169+func (_e *MockWidget_Expecter) Show() *MockWidget_Show_Call {
1170+ return &MockWidget_Show_Call{Call: _e.mock.On("Show")}
1171+}
1172+
1173+func (_c *MockWidget_Show_Call) Run(run func()) *MockWidget_Show_Call {
1174+ _c.Call.Run(func(args mock.Arguments) {
1175+ run()
1176+ })
1177+ return _c
1178+}
1179+
1180+func (_c *MockWidget_Show_Call) Return() *MockWidget_Show_Call {
1181+ _c.Call.Return()
1182+ return _c
1183+}
1184+
1185+func (_c *MockWidget_Show_Call) RunAndReturn(run func()) *MockWidget_Show_Call {
1186+ _c.Run(run)
1187+ return _c
1188+}
1189+
1190+// Unparent provides a mock function for the type MockWidget
1191+func (_mock *MockWidget) Unparent() {
1192+ _mock.Called()
1193+ return
1194+}
1195+
1196+// MockWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
1197+type MockWidget_Unparent_Call struct {
1198+ *mock.Call
1199+}
1200+
1201+// Unparent is a helper method to define mock.On call
1202+func (_e *MockWidget_Expecter) Unparent() *MockWidget_Unparent_Call {
1203+ return &MockWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
1204+}
1205+
1206+func (_c *MockWidget_Unparent_Call) Run(run func()) *MockWidget_Unparent_Call {
1207+ _c.Call.Run(func(args mock.Arguments) {
1208+ run()
1209+ })
1210+ return _c
1211+}
1212+
1213+func (_c *MockWidget_Unparent_Call) Return() *MockWidget_Unparent_Call {
1214+ _c.Call.Return()
1215+ return _c
1216+}
1217+
1218+func (_c *MockWidget_Unparent_Call) RunAndReturn(run func()) *MockWidget_Unparent_Call {
1219+ _c.Run(run)
1220+ return _c
1221+}
1222+
1223+// 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.
1224+// The first argument is typically a *testing.T value.
1225+func NewMockPanedWidget(t interface {
1226+ mock.TestingT
1227+ Cleanup(func())
1228+}) *MockPanedWidget {
1229+ mock := &MockPanedWidget{}
1230+ mock.Mock.Test(t)
1231+
1232+ t.Cleanup(func() { mock.AssertExpectations(t) })
1233+
1234+ return mock
1235+}
1236+
1237+// MockPanedWidget is an autogenerated mock type for the PanedWidget type
1238+type MockPanedWidget struct {
1239+ mock.Mock
1240+}
1241+
1242+type MockPanedWidget_Expecter struct {
1243+ mock *mock.Mock
1244+}
1245+
1246+func (_m *MockPanedWidget) EXPECT() *MockPanedWidget_Expecter {
1247+ return &MockPanedWidget_Expecter{mock: &_m.Mock}
1248+}
1249+
1250+// AddController provides a mock function for the type MockPanedWidget
1251+func (_mock *MockPanedWidget) AddController(controller *gtk.EventController) {
1252+ _mock.Called(controller)
1253+ return
1254+}
1255+
1256+// MockPanedWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
1257+type MockPanedWidget_AddController_Call struct {
1258+ *mock.Call
1259+}
1260+
1261+// AddController is a helper method to define mock.On call
1262+// - controller *gtk.EventController
1263+func (_e *MockPanedWidget_Expecter) AddController(controller interface{}) *MockPanedWidget_AddController_Call {
1264+ return &MockPanedWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
1265+}
1266+
1267+func (_c *MockPanedWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockPanedWidget_AddController_Call {
1268+ _c.Call.Run(func(args mock.Arguments) {
1269+ var arg0 *gtk.EventController
1270+ if args[0] != nil {
1271+ arg0 = args[0].(*gtk.EventController)
1272+ }
1273+ run(
1274+ arg0,
1275+ )
1276+ })
1277+ return _c
1278+}
1279+
1280+func (_c *MockPanedWidget_AddController_Call) Return() *MockPanedWidget_AddController_Call {
1281+ _c.Call.Return()
1282+ return _c
1283+}
1284+
1285+func (_c *MockPanedWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockPanedWidget_AddController_Call {
1286+ _c.Run(run)
1287+ return _c
1288+}
1289+
1290+// AddCssClass provides a mock function for the type MockPanedWidget
1291+func (_mock *MockPanedWidget) AddCssClass(cssClass string) {
1292+ _mock.Called(cssClass)
1293+ return
1294+}
1295+
1296+// MockPanedWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
1297+type MockPanedWidget_AddCssClass_Call struct {
1298+ *mock.Call
1299+}
1300+
1301+// AddCssClass is a helper method to define mock.On call
1302+// - cssClass string
1303+func (_e *MockPanedWidget_Expecter) AddCssClass(cssClass interface{}) *MockPanedWidget_AddCssClass_Call {
1304+ return &MockPanedWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
1305+}
1306+
1307+func (_c *MockPanedWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockPanedWidget_AddCssClass_Call {
1308+ _c.Call.Run(func(args mock.Arguments) {
1309+ var arg0 string
1310+ if args[0] != nil {
1311+ arg0 = args[0].(string)
1312+ }
1313+ run(
1314+ arg0,
1315+ )
1316+ })
1317+ return _c
1318+}
1319+
1320+func (_c *MockPanedWidget_AddCssClass_Call) Return() *MockPanedWidget_AddCssClass_Call {
1321+ _c.Call.Return()
1322+ return _c
1323+}
1324+
1325+func (_c *MockPanedWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockPanedWidget_AddCssClass_Call {
1326+ _c.Run(run)
1327+ return _c
1328+}
1329+
1330+// AddTickCallback provides a mock function for the type MockPanedWidget
1331+func (_mock *MockPanedWidget) AddTickCallback(callback func() bool) uint {
1332+ ret := _mock.Called(callback)
1333+
1334+ if len(ret) == 0 {
1335+ panic("no return value specified for AddTickCallback")
1336+ }
1337+
1338+ var r0 uint
1339+ if returnFunc, ok := ret.Get(0).(func(func() bool) uint); ok {
1340+ r0 = returnFunc(callback)
1341+ } else {
1342+ r0 = ret.Get(0).(uint)
1343+ }
1344+ return r0
1345+}
1346+
1347+// MockPanedWidget_AddTickCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTickCallback'
1348+type MockPanedWidget_AddTickCallback_Call struct {
1349+ *mock.Call
1350+}
1351+
1352+// AddTickCallback is a helper method to define mock.On call
1353+// - callback func() bool
1354+func (_e *MockPanedWidget_Expecter) AddTickCallback(callback interface{}) *MockPanedWidget_AddTickCallback_Call {
1355+ return &MockPanedWidget_AddTickCallback_Call{Call: _e.mock.On("AddTickCallback", callback)}
1356+}
1357+
1358+func (_c *MockPanedWidget_AddTickCallback_Call) Run(run func(callback func() bool)) *MockPanedWidget_AddTickCallback_Call {
1359+ _c.Call.Run(func(args mock.Arguments) {
1360+ var arg0 func() bool
1361+ if args[0] != nil {
1362+ arg0 = args[0].(func() bool)
1363+ }
1364+ run(
1365+ arg0,
1366+ )
1367+ })
1368+ return _c
1369+}
1370+
1371+func (_c *MockPanedWidget_AddTickCallback_Call) Return(v uint) *MockPanedWidget_AddTickCallback_Call {
1372+ _c.Call.Return(v)
1373+ return _c
1374+}
1375+
1376+func (_c *MockPanedWidget_AddTickCallback_Call) RunAndReturn(run func(callback func() bool) uint) *MockPanedWidget_AddTickCallback_Call {
1377+ _c.Call.Return(run)
1378+ return _c
1379+}
1380+
1381+// ComputePoint provides a mock function for the type MockPanedWidget
1382+func (_mock *MockPanedWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
1383+ ret := _mock.Called(target)
1384+
1385+ if len(ret) == 0 {
1386+ panic("no return value specified for ComputePoint")
1387+ }
1388+
1389+ var r0 float64
1390+ var r1 float64
1391+ var r2 bool
1392+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
1393+ return returnFunc(target)
1394+ }
1395+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
1396+ r0 = returnFunc(target)
1397+ } else {
1398+ r0 = ret.Get(0).(float64)
1399+ }
1400+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
1401+ r1 = returnFunc(target)
1402+ } else {
1403+ r1 = ret.Get(1).(float64)
1404+ }
1405+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
1406+ r2 = returnFunc(target)
1407+ } else {
1408+ r2 = ret.Get(2).(bool)
1409+ }
1410+ return r0, r1, r2
1411+}
1412+
1413+// MockPanedWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
1414+type MockPanedWidget_ComputePoint_Call struct {
1415+ *mock.Call
1416+}
1417+
1418+// ComputePoint is a helper method to define mock.On call
1419+// - target layout.Widget
1420+func (_e *MockPanedWidget_Expecter) ComputePoint(target interface{}) *MockPanedWidget_ComputePoint_Call {
1421+ return &MockPanedWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
1422+}
1423+
1424+func (_c *MockPanedWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockPanedWidget_ComputePoint_Call {
1425+ _c.Call.Run(func(args mock.Arguments) {
1426+ var arg0 layout.Widget
1427+ if args[0] != nil {
1428+ arg0 = args[0].(layout.Widget)
1429+ }
1430+ run(
1431+ arg0,
1432+ )
1433+ })
1434+ return _c
1435+}
1436+
1437+func (_c *MockPanedWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockPanedWidget_ComputePoint_Call {
1438+ _c.Call.Return(x, y, ok)
1439+ return _c
1440+}
1441+
1442+func (_c *MockPanedWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockPanedWidget_ComputePoint_Call {
1443+ _c.Call.Return(run)
1444+ return _c
1445+}
1446+
1447+// ConnectMap provides a mock function for the type MockPanedWidget
1448+func (_mock *MockPanedWidget) ConnectMap(callback func()) uint32 {
1449+ ret := _mock.Called(callback)
1450+
1451+ if len(ret) == 0 {
1452+ panic("no return value specified for ConnectMap")
1453+ }
1454+
1455+ var r0 uint32
1456+ if returnFunc, ok := ret.Get(0).(func(func()) uint32); ok {
1457+ r0 = returnFunc(callback)
1458+ } else {
1459+ r0 = ret.Get(0).(uint32)
1460+ }
1461+ return r0
1462+}
1463+
1464+// MockPanedWidget_ConnectMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectMap'
1465+type MockPanedWidget_ConnectMap_Call struct {
1466+ *mock.Call
1467+}
1468+
1469+// ConnectMap is a helper method to define mock.On call
1470+// - callback func()
1471+func (_e *MockPanedWidget_Expecter) ConnectMap(callback interface{}) *MockPanedWidget_ConnectMap_Call {
1472+ return &MockPanedWidget_ConnectMap_Call{Call: _e.mock.On("ConnectMap", callback)}
1473+}
1474+
1475+func (_c *MockPanedWidget_ConnectMap_Call) Run(run func(callback func())) *MockPanedWidget_ConnectMap_Call {
1476+ _c.Call.Run(func(args mock.Arguments) {
1477+ var arg0 func()
1478+ if args[0] != nil {
1479+ arg0 = args[0].(func())
1480+ }
1481+ run(
1482+ arg0,
1483+ )
1484+ })
1485+ return _c
1486+}
1487+
1488+func (_c *MockPanedWidget_ConnectMap_Call) Return(v uint32) *MockPanedWidget_ConnectMap_Call {
1489+ _c.Call.Return(v)
1490+ return _c
1491+}
1492+
1493+func (_c *MockPanedWidget_ConnectMap_Call) RunAndReturn(run func(callback func()) uint32) *MockPanedWidget_ConnectMap_Call {
1494+ _c.Call.Return(run)
1495+ return _c
1496+}
1497+
1498+// GetAllocatedHeight provides a mock function for the type MockPanedWidget
1499+func (_mock *MockPanedWidget) GetAllocatedHeight() int {
1500+ ret := _mock.Called()
1501+
1502+ if len(ret) == 0 {
1503+ panic("no return value specified for GetAllocatedHeight")
1504+ }
1505+
1506+ var r0 int
1507+ if returnFunc, ok := ret.Get(0).(func() int); ok {
1508+ r0 = returnFunc()
1509+ } else {
1510+ r0 = ret.Get(0).(int)
1511+ }
1512+ return r0
1513+}
1514+
1515+// MockPanedWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
1516+type MockPanedWidget_GetAllocatedHeight_Call struct {
1517+ *mock.Call
1518+}
1519+
1520+// GetAllocatedHeight is a helper method to define mock.On call
1521+func (_e *MockPanedWidget_Expecter) GetAllocatedHeight() *MockPanedWidget_GetAllocatedHeight_Call {
1522+ return &MockPanedWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
1523+}
1524+
1525+func (_c *MockPanedWidget_GetAllocatedHeight_Call) Run(run func()) *MockPanedWidget_GetAllocatedHeight_Call {
1526+ _c.Call.Run(func(args mock.Arguments) {
1527+ run()
1528+ })
1529+ return _c
1530+}
1531+
1532+func (_c *MockPanedWidget_GetAllocatedHeight_Call) Return(n int) *MockPanedWidget_GetAllocatedHeight_Call {
1533+ _c.Call.Return(n)
1534+ return _c
1535+}
1536+
1537+func (_c *MockPanedWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockPanedWidget_GetAllocatedHeight_Call {
1538+ _c.Call.Return(run)
1539+ return _c
1540+}
1541+
1542+// GetAllocatedWidth provides a mock function for the type MockPanedWidget
1543+func (_mock *MockPanedWidget) GetAllocatedWidth() int {
1544+ ret := _mock.Called()
1545+
1546+ if len(ret) == 0 {
1547+ panic("no return value specified for GetAllocatedWidth")
1548+ }
1549+
1550+ var r0 int
1551+ if returnFunc, ok := ret.Get(0).(func() int); ok {
1552+ r0 = returnFunc()
1553+ } else {
1554+ r0 = ret.Get(0).(int)
1555+ }
1556+ return r0
1557+}
1558+
1559+// MockPanedWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
1560+type MockPanedWidget_GetAllocatedWidth_Call struct {
1561+ *mock.Call
1562+}
1563+
1564+// GetAllocatedWidth is a helper method to define mock.On call
1565+func (_e *MockPanedWidget_Expecter) GetAllocatedWidth() *MockPanedWidget_GetAllocatedWidth_Call {
1566+ return &MockPanedWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
1567+}
1568+
1569+func (_c *MockPanedWidget_GetAllocatedWidth_Call) Run(run func()) *MockPanedWidget_GetAllocatedWidth_Call {
1570+ _c.Call.Run(func(args mock.Arguments) {
1571+ run()
1572+ })
1573+ return _c
1574+}
1575+
1576+func (_c *MockPanedWidget_GetAllocatedWidth_Call) Return(n int) *MockPanedWidget_GetAllocatedWidth_Call {
1577+ _c.Call.Return(n)
1578+ return _c
1579+}
1580+
1581+func (_c *MockPanedWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockPanedWidget_GetAllocatedWidth_Call {
1582+ _c.Call.Return(run)
1583+ return _c
1584+}
1585+
1586+// GetEndChild provides a mock function for the type MockPanedWidget
1587+func (_mock *MockPanedWidget) GetEndChild() layout.Widget {
1588+ ret := _mock.Called()
1589+
1590+ if len(ret) == 0 {
1591+ panic("no return value specified for GetEndChild")
1592+ }
1593+
1594+ var r0 layout.Widget
1595+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
1596+ r0 = returnFunc()
1597+ } else {
1598+ if ret.Get(0) != nil {
1599+ r0 = ret.Get(0).(layout.Widget)
1600+ }
1601+ }
1602+ return r0
1603+}
1604+
1605+// MockPanedWidget_GetEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEndChild'
1606+type MockPanedWidget_GetEndChild_Call struct {
1607+ *mock.Call
1608+}
1609+
1610+// GetEndChild is a helper method to define mock.On call
1611+func (_e *MockPanedWidget_Expecter) GetEndChild() *MockPanedWidget_GetEndChild_Call {
1612+ return &MockPanedWidget_GetEndChild_Call{Call: _e.mock.On("GetEndChild")}
1613+}
1614+
1615+func (_c *MockPanedWidget_GetEndChild_Call) Run(run func()) *MockPanedWidget_GetEndChild_Call {
1616+ _c.Call.Run(func(args mock.Arguments) {
1617+ run()
1618+ })
1619+ return _c
1620+}
1621+
1622+func (_c *MockPanedWidget_GetEndChild_Call) Return(widget layout.Widget) *MockPanedWidget_GetEndChild_Call {
1623+ _c.Call.Return(widget)
1624+ return _c
1625+}
1626+
1627+func (_c *MockPanedWidget_GetEndChild_Call) RunAndReturn(run func() layout.Widget) *MockPanedWidget_GetEndChild_Call {
1628+ _c.Call.Return(run)
1629+ return _c
1630+}
1631+
1632+// GetHexpand provides a mock function for the type MockPanedWidget
1633+func (_mock *MockPanedWidget) GetHexpand() bool {
1634+ ret := _mock.Called()
1635+
1636+ if len(ret) == 0 {
1637+ panic("no return value specified for GetHexpand")
1638+ }
1639+
1640+ var r0 bool
1641+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1642+ r0 = returnFunc()
1643+ } else {
1644+ r0 = ret.Get(0).(bool)
1645+ }
1646+ return r0
1647+}
1648+
1649+// MockPanedWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
1650+type MockPanedWidget_GetHexpand_Call struct {
1651+ *mock.Call
1652+}
1653+
1654+// GetHexpand is a helper method to define mock.On call
1655+func (_e *MockPanedWidget_Expecter) GetHexpand() *MockPanedWidget_GetHexpand_Call {
1656+ return &MockPanedWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
1657+}
1658+
1659+func (_c *MockPanedWidget_GetHexpand_Call) Run(run func()) *MockPanedWidget_GetHexpand_Call {
1660+ _c.Call.Run(func(args mock.Arguments) {
1661+ run()
1662+ })
1663+ return _c
1664+}
1665+
1666+func (_c *MockPanedWidget_GetHexpand_Call) Return(b bool) *MockPanedWidget_GetHexpand_Call {
1667+ _c.Call.Return(b)
1668+ return _c
1669+}
1670+
1671+func (_c *MockPanedWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetHexpand_Call {
1672+ _c.Call.Return(run)
1673+ return _c
1674+}
1675+
1676+// GetParent provides a mock function for the type MockPanedWidget
1677+func (_mock *MockPanedWidget) GetParent() layout.Widget {
1678+ ret := _mock.Called()
1679+
1680+ if len(ret) == 0 {
1681+ panic("no return value specified for GetParent")
1682+ }
1683+
1684+ var r0 layout.Widget
1685+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
1686+ r0 = returnFunc()
1687+ } else {
1688+ if ret.Get(0) != nil {
1689+ r0 = ret.Get(0).(layout.Widget)
1690+ }
1691+ }
1692+ return r0
1693+}
1694+
1695+// MockPanedWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
1696+type MockPanedWidget_GetParent_Call struct {
1697+ *mock.Call
1698+}
1699+
1700+// GetParent is a helper method to define mock.On call
1701+func (_e *MockPanedWidget_Expecter) GetParent() *MockPanedWidget_GetParent_Call {
1702+ return &MockPanedWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
1703+}
1704+
1705+func (_c *MockPanedWidget_GetParent_Call) Run(run func()) *MockPanedWidget_GetParent_Call {
1706+ _c.Call.Run(func(args mock.Arguments) {
1707+ run()
1708+ })
1709+ return _c
1710+}
1711+
1712+func (_c *MockPanedWidget_GetParent_Call) Return(widget layout.Widget) *MockPanedWidget_GetParent_Call {
1713+ _c.Call.Return(widget)
1714+ return _c
1715+}
1716+
1717+func (_c *MockPanedWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockPanedWidget_GetParent_Call {
1718+ _c.Call.Return(run)
1719+ return _c
1720+}
1721+
1722+// GetPosition provides a mock function for the type MockPanedWidget
1723+func (_mock *MockPanedWidget) GetPosition() int {
1724+ ret := _mock.Called()
1725+
1726+ if len(ret) == 0 {
1727+ panic("no return value specified for GetPosition")
1728+ }
1729+
1730+ var r0 int
1731+ if returnFunc, ok := ret.Get(0).(func() int); ok {
1732+ r0 = returnFunc()
1733+ } else {
1734+ r0 = ret.Get(0).(int)
1735+ }
1736+ return r0
1737+}
1738+
1739+// MockPanedWidget_GetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPosition'
1740+type MockPanedWidget_GetPosition_Call struct {
1741+ *mock.Call
1742+}
1743+
1744+// GetPosition is a helper method to define mock.On call
1745+func (_e *MockPanedWidget_Expecter) GetPosition() *MockPanedWidget_GetPosition_Call {
1746+ return &MockPanedWidget_GetPosition_Call{Call: _e.mock.On("GetPosition")}
1747+}
1748+
1749+func (_c *MockPanedWidget_GetPosition_Call) Run(run func()) *MockPanedWidget_GetPosition_Call {
1750+ _c.Call.Run(func(args mock.Arguments) {
1751+ run()
1752+ })
1753+ return _c
1754+}
1755+
1756+func (_c *MockPanedWidget_GetPosition_Call) Return(n int) *MockPanedWidget_GetPosition_Call {
1757+ _c.Call.Return(n)
1758+ return _c
1759+}
1760+
1761+func (_c *MockPanedWidget_GetPosition_Call) RunAndReturn(run func() int) *MockPanedWidget_GetPosition_Call {
1762+ _c.Call.Return(run)
1763+ return _c
1764+}
1765+
1766+// GetResizeEndChild provides a mock function for the type MockPanedWidget
1767+func (_mock *MockPanedWidget) GetResizeEndChild() bool {
1768+ ret := _mock.Called()
1769+
1770+ if len(ret) == 0 {
1771+ panic("no return value specified for GetResizeEndChild")
1772+ }
1773+
1774+ var r0 bool
1775+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1776+ r0 = returnFunc()
1777+ } else {
1778+ r0 = ret.Get(0).(bool)
1779+ }
1780+ return r0
1781+}
1782+
1783+// MockPanedWidget_GetResizeEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResizeEndChild'
1784+type MockPanedWidget_GetResizeEndChild_Call struct {
1785+ *mock.Call
1786+}
1787+
1788+// GetResizeEndChild is a helper method to define mock.On call
1789+func (_e *MockPanedWidget_Expecter) GetResizeEndChild() *MockPanedWidget_GetResizeEndChild_Call {
1790+ return &MockPanedWidget_GetResizeEndChild_Call{Call: _e.mock.On("GetResizeEndChild")}
1791+}
1792+
1793+func (_c *MockPanedWidget_GetResizeEndChild_Call) Run(run func()) *MockPanedWidget_GetResizeEndChild_Call {
1794+ _c.Call.Run(func(args mock.Arguments) {
1795+ run()
1796+ })
1797+ return _c
1798+}
1799+
1800+func (_c *MockPanedWidget_GetResizeEndChild_Call) Return(b bool) *MockPanedWidget_GetResizeEndChild_Call {
1801+ _c.Call.Return(b)
1802+ return _c
1803+}
1804+
1805+func (_c *MockPanedWidget_GetResizeEndChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetResizeEndChild_Call {
1806+ _c.Call.Return(run)
1807+ return _c
1808+}
1809+
1810+// GetResizeStartChild provides a mock function for the type MockPanedWidget
1811+func (_mock *MockPanedWidget) GetResizeStartChild() bool {
1812+ ret := _mock.Called()
1813+
1814+ if len(ret) == 0 {
1815+ panic("no return value specified for GetResizeStartChild")
1816+ }
1817+
1818+ var r0 bool
1819+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1820+ r0 = returnFunc()
1821+ } else {
1822+ r0 = ret.Get(0).(bool)
1823+ }
1824+ return r0
1825+}
1826+
1827+// MockPanedWidget_GetResizeStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResizeStartChild'
1828+type MockPanedWidget_GetResizeStartChild_Call struct {
1829+ *mock.Call
1830+}
1831+
1832+// GetResizeStartChild is a helper method to define mock.On call
1833+func (_e *MockPanedWidget_Expecter) GetResizeStartChild() *MockPanedWidget_GetResizeStartChild_Call {
1834+ return &MockPanedWidget_GetResizeStartChild_Call{Call: _e.mock.On("GetResizeStartChild")}
1835+}
1836+
1837+func (_c *MockPanedWidget_GetResizeStartChild_Call) Run(run func()) *MockPanedWidget_GetResizeStartChild_Call {
1838+ _c.Call.Run(func(args mock.Arguments) {
1839+ run()
1840+ })
1841+ return _c
1842+}
1843+
1844+func (_c *MockPanedWidget_GetResizeStartChild_Call) Return(b bool) *MockPanedWidget_GetResizeStartChild_Call {
1845+ _c.Call.Return(b)
1846+ return _c
1847+}
1848+
1849+func (_c *MockPanedWidget_GetResizeStartChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetResizeStartChild_Call {
1850+ _c.Call.Return(run)
1851+ return _c
1852+}
1853+
1854+// GetShrinkEndChild provides a mock function for the type MockPanedWidget
1855+func (_mock *MockPanedWidget) GetShrinkEndChild() bool {
1856+ ret := _mock.Called()
1857+
1858+ if len(ret) == 0 {
1859+ panic("no return value specified for GetShrinkEndChild")
1860+ }
1861+
1862+ var r0 bool
1863+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1864+ r0 = returnFunc()
1865+ } else {
1866+ r0 = ret.Get(0).(bool)
1867+ }
1868+ return r0
1869+}
1870+
1871+// MockPanedWidget_GetShrinkEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShrinkEndChild'
1872+type MockPanedWidget_GetShrinkEndChild_Call struct {
1873+ *mock.Call
1874+}
1875+
1876+// GetShrinkEndChild is a helper method to define mock.On call
1877+func (_e *MockPanedWidget_Expecter) GetShrinkEndChild() *MockPanedWidget_GetShrinkEndChild_Call {
1878+ return &MockPanedWidget_GetShrinkEndChild_Call{Call: _e.mock.On("GetShrinkEndChild")}
1879+}
1880+
1881+func (_c *MockPanedWidget_GetShrinkEndChild_Call) Run(run func()) *MockPanedWidget_GetShrinkEndChild_Call {
1882+ _c.Call.Run(func(args mock.Arguments) {
1883+ run()
1884+ })
1885+ return _c
1886+}
1887+
1888+func (_c *MockPanedWidget_GetShrinkEndChild_Call) Return(b bool) *MockPanedWidget_GetShrinkEndChild_Call {
1889+ _c.Call.Return(b)
1890+ return _c
1891+}
1892+
1893+func (_c *MockPanedWidget_GetShrinkEndChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetShrinkEndChild_Call {
1894+ _c.Call.Return(run)
1895+ return _c
1896+}
1897+
1898+// GetShrinkStartChild provides a mock function for the type MockPanedWidget
1899+func (_mock *MockPanedWidget) GetShrinkStartChild() bool {
1900+ ret := _mock.Called()
1901+
1902+ if len(ret) == 0 {
1903+ panic("no return value specified for GetShrinkStartChild")
1904+ }
1905+
1906+ var r0 bool
1907+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1908+ r0 = returnFunc()
1909+ } else {
1910+ r0 = ret.Get(0).(bool)
1911+ }
1912+ return r0
1913+}
1914+
1915+// MockPanedWidget_GetShrinkStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShrinkStartChild'
1916+type MockPanedWidget_GetShrinkStartChild_Call struct {
1917+ *mock.Call
1918+}
1919+
1920+// GetShrinkStartChild is a helper method to define mock.On call
1921+func (_e *MockPanedWidget_Expecter) GetShrinkStartChild() *MockPanedWidget_GetShrinkStartChild_Call {
1922+ return &MockPanedWidget_GetShrinkStartChild_Call{Call: _e.mock.On("GetShrinkStartChild")}
1923+}
1924+
1925+func (_c *MockPanedWidget_GetShrinkStartChild_Call) Run(run func()) *MockPanedWidget_GetShrinkStartChild_Call {
1926+ _c.Call.Run(func(args mock.Arguments) {
1927+ run()
1928+ })
1929+ return _c
1930+}
1931+
1932+func (_c *MockPanedWidget_GetShrinkStartChild_Call) Return(b bool) *MockPanedWidget_GetShrinkStartChild_Call {
1933+ _c.Call.Return(b)
1934+ return _c
1935+}
1936+
1937+func (_c *MockPanedWidget_GetShrinkStartChild_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetShrinkStartChild_Call {
1938+ _c.Call.Return(run)
1939+ return _c
1940+}
1941+
1942+// GetStartChild provides a mock function for the type MockPanedWidget
1943+func (_mock *MockPanedWidget) GetStartChild() layout.Widget {
1944+ ret := _mock.Called()
1945+
1946+ if len(ret) == 0 {
1947+ panic("no return value specified for GetStartChild")
1948+ }
1949+
1950+ var r0 layout.Widget
1951+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
1952+ r0 = returnFunc()
1953+ } else {
1954+ if ret.Get(0) != nil {
1955+ r0 = ret.Get(0).(layout.Widget)
1956+ }
1957+ }
1958+ return r0
1959+}
1960+
1961+// MockPanedWidget_GetStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStartChild'
1962+type MockPanedWidget_GetStartChild_Call struct {
1963+ *mock.Call
1964+}
1965+
1966+// GetStartChild is a helper method to define mock.On call
1967+func (_e *MockPanedWidget_Expecter) GetStartChild() *MockPanedWidget_GetStartChild_Call {
1968+ return &MockPanedWidget_GetStartChild_Call{Call: _e.mock.On("GetStartChild")}
1969+}
1970+
1971+func (_c *MockPanedWidget_GetStartChild_Call) Run(run func()) *MockPanedWidget_GetStartChild_Call {
1972+ _c.Call.Run(func(args mock.Arguments) {
1973+ run()
1974+ })
1975+ return _c
1976+}
1977+
1978+func (_c *MockPanedWidget_GetStartChild_Call) Return(widget layout.Widget) *MockPanedWidget_GetStartChild_Call {
1979+ _c.Call.Return(widget)
1980+ return _c
1981+}
1982+
1983+func (_c *MockPanedWidget_GetStartChild_Call) RunAndReturn(run func() layout.Widget) *MockPanedWidget_GetStartChild_Call {
1984+ _c.Call.Return(run)
1985+ return _c
1986+}
1987+
1988+// GetVexpand provides a mock function for the type MockPanedWidget
1989+func (_mock *MockPanedWidget) GetVexpand() bool {
1990+ ret := _mock.Called()
1991+
1992+ if len(ret) == 0 {
1993+ panic("no return value specified for GetVexpand")
1994+ }
1995+
1996+ var r0 bool
1997+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
1998+ r0 = returnFunc()
1999+ } else {
2000+ r0 = ret.Get(0).(bool)
2001+ }
2002+ return r0
2003+}
2004+
2005+// MockPanedWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
2006+type MockPanedWidget_GetVexpand_Call struct {
2007+ *mock.Call
2008+}
2009+
2010+// GetVexpand is a helper method to define mock.On call
2011+func (_e *MockPanedWidget_Expecter) GetVexpand() *MockPanedWidget_GetVexpand_Call {
2012+ return &MockPanedWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
2013+}
2014+
2015+func (_c *MockPanedWidget_GetVexpand_Call) Run(run func()) *MockPanedWidget_GetVexpand_Call {
2016+ _c.Call.Run(func(args mock.Arguments) {
2017+ run()
2018+ })
2019+ return _c
2020+}
2021+
2022+func (_c *MockPanedWidget_GetVexpand_Call) Return(b bool) *MockPanedWidget_GetVexpand_Call {
2023+ _c.Call.Return(b)
2024+ return _c
2025+}
2026+
2027+func (_c *MockPanedWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetVexpand_Call {
2028+ _c.Call.Return(run)
2029+ return _c
2030+}
2031+
2032+// GetWideHandle provides a mock function for the type MockPanedWidget
2033+func (_mock *MockPanedWidget) GetWideHandle() bool {
2034+ ret := _mock.Called()
2035+
2036+ if len(ret) == 0 {
2037+ panic("no return value specified for GetWideHandle")
2038+ }
2039+
2040+ var r0 bool
2041+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
2042+ r0 = returnFunc()
2043+ } else {
2044+ r0 = ret.Get(0).(bool)
2045+ }
2046+ return r0
2047+}
2048+
2049+// MockPanedWidget_GetWideHandle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWideHandle'
2050+type MockPanedWidget_GetWideHandle_Call struct {
2051+ *mock.Call
2052+}
2053+
2054+// GetWideHandle is a helper method to define mock.On call
2055+func (_e *MockPanedWidget_Expecter) GetWideHandle() *MockPanedWidget_GetWideHandle_Call {
2056+ return &MockPanedWidget_GetWideHandle_Call{Call: _e.mock.On("GetWideHandle")}
2057+}
2058+
2059+func (_c *MockPanedWidget_GetWideHandle_Call) Run(run func()) *MockPanedWidget_GetWideHandle_Call {
2060+ _c.Call.Run(func(args mock.Arguments) {
2061+ run()
2062+ })
2063+ return _c
2064+}
2065+
2066+func (_c *MockPanedWidget_GetWideHandle_Call) Return(b bool) *MockPanedWidget_GetWideHandle_Call {
2067+ _c.Call.Return(b)
2068+ return _c
2069+}
2070+
2071+func (_c *MockPanedWidget_GetWideHandle_Call) RunAndReturn(run func() bool) *MockPanedWidget_GetWideHandle_Call {
2072+ _c.Call.Return(run)
2073+ return _c
2074+}
2075+
2076+// GrabFocus provides a mock function for the type MockPanedWidget
2077+func (_mock *MockPanedWidget) GrabFocus() bool {
2078+ ret := _mock.Called()
2079+
2080+ if len(ret) == 0 {
2081+ panic("no return value specified for GrabFocus")
2082+ }
2083+
2084+ var r0 bool
2085+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
2086+ r0 = returnFunc()
2087+ } else {
2088+ r0 = ret.Get(0).(bool)
2089+ }
2090+ return r0
2091+}
2092+
2093+// MockPanedWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
2094+type MockPanedWidget_GrabFocus_Call struct {
2095+ *mock.Call
2096+}
2097+
2098+// GrabFocus is a helper method to define mock.On call
2099+func (_e *MockPanedWidget_Expecter) GrabFocus() *MockPanedWidget_GrabFocus_Call {
2100+ return &MockPanedWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
2101+}
2102+
2103+func (_c *MockPanedWidget_GrabFocus_Call) Run(run func()) *MockPanedWidget_GrabFocus_Call {
2104+ _c.Call.Run(func(args mock.Arguments) {
2105+ run()
2106+ })
2107+ return _c
2108+}
2109+
2110+func (_c *MockPanedWidget_GrabFocus_Call) Return(b bool) *MockPanedWidget_GrabFocus_Call {
2111+ _c.Call.Return(b)
2112+ return _c
2113+}
2114+
2115+func (_c *MockPanedWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockPanedWidget_GrabFocus_Call {
2116+ _c.Call.Return(run)
2117+ return _c
2118+}
2119+
2120+// GtkWidget provides a mock function for the type MockPanedWidget
2121+func (_mock *MockPanedWidget) GtkWidget() *gtk.Widget {
2122+ ret := _mock.Called()
2123+
2124+ if len(ret) == 0 {
2125+ panic("no return value specified for GtkWidget")
2126+ }
2127+
2128+ var r0 *gtk.Widget
2129+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
2130+ r0 = returnFunc()
2131+ } else {
2132+ if ret.Get(0) != nil {
2133+ r0 = ret.Get(0).(*gtk.Widget)
2134+ }
2135+ }
2136+ return r0
2137+}
2138+
2139+// MockPanedWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
2140+type MockPanedWidget_GtkWidget_Call struct {
2141+ *mock.Call
2142+}
2143+
2144+// GtkWidget is a helper method to define mock.On call
2145+func (_e *MockPanedWidget_Expecter) GtkWidget() *MockPanedWidget_GtkWidget_Call {
2146+ return &MockPanedWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
2147+}
2148+
2149+func (_c *MockPanedWidget_GtkWidget_Call) Run(run func()) *MockPanedWidget_GtkWidget_Call {
2150+ _c.Call.Run(func(args mock.Arguments) {
2151+ run()
2152+ })
2153+ return _c
2154+}
2155+
2156+func (_c *MockPanedWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockPanedWidget_GtkWidget_Call {
2157+ _c.Call.Return(widget)
2158+ return _c
2159+}
2160+
2161+func (_c *MockPanedWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockPanedWidget_GtkWidget_Call {
2162+ _c.Call.Return(run)
2163+ return _c
2164+}
2165+
2166+// HasCssClass provides a mock function for the type MockPanedWidget
2167+func (_mock *MockPanedWidget) HasCssClass(cssClass string) bool {
2168+ ret := _mock.Called(cssClass)
2169+
2170+ if len(ret) == 0 {
2171+ panic("no return value specified for HasCssClass")
2172+ }
2173+
2174+ var r0 bool
2175+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
2176+ r0 = returnFunc(cssClass)
2177+ } else {
2178+ r0 = ret.Get(0).(bool)
2179+ }
2180+ return r0
2181+}
2182+
2183+// MockPanedWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
2184+type MockPanedWidget_HasCssClass_Call struct {
2185+ *mock.Call
2186+}
2187+
2188+// HasCssClass is a helper method to define mock.On call
2189+// - cssClass string
2190+func (_e *MockPanedWidget_Expecter) HasCssClass(cssClass interface{}) *MockPanedWidget_HasCssClass_Call {
2191+ return &MockPanedWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
2192+}
2193+
2194+func (_c *MockPanedWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockPanedWidget_HasCssClass_Call {
2195+ _c.Call.Run(func(args mock.Arguments) {
2196+ var arg0 string
2197+ if args[0] != nil {
2198+ arg0 = args[0].(string)
2199+ }
2200+ run(
2201+ arg0,
2202+ )
2203+ })
2204+ return _c
2205+}
2206+
2207+func (_c *MockPanedWidget_HasCssClass_Call) Return(b bool) *MockPanedWidget_HasCssClass_Call {
2208+ _c.Call.Return(b)
2209+ return _c
2210+}
2211+
2212+func (_c *MockPanedWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockPanedWidget_HasCssClass_Call {
2213+ _c.Call.Return(run)
2214+ return _c
2215+}
2216+
2217+// HasFocus provides a mock function for the type MockPanedWidget
2218+func (_mock *MockPanedWidget) HasFocus() bool {
2219+ ret := _mock.Called()
2220+
2221+ if len(ret) == 0 {
2222+ panic("no return value specified for HasFocus")
2223+ }
2224+
2225+ var r0 bool
2226+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
2227+ r0 = returnFunc()
2228+ } else {
2229+ r0 = ret.Get(0).(bool)
2230+ }
2231+ return r0
2232+}
2233+
2234+// MockPanedWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
2235+type MockPanedWidget_HasFocus_Call struct {
2236+ *mock.Call
2237+}
2238+
2239+// HasFocus is a helper method to define mock.On call
2240+func (_e *MockPanedWidget_Expecter) HasFocus() *MockPanedWidget_HasFocus_Call {
2241+ return &MockPanedWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
2242+}
2243+
2244+func (_c *MockPanedWidget_HasFocus_Call) Run(run func()) *MockPanedWidget_HasFocus_Call {
2245+ _c.Call.Run(func(args mock.Arguments) {
2246+ run()
2247+ })
2248+ return _c
2249+}
2250+
2251+func (_c *MockPanedWidget_HasFocus_Call) Return(b bool) *MockPanedWidget_HasFocus_Call {
2252+ _c.Call.Return(b)
2253+ return _c
2254+}
2255+
2256+func (_c *MockPanedWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockPanedWidget_HasFocus_Call {
2257+ _c.Call.Return(run)
2258+ return _c
2259+}
2260+
2261+// Hide provides a mock function for the type MockPanedWidget
2262+func (_mock *MockPanedWidget) Hide() {
2263+ _mock.Called()
2264+ return
2265+}
2266+
2267+// MockPanedWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
2268+type MockPanedWidget_Hide_Call struct {
2269+ *mock.Call
2270+}
2271+
2272+// Hide is a helper method to define mock.On call
2273+func (_e *MockPanedWidget_Expecter) Hide() *MockPanedWidget_Hide_Call {
2274+ return &MockPanedWidget_Hide_Call{Call: _e.mock.On("Hide")}
2275+}
2276+
2277+func (_c *MockPanedWidget_Hide_Call) Run(run func()) *MockPanedWidget_Hide_Call {
2278+ _c.Call.Run(func(args mock.Arguments) {
2279+ run()
2280+ })
2281+ return _c
2282+}
2283+
2284+func (_c *MockPanedWidget_Hide_Call) Return() *MockPanedWidget_Hide_Call {
2285+ _c.Call.Return()
2286+ return _c
2287+}
2288+
2289+func (_c *MockPanedWidget_Hide_Call) RunAndReturn(run func()) *MockPanedWidget_Hide_Call {
2290+ _c.Run(run)
2291+ return _c
2292+}
2293+
2294+// IsVisible provides a mock function for the type MockPanedWidget
2295+func (_mock *MockPanedWidget) IsVisible() bool {
2296+ ret := _mock.Called()
2297+
2298+ if len(ret) == 0 {
2299+ panic("no return value specified for IsVisible")
2300+ }
2301+
2302+ var r0 bool
2303+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
2304+ r0 = returnFunc()
2305+ } else {
2306+ r0 = ret.Get(0).(bool)
2307+ }
2308+ return r0
2309+}
2310+
2311+// MockPanedWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
2312+type MockPanedWidget_IsVisible_Call struct {
2313+ *mock.Call
2314+}
2315+
2316+// IsVisible is a helper method to define mock.On call
2317+func (_e *MockPanedWidget_Expecter) IsVisible() *MockPanedWidget_IsVisible_Call {
2318+ return &MockPanedWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
2319+}
2320+
2321+func (_c *MockPanedWidget_IsVisible_Call) Run(run func()) *MockPanedWidget_IsVisible_Call {
2322+ _c.Call.Run(func(args mock.Arguments) {
2323+ run()
2324+ })
2325+ return _c
2326+}
2327+
2328+func (_c *MockPanedWidget_IsVisible_Call) Return(b bool) *MockPanedWidget_IsVisible_Call {
2329+ _c.Call.Return(b)
2330+ return _c
2331+}
2332+
2333+func (_c *MockPanedWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockPanedWidget_IsVisible_Call {
2334+ _c.Call.Return(run)
2335+ return _c
2336+}
2337+
2338+// RemoveCssClass provides a mock function for the type MockPanedWidget
2339+func (_mock *MockPanedWidget) RemoveCssClass(cssClass string) {
2340+ _mock.Called(cssClass)
2341+ return
2342+}
2343+
2344+// MockPanedWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
2345+type MockPanedWidget_RemoveCssClass_Call struct {
2346+ *mock.Call
2347+}
2348+
2349+// RemoveCssClass is a helper method to define mock.On call
2350+// - cssClass string
2351+func (_e *MockPanedWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockPanedWidget_RemoveCssClass_Call {
2352+ return &MockPanedWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
2353+}
2354+
2355+func (_c *MockPanedWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockPanedWidget_RemoveCssClass_Call {
2356+ _c.Call.Run(func(args mock.Arguments) {
2357+ var arg0 string
2358+ if args[0] != nil {
2359+ arg0 = args[0].(string)
2360+ }
2361+ run(
2362+ arg0,
2363+ )
2364+ })
2365+ return _c
2366+}
2367+
2368+func (_c *MockPanedWidget_RemoveCssClass_Call) Return() *MockPanedWidget_RemoveCssClass_Call {
2369+ _c.Call.Return()
2370+ return _c
2371+}
2372+
2373+func (_c *MockPanedWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockPanedWidget_RemoveCssClass_Call {
2374+ _c.Run(run)
2375+ return _c
2376+}
2377+
2378+// SetCanFocus provides a mock function for the type MockPanedWidget
2379+func (_mock *MockPanedWidget) SetCanFocus(canFocus bool) {
2380+ _mock.Called(canFocus)
2381+ return
2382+}
2383+
2384+// MockPanedWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
2385+type MockPanedWidget_SetCanFocus_Call struct {
2386+ *mock.Call
2387+}
2388+
2389+// SetCanFocus is a helper method to define mock.On call
2390+// - canFocus bool
2391+func (_e *MockPanedWidget_Expecter) SetCanFocus(canFocus interface{}) *MockPanedWidget_SetCanFocus_Call {
2392+ return &MockPanedWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
2393+}
2394+
2395+func (_c *MockPanedWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockPanedWidget_SetCanFocus_Call {
2396+ _c.Call.Run(func(args mock.Arguments) {
2397+ var arg0 bool
2398+ if args[0] != nil {
2399+ arg0 = args[0].(bool)
2400+ }
2401+ run(
2402+ arg0,
2403+ )
2404+ })
2405+ return _c
2406+}
2407+
2408+func (_c *MockPanedWidget_SetCanFocus_Call) Return() *MockPanedWidget_SetCanFocus_Call {
2409+ _c.Call.Return()
2410+ return _c
2411+}
2412+
2413+func (_c *MockPanedWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockPanedWidget_SetCanFocus_Call {
2414+ _c.Run(run)
2415+ return _c
2416+}
2417+
2418+// SetCanTarget provides a mock function for the type MockPanedWidget
2419+func (_mock *MockPanedWidget) SetCanTarget(canTarget bool) {
2420+ _mock.Called(canTarget)
2421+ return
2422+}
2423+
2424+// MockPanedWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
2425+type MockPanedWidget_SetCanTarget_Call struct {
2426+ *mock.Call
2427+}
2428+
2429+// SetCanTarget is a helper method to define mock.On call
2430+// - canTarget bool
2431+func (_e *MockPanedWidget_Expecter) SetCanTarget(canTarget interface{}) *MockPanedWidget_SetCanTarget_Call {
2432+ return &MockPanedWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
2433+}
2434+
2435+func (_c *MockPanedWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockPanedWidget_SetCanTarget_Call {
2436+ _c.Call.Run(func(args mock.Arguments) {
2437+ var arg0 bool
2438+ if args[0] != nil {
2439+ arg0 = args[0].(bool)
2440+ }
2441+ run(
2442+ arg0,
2443+ )
2444+ })
2445+ return _c
2446+}
2447+
2448+func (_c *MockPanedWidget_SetCanTarget_Call) Return() *MockPanedWidget_SetCanTarget_Call {
2449+ _c.Call.Return()
2450+ return _c
2451+}
2452+
2453+func (_c *MockPanedWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockPanedWidget_SetCanTarget_Call {
2454+ _c.Run(run)
2455+ return _c
2456+}
2457+
2458+// SetEndChild provides a mock function for the type MockPanedWidget
2459+func (_mock *MockPanedWidget) SetEndChild(child layout.Widget) {
2460+ _mock.Called(child)
2461+ return
2462+}
2463+
2464+// MockPanedWidget_SetEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEndChild'
2465+type MockPanedWidget_SetEndChild_Call struct {
2466+ *mock.Call
2467+}
2468+
2469+// SetEndChild is a helper method to define mock.On call
2470+// - child layout.Widget
2471+func (_e *MockPanedWidget_Expecter) SetEndChild(child interface{}) *MockPanedWidget_SetEndChild_Call {
2472+ return &MockPanedWidget_SetEndChild_Call{Call: _e.mock.On("SetEndChild", child)}
2473+}
2474+
2475+func (_c *MockPanedWidget_SetEndChild_Call) Run(run func(child layout.Widget)) *MockPanedWidget_SetEndChild_Call {
2476+ _c.Call.Run(func(args mock.Arguments) {
2477+ var arg0 layout.Widget
2478+ if args[0] != nil {
2479+ arg0 = args[0].(layout.Widget)
2480+ }
2481+ run(
2482+ arg0,
2483+ )
2484+ })
2485+ return _c
2486+}
2487+
2488+func (_c *MockPanedWidget_SetEndChild_Call) Return() *MockPanedWidget_SetEndChild_Call {
2489+ _c.Call.Return()
2490+ return _c
2491+}
2492+
2493+func (_c *MockPanedWidget_SetEndChild_Call) RunAndReturn(run func(child layout.Widget)) *MockPanedWidget_SetEndChild_Call {
2494+ _c.Run(run)
2495+ return _c
2496+}
2497+
2498+// SetFocusOnClick provides a mock function for the type MockPanedWidget
2499+func (_mock *MockPanedWidget) SetFocusOnClick(focusOnClick bool) {
2500+ _mock.Called(focusOnClick)
2501+ return
2502+}
2503+
2504+// MockPanedWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
2505+type MockPanedWidget_SetFocusOnClick_Call struct {
2506+ *mock.Call
2507+}
2508+
2509+// SetFocusOnClick is a helper method to define mock.On call
2510+// - focusOnClick bool
2511+func (_e *MockPanedWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockPanedWidget_SetFocusOnClick_Call {
2512+ return &MockPanedWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
2513+}
2514+
2515+func (_c *MockPanedWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockPanedWidget_SetFocusOnClick_Call {
2516+ _c.Call.Run(func(args mock.Arguments) {
2517+ var arg0 bool
2518+ if args[0] != nil {
2519+ arg0 = args[0].(bool)
2520+ }
2521+ run(
2522+ arg0,
2523+ )
2524+ })
2525+ return _c
2526+}
2527+
2528+func (_c *MockPanedWidget_SetFocusOnClick_Call) Return() *MockPanedWidget_SetFocusOnClick_Call {
2529+ _c.Call.Return()
2530+ return _c
2531+}
2532+
2533+func (_c *MockPanedWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockPanedWidget_SetFocusOnClick_Call {
2534+ _c.Run(run)
2535+ return _c
2536+}
2537+
2538+// SetHalign provides a mock function for the type MockPanedWidget
2539+func (_mock *MockPanedWidget) SetHalign(align gtk.Align) {
2540+ _mock.Called(align)
2541+ return
2542+}
2543+
2544+// MockPanedWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
2545+type MockPanedWidget_SetHalign_Call struct {
2546+ *mock.Call
2547+}
2548+
2549+// SetHalign is a helper method to define mock.On call
2550+// - align gtk.Align
2551+func (_e *MockPanedWidget_Expecter) SetHalign(align interface{}) *MockPanedWidget_SetHalign_Call {
2552+ return &MockPanedWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
2553+}
2554+
2555+func (_c *MockPanedWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockPanedWidget_SetHalign_Call {
2556+ _c.Call.Run(func(args mock.Arguments) {
2557+ var arg0 gtk.Align
2558+ if args[0] != nil {
2559+ arg0 = args[0].(gtk.Align)
2560+ }
2561+ run(
2562+ arg0,
2563+ )
2564+ })
2565+ return _c
2566+}
2567+
2568+func (_c *MockPanedWidget_SetHalign_Call) Return() *MockPanedWidget_SetHalign_Call {
2569+ _c.Call.Return()
2570+ return _c
2571+}
2572+
2573+func (_c *MockPanedWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockPanedWidget_SetHalign_Call {
2574+ _c.Run(run)
2575+ return _c
2576+}
2577+
2578+// SetHexpand provides a mock function for the type MockPanedWidget
2579+func (_mock *MockPanedWidget) SetHexpand(expand bool) {
2580+ _mock.Called(expand)
2581+ return
2582+}
2583+
2584+// MockPanedWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
2585+type MockPanedWidget_SetHexpand_Call struct {
2586+ *mock.Call
2587+}
2588+
2589+// SetHexpand is a helper method to define mock.On call
2590+// - expand bool
2591+func (_e *MockPanedWidget_Expecter) SetHexpand(expand interface{}) *MockPanedWidget_SetHexpand_Call {
2592+ return &MockPanedWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
2593+}
2594+
2595+func (_c *MockPanedWidget_SetHexpand_Call) Run(run func(expand bool)) *MockPanedWidget_SetHexpand_Call {
2596+ _c.Call.Run(func(args mock.Arguments) {
2597+ var arg0 bool
2598+ if args[0] != nil {
2599+ arg0 = args[0].(bool)
2600+ }
2601+ run(
2602+ arg0,
2603+ )
2604+ })
2605+ return _c
2606+}
2607+
2608+func (_c *MockPanedWidget_SetHexpand_Call) Return() *MockPanedWidget_SetHexpand_Call {
2609+ _c.Call.Return()
2610+ return _c
2611+}
2612+
2613+func (_c *MockPanedWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockPanedWidget_SetHexpand_Call {
2614+ _c.Run(run)
2615+ return _c
2616+}
2617+
2618+// SetPosition provides a mock function for the type MockPanedWidget
2619+func (_mock *MockPanedWidget) SetPosition(position int) {
2620+ _mock.Called(position)
2621+ return
2622+}
2623+
2624+// MockPanedWidget_SetPosition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPosition'
2625+type MockPanedWidget_SetPosition_Call struct {
2626+ *mock.Call
2627+}
2628+
2629+// SetPosition is a helper method to define mock.On call
2630+// - position int
2631+func (_e *MockPanedWidget_Expecter) SetPosition(position interface{}) *MockPanedWidget_SetPosition_Call {
2632+ return &MockPanedWidget_SetPosition_Call{Call: _e.mock.On("SetPosition", position)}
2633+}
2634+
2635+func (_c *MockPanedWidget_SetPosition_Call) Run(run func(position int)) *MockPanedWidget_SetPosition_Call {
2636+ _c.Call.Run(func(args mock.Arguments) {
2637+ var arg0 int
2638+ if args[0] != nil {
2639+ arg0 = args[0].(int)
2640+ }
2641+ run(
2642+ arg0,
2643+ )
2644+ })
2645+ return _c
2646+}
2647+
2648+func (_c *MockPanedWidget_SetPosition_Call) Return() *MockPanedWidget_SetPosition_Call {
2649+ _c.Call.Return()
2650+ return _c
2651+}
2652+
2653+func (_c *MockPanedWidget_SetPosition_Call) RunAndReturn(run func(position int)) *MockPanedWidget_SetPosition_Call {
2654+ _c.Run(run)
2655+ return _c
2656+}
2657+
2658+// SetResizeEndChild provides a mock function for the type MockPanedWidget
2659+func (_mock *MockPanedWidget) SetResizeEndChild(resize bool) {
2660+ _mock.Called(resize)
2661+ return
2662+}
2663+
2664+// MockPanedWidget_SetResizeEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetResizeEndChild'
2665+type MockPanedWidget_SetResizeEndChild_Call struct {
2666+ *mock.Call
2667+}
2668+
2669+// SetResizeEndChild is a helper method to define mock.On call
2670+// - resize bool
2671+func (_e *MockPanedWidget_Expecter) SetResizeEndChild(resize interface{}) *MockPanedWidget_SetResizeEndChild_Call {
2672+ return &MockPanedWidget_SetResizeEndChild_Call{Call: _e.mock.On("SetResizeEndChild", resize)}
2673+}
2674+
2675+func (_c *MockPanedWidget_SetResizeEndChild_Call) Run(run func(resize bool)) *MockPanedWidget_SetResizeEndChild_Call {
2676+ _c.Call.Run(func(args mock.Arguments) {
2677+ var arg0 bool
2678+ if args[0] != nil {
2679+ arg0 = args[0].(bool)
2680+ }
2681+ run(
2682+ arg0,
2683+ )
2684+ })
2685+ return _c
2686+}
2687+
2688+func (_c *MockPanedWidget_SetResizeEndChild_Call) Return() *MockPanedWidget_SetResizeEndChild_Call {
2689+ _c.Call.Return()
2690+ return _c
2691+}
2692+
2693+func (_c *MockPanedWidget_SetResizeEndChild_Call) RunAndReturn(run func(resize bool)) *MockPanedWidget_SetResizeEndChild_Call {
2694+ _c.Run(run)
2695+ return _c
2696+}
2697+
2698+// SetResizeStartChild provides a mock function for the type MockPanedWidget
2699+func (_mock *MockPanedWidget) SetResizeStartChild(resize bool) {
2700+ _mock.Called(resize)
2701+ return
2702+}
2703+
2704+// MockPanedWidget_SetResizeStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetResizeStartChild'
2705+type MockPanedWidget_SetResizeStartChild_Call struct {
2706+ *mock.Call
2707+}
2708+
2709+// SetResizeStartChild is a helper method to define mock.On call
2710+// - resize bool
2711+func (_e *MockPanedWidget_Expecter) SetResizeStartChild(resize interface{}) *MockPanedWidget_SetResizeStartChild_Call {
2712+ return &MockPanedWidget_SetResizeStartChild_Call{Call: _e.mock.On("SetResizeStartChild", resize)}
2713+}
2714+
2715+func (_c *MockPanedWidget_SetResizeStartChild_Call) Run(run func(resize bool)) *MockPanedWidget_SetResizeStartChild_Call {
2716+ _c.Call.Run(func(args mock.Arguments) {
2717+ var arg0 bool
2718+ if args[0] != nil {
2719+ arg0 = args[0].(bool)
2720+ }
2721+ run(
2722+ arg0,
2723+ )
2724+ })
2725+ return _c
2726+}
2727+
2728+func (_c *MockPanedWidget_SetResizeStartChild_Call) Return() *MockPanedWidget_SetResizeStartChild_Call {
2729+ _c.Call.Return()
2730+ return _c
2731+}
2732+
2733+func (_c *MockPanedWidget_SetResizeStartChild_Call) RunAndReturn(run func(resize bool)) *MockPanedWidget_SetResizeStartChild_Call {
2734+ _c.Run(run)
2735+ return _c
2736+}
2737+
2738+// SetShrinkEndChild provides a mock function for the type MockPanedWidget
2739+func (_mock *MockPanedWidget) SetShrinkEndChild(shrink bool) {
2740+ _mock.Called(shrink)
2741+ return
2742+}
2743+
2744+// MockPanedWidget_SetShrinkEndChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetShrinkEndChild'
2745+type MockPanedWidget_SetShrinkEndChild_Call struct {
2746+ *mock.Call
2747+}
2748+
2749+// SetShrinkEndChild is a helper method to define mock.On call
2750+// - shrink bool
2751+func (_e *MockPanedWidget_Expecter) SetShrinkEndChild(shrink interface{}) *MockPanedWidget_SetShrinkEndChild_Call {
2752+ return &MockPanedWidget_SetShrinkEndChild_Call{Call: _e.mock.On("SetShrinkEndChild", shrink)}
2753+}
2754+
2755+func (_c *MockPanedWidget_SetShrinkEndChild_Call) Run(run func(shrink bool)) *MockPanedWidget_SetShrinkEndChild_Call {
2756+ _c.Call.Run(func(args mock.Arguments) {
2757+ var arg0 bool
2758+ if args[0] != nil {
2759+ arg0 = args[0].(bool)
2760+ }
2761+ run(
2762+ arg0,
2763+ )
2764+ })
2765+ return _c
2766+}
2767+
2768+func (_c *MockPanedWidget_SetShrinkEndChild_Call) Return() *MockPanedWidget_SetShrinkEndChild_Call {
2769+ _c.Call.Return()
2770+ return _c
2771+}
2772+
2773+func (_c *MockPanedWidget_SetShrinkEndChild_Call) RunAndReturn(run func(shrink bool)) *MockPanedWidget_SetShrinkEndChild_Call {
2774+ _c.Run(run)
2775+ return _c
2776+}
2777+
2778+// SetShrinkStartChild provides a mock function for the type MockPanedWidget
2779+func (_mock *MockPanedWidget) SetShrinkStartChild(shrink bool) {
2780+ _mock.Called(shrink)
2781+ return
2782+}
2783+
2784+// MockPanedWidget_SetShrinkStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetShrinkStartChild'
2785+type MockPanedWidget_SetShrinkStartChild_Call struct {
2786+ *mock.Call
2787+}
2788+
2789+// SetShrinkStartChild is a helper method to define mock.On call
2790+// - shrink bool
2791+func (_e *MockPanedWidget_Expecter) SetShrinkStartChild(shrink interface{}) *MockPanedWidget_SetShrinkStartChild_Call {
2792+ return &MockPanedWidget_SetShrinkStartChild_Call{Call: _e.mock.On("SetShrinkStartChild", shrink)}
2793+}
2794+
2795+func (_c *MockPanedWidget_SetShrinkStartChild_Call) Run(run func(shrink bool)) *MockPanedWidget_SetShrinkStartChild_Call {
2796+ _c.Call.Run(func(args mock.Arguments) {
2797+ var arg0 bool
2798+ if args[0] != nil {
2799+ arg0 = args[0].(bool)
2800+ }
2801+ run(
2802+ arg0,
2803+ )
2804+ })
2805+ return _c
2806+}
2807+
2808+func (_c *MockPanedWidget_SetShrinkStartChild_Call) Return() *MockPanedWidget_SetShrinkStartChild_Call {
2809+ _c.Call.Return()
2810+ return _c
2811+}
2812+
2813+func (_c *MockPanedWidget_SetShrinkStartChild_Call) RunAndReturn(run func(shrink bool)) *MockPanedWidget_SetShrinkStartChild_Call {
2814+ _c.Run(run)
2815+ return _c
2816+}
2817+
2818+// SetSizeRequest provides a mock function for the type MockPanedWidget
2819+func (_mock *MockPanedWidget) SetSizeRequest(width int, height int) {
2820+ _mock.Called(width, height)
2821+ return
2822+}
2823+
2824+// MockPanedWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
2825+type MockPanedWidget_SetSizeRequest_Call struct {
2826+ *mock.Call
2827+}
2828+
2829+// SetSizeRequest is a helper method to define mock.On call
2830+// - width int
2831+// - height int
2832+func (_e *MockPanedWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockPanedWidget_SetSizeRequest_Call {
2833+ return &MockPanedWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
2834+}
2835+
2836+func (_c *MockPanedWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockPanedWidget_SetSizeRequest_Call {
2837+ _c.Call.Run(func(args mock.Arguments) {
2838+ var arg0 int
2839+ if args[0] != nil {
2840+ arg0 = args[0].(int)
2841+ }
2842+ var arg1 int
2843+ if args[1] != nil {
2844+ arg1 = args[1].(int)
2845+ }
2846+ run(
2847+ arg0,
2848+ arg1,
2849+ )
2850+ })
2851+ return _c
2852+}
2853+
2854+func (_c *MockPanedWidget_SetSizeRequest_Call) Return() *MockPanedWidget_SetSizeRequest_Call {
2855+ _c.Call.Return()
2856+ return _c
2857+}
2858+
2859+func (_c *MockPanedWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockPanedWidget_SetSizeRequest_Call {
2860+ _c.Run(run)
2861+ return _c
2862+}
2863+
2864+// SetStartChild provides a mock function for the type MockPanedWidget
2865+func (_mock *MockPanedWidget) SetStartChild(child layout.Widget) {
2866+ _mock.Called(child)
2867+ return
2868+}
2869+
2870+// MockPanedWidget_SetStartChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStartChild'
2871+type MockPanedWidget_SetStartChild_Call struct {
2872+ *mock.Call
2873+}
2874+
2875+// SetStartChild is a helper method to define mock.On call
2876+// - child layout.Widget
2877+func (_e *MockPanedWidget_Expecter) SetStartChild(child interface{}) *MockPanedWidget_SetStartChild_Call {
2878+ return &MockPanedWidget_SetStartChild_Call{Call: _e.mock.On("SetStartChild", child)}
2879+}
2880+
2881+func (_c *MockPanedWidget_SetStartChild_Call) Run(run func(child layout.Widget)) *MockPanedWidget_SetStartChild_Call {
2882+ _c.Call.Run(func(args mock.Arguments) {
2883+ var arg0 layout.Widget
2884+ if args[0] != nil {
2885+ arg0 = args[0].(layout.Widget)
2886+ }
2887+ run(
2888+ arg0,
2889+ )
2890+ })
2891+ return _c
2892+}
2893+
2894+func (_c *MockPanedWidget_SetStartChild_Call) Return() *MockPanedWidget_SetStartChild_Call {
2895+ _c.Call.Return()
2896+ return _c
2897+}
2898+
2899+func (_c *MockPanedWidget_SetStartChild_Call) RunAndReturn(run func(child layout.Widget)) *MockPanedWidget_SetStartChild_Call {
2900+ _c.Run(run)
2901+ return _c
2902+}
2903+
2904+// SetValign provides a mock function for the type MockPanedWidget
2905+func (_mock *MockPanedWidget) SetValign(align gtk.Align) {
2906+ _mock.Called(align)
2907+ return
2908+}
2909+
2910+// MockPanedWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
2911+type MockPanedWidget_SetValign_Call struct {
2912+ *mock.Call
2913+}
2914+
2915+// SetValign is a helper method to define mock.On call
2916+// - align gtk.Align
2917+func (_e *MockPanedWidget_Expecter) SetValign(align interface{}) *MockPanedWidget_SetValign_Call {
2918+ return &MockPanedWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
2919+}
2920+
2921+func (_c *MockPanedWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockPanedWidget_SetValign_Call {
2922+ _c.Call.Run(func(args mock.Arguments) {
2923+ var arg0 gtk.Align
2924+ if args[0] != nil {
2925+ arg0 = args[0].(gtk.Align)
2926+ }
2927+ run(
2928+ arg0,
2929+ )
2930+ })
2931+ return _c
2932+}
2933+
2934+func (_c *MockPanedWidget_SetValign_Call) Return() *MockPanedWidget_SetValign_Call {
2935+ _c.Call.Return()
2936+ return _c
2937+}
2938+
2939+func (_c *MockPanedWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockPanedWidget_SetValign_Call {
2940+ _c.Run(run)
2941+ return _c
2942+}
2943+
2944+// SetVexpand provides a mock function for the type MockPanedWidget
2945+func (_mock *MockPanedWidget) SetVexpand(expand bool) {
2946+ _mock.Called(expand)
2947+ return
2948+}
2949+
2950+// MockPanedWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
2951+type MockPanedWidget_SetVexpand_Call struct {
2952+ *mock.Call
2953+}
2954+
2955+// SetVexpand is a helper method to define mock.On call
2956+// - expand bool
2957+func (_e *MockPanedWidget_Expecter) SetVexpand(expand interface{}) *MockPanedWidget_SetVexpand_Call {
2958+ return &MockPanedWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
2959+}
2960+
2961+func (_c *MockPanedWidget_SetVexpand_Call) Run(run func(expand bool)) *MockPanedWidget_SetVexpand_Call {
2962+ _c.Call.Run(func(args mock.Arguments) {
2963+ var arg0 bool
2964+ if args[0] != nil {
2965+ arg0 = args[0].(bool)
2966+ }
2967+ run(
2968+ arg0,
2969+ )
2970+ })
2971+ return _c
2972+}
2973+
2974+func (_c *MockPanedWidget_SetVexpand_Call) Return() *MockPanedWidget_SetVexpand_Call {
2975+ _c.Call.Return()
2976+ return _c
2977+}
2978+
2979+func (_c *MockPanedWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockPanedWidget_SetVexpand_Call {
2980+ _c.Run(run)
2981+ return _c
2982+}
2983+
2984+// SetVisible provides a mock function for the type MockPanedWidget
2985+func (_mock *MockPanedWidget) SetVisible(visible bool) {
2986+ _mock.Called(visible)
2987+ return
2988+}
2989+
2990+// MockPanedWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
2991+type MockPanedWidget_SetVisible_Call struct {
2992+ *mock.Call
2993+}
2994+
2995+// SetVisible is a helper method to define mock.On call
2996+// - visible bool
2997+func (_e *MockPanedWidget_Expecter) SetVisible(visible interface{}) *MockPanedWidget_SetVisible_Call {
2998+ return &MockPanedWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
2999+}
3000+
3001+func (_c *MockPanedWidget_SetVisible_Call) Run(run func(visible bool)) *MockPanedWidget_SetVisible_Call {
3002+ _c.Call.Run(func(args mock.Arguments) {
3003+ var arg0 bool
3004+ if args[0] != nil {
3005+ arg0 = args[0].(bool)
3006+ }
3007+ run(
3008+ arg0,
3009+ )
3010+ })
3011+ return _c
3012+}
3013+
3014+func (_c *MockPanedWidget_SetVisible_Call) Return() *MockPanedWidget_SetVisible_Call {
3015+ _c.Call.Return()
3016+ return _c
3017+}
3018+
3019+func (_c *MockPanedWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockPanedWidget_SetVisible_Call {
3020+ _c.Run(run)
3021+ return _c
3022+}
3023+
3024+// SetWideHandle provides a mock function for the type MockPanedWidget
3025+func (_mock *MockPanedWidget) SetWideHandle(wide bool) {
3026+ _mock.Called(wide)
3027+ return
3028+}
3029+
3030+// MockPanedWidget_SetWideHandle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetWideHandle'
3031+type MockPanedWidget_SetWideHandle_Call struct {
3032+ *mock.Call
3033+}
3034+
3035+// SetWideHandle is a helper method to define mock.On call
3036+// - wide bool
3037+func (_e *MockPanedWidget_Expecter) SetWideHandle(wide interface{}) *MockPanedWidget_SetWideHandle_Call {
3038+ return &MockPanedWidget_SetWideHandle_Call{Call: _e.mock.On("SetWideHandle", wide)}
3039+}
3040+
3041+func (_c *MockPanedWidget_SetWideHandle_Call) Run(run func(wide bool)) *MockPanedWidget_SetWideHandle_Call {
3042+ _c.Call.Run(func(args mock.Arguments) {
3043+ var arg0 bool
3044+ if args[0] != nil {
3045+ arg0 = args[0].(bool)
3046+ }
3047+ run(
3048+ arg0,
3049+ )
3050+ })
3051+ return _c
3052+}
3053+
3054+func (_c *MockPanedWidget_SetWideHandle_Call) Return() *MockPanedWidget_SetWideHandle_Call {
3055+ _c.Call.Return()
3056+ return _c
3057+}
3058+
3059+func (_c *MockPanedWidget_SetWideHandle_Call) RunAndReturn(run func(wide bool)) *MockPanedWidget_SetWideHandle_Call {
3060+ _c.Run(run)
3061+ return _c
3062+}
3063+
3064+// Show provides a mock function for the type MockPanedWidget
3065+func (_mock *MockPanedWidget) Show() {
3066+ _mock.Called()
3067+ return
3068+}
3069+
3070+// MockPanedWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
3071+type MockPanedWidget_Show_Call struct {
3072+ *mock.Call
3073+}
3074+
3075+// Show is a helper method to define mock.On call
3076+func (_e *MockPanedWidget_Expecter) Show() *MockPanedWidget_Show_Call {
3077+ return &MockPanedWidget_Show_Call{Call: _e.mock.On("Show")}
3078+}
3079+
3080+func (_c *MockPanedWidget_Show_Call) Run(run func()) *MockPanedWidget_Show_Call {
3081+ _c.Call.Run(func(args mock.Arguments) {
3082+ run()
3083+ })
3084+ return _c
3085+}
3086+
3087+func (_c *MockPanedWidget_Show_Call) Return() *MockPanedWidget_Show_Call {
3088+ _c.Call.Return()
3089+ return _c
3090+}
3091+
3092+func (_c *MockPanedWidget_Show_Call) RunAndReturn(run func()) *MockPanedWidget_Show_Call {
3093+ _c.Run(run)
3094+ return _c
3095+}
3096+
3097+// Unparent provides a mock function for the type MockPanedWidget
3098+func (_mock *MockPanedWidget) Unparent() {
3099+ _mock.Called()
3100+ return
3101+}
3102+
3103+// MockPanedWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
3104+type MockPanedWidget_Unparent_Call struct {
3105+ *mock.Call
3106+}
3107+
3108+// Unparent is a helper method to define mock.On call
3109+func (_e *MockPanedWidget_Expecter) Unparent() *MockPanedWidget_Unparent_Call {
3110+ return &MockPanedWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
3111+}
3112+
3113+func (_c *MockPanedWidget_Unparent_Call) Run(run func()) *MockPanedWidget_Unparent_Call {
3114+ _c.Call.Run(func(args mock.Arguments) {
3115+ run()
3116+ })
3117+ return _c
3118+}
3119+
3120+func (_c *MockPanedWidget_Unparent_Call) Return() *MockPanedWidget_Unparent_Call {
3121+ _c.Call.Return()
3122+ return _c
3123+}
3124+
3125+func (_c *MockPanedWidget_Unparent_Call) RunAndReturn(run func()) *MockPanedWidget_Unparent_Call {
3126+ _c.Run(run)
3127+ return _c
3128+}
3129+
3130+// 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.
3131+// The first argument is typically a *testing.T value.
3132+func NewMockBoxWidget(t interface {
3133+ mock.TestingT
3134+ Cleanup(func())
3135+}) *MockBoxWidget {
3136+ mock := &MockBoxWidget{}
3137+ mock.Mock.Test(t)
3138+
3139+ t.Cleanup(func() { mock.AssertExpectations(t) })
3140+
3141+ return mock
3142+}
3143+
3144+// MockBoxWidget is an autogenerated mock type for the BoxWidget type
3145+type MockBoxWidget struct {
3146+ mock.Mock
3147+}
3148+
3149+type MockBoxWidget_Expecter struct {
3150+ mock *mock.Mock
3151+}
3152+
3153+func (_m *MockBoxWidget) EXPECT() *MockBoxWidget_Expecter {
3154+ return &MockBoxWidget_Expecter{mock: &_m.Mock}
3155+}
3156+
3157+// AddController provides a mock function for the type MockBoxWidget
3158+func (_mock *MockBoxWidget) AddController(controller *gtk.EventController) {
3159+ _mock.Called(controller)
3160+ return
3161+}
3162+
3163+// MockBoxWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
3164+type MockBoxWidget_AddController_Call struct {
3165+ *mock.Call
3166+}
3167+
3168+// AddController is a helper method to define mock.On call
3169+// - controller *gtk.EventController
3170+func (_e *MockBoxWidget_Expecter) AddController(controller interface{}) *MockBoxWidget_AddController_Call {
3171+ return &MockBoxWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
3172+}
3173+
3174+func (_c *MockBoxWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockBoxWidget_AddController_Call {
3175+ _c.Call.Run(func(args mock.Arguments) {
3176+ var arg0 *gtk.EventController
3177+ if args[0] != nil {
3178+ arg0 = args[0].(*gtk.EventController)
3179+ }
3180+ run(
3181+ arg0,
3182+ )
3183+ })
3184+ return _c
3185+}
3186+
3187+func (_c *MockBoxWidget_AddController_Call) Return() *MockBoxWidget_AddController_Call {
3188+ _c.Call.Return()
3189+ return _c
3190+}
3191+
3192+func (_c *MockBoxWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockBoxWidget_AddController_Call {
3193+ _c.Run(run)
3194+ return _c
3195+}
3196+
3197+// AddCssClass provides a mock function for the type MockBoxWidget
3198+func (_mock *MockBoxWidget) AddCssClass(cssClass string) {
3199+ _mock.Called(cssClass)
3200+ return
3201+}
3202+
3203+// MockBoxWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
3204+type MockBoxWidget_AddCssClass_Call struct {
3205+ *mock.Call
3206+}
3207+
3208+// AddCssClass is a helper method to define mock.On call
3209+// - cssClass string
3210+func (_e *MockBoxWidget_Expecter) AddCssClass(cssClass interface{}) *MockBoxWidget_AddCssClass_Call {
3211+ return &MockBoxWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
3212+}
3213+
3214+func (_c *MockBoxWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockBoxWidget_AddCssClass_Call {
3215+ _c.Call.Run(func(args mock.Arguments) {
3216+ var arg0 string
3217+ if args[0] != nil {
3218+ arg0 = args[0].(string)
3219+ }
3220+ run(
3221+ arg0,
3222+ )
3223+ })
3224+ return _c
3225+}
3226+
3227+func (_c *MockBoxWidget_AddCssClass_Call) Return() *MockBoxWidget_AddCssClass_Call {
3228+ _c.Call.Return()
3229+ return _c
3230+}
3231+
3232+func (_c *MockBoxWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockBoxWidget_AddCssClass_Call {
3233+ _c.Run(run)
3234+ return _c
3235+}
3236+
3237+// Append provides a mock function for the type MockBoxWidget
3238+func (_mock *MockBoxWidget) Append(child layout.Widget) {
3239+ _mock.Called(child)
3240+ return
3241+}
3242+
3243+// MockBoxWidget_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'
3244+type MockBoxWidget_Append_Call struct {
3245+ *mock.Call
3246+}
3247+
3248+// Append is a helper method to define mock.On call
3249+// - child layout.Widget
3250+func (_e *MockBoxWidget_Expecter) Append(child interface{}) *MockBoxWidget_Append_Call {
3251+ return &MockBoxWidget_Append_Call{Call: _e.mock.On("Append", child)}
3252+}
3253+
3254+func (_c *MockBoxWidget_Append_Call) Run(run func(child layout.Widget)) *MockBoxWidget_Append_Call {
3255+ _c.Call.Run(func(args mock.Arguments) {
3256+ var arg0 layout.Widget
3257+ if args[0] != nil {
3258+ arg0 = args[0].(layout.Widget)
3259+ }
3260+ run(
3261+ arg0,
3262+ )
3263+ })
3264+ return _c
3265+}
3266+
3267+func (_c *MockBoxWidget_Append_Call) Return() *MockBoxWidget_Append_Call {
3268+ _c.Call.Return()
3269+ return _c
3270+}
3271+
3272+func (_c *MockBoxWidget_Append_Call) RunAndReturn(run func(child layout.Widget)) *MockBoxWidget_Append_Call {
3273+ _c.Run(run)
3274+ return _c
3275+}
3276+
3277+// ComputePoint provides a mock function for the type MockBoxWidget
3278+func (_mock *MockBoxWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
3279+ ret := _mock.Called(target)
3280+
3281+ if len(ret) == 0 {
3282+ panic("no return value specified for ComputePoint")
3283+ }
3284+
3285+ var r0 float64
3286+ var r1 float64
3287+ var r2 bool
3288+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
3289+ return returnFunc(target)
3290+ }
3291+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
3292+ r0 = returnFunc(target)
3293+ } else {
3294+ r0 = ret.Get(0).(float64)
3295+ }
3296+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
3297+ r1 = returnFunc(target)
3298+ } else {
3299+ r1 = ret.Get(1).(float64)
3300+ }
3301+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
3302+ r2 = returnFunc(target)
3303+ } else {
3304+ r2 = ret.Get(2).(bool)
3305+ }
3306+ return r0, r1, r2
3307+}
3308+
3309+// MockBoxWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
3310+type MockBoxWidget_ComputePoint_Call struct {
3311+ *mock.Call
3312+}
3313+
3314+// ComputePoint is a helper method to define mock.On call
3315+// - target layout.Widget
3316+func (_e *MockBoxWidget_Expecter) ComputePoint(target interface{}) *MockBoxWidget_ComputePoint_Call {
3317+ return &MockBoxWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
3318+}
3319+
3320+func (_c *MockBoxWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockBoxWidget_ComputePoint_Call {
3321+ _c.Call.Run(func(args mock.Arguments) {
3322+ var arg0 layout.Widget
3323+ if args[0] != nil {
3324+ arg0 = args[0].(layout.Widget)
3325+ }
3326+ run(
3327+ arg0,
3328+ )
3329+ })
3330+ return _c
3331+}
3332+
3333+func (_c *MockBoxWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockBoxWidget_ComputePoint_Call {
3334+ _c.Call.Return(x, y, ok)
3335+ return _c
3336+}
3337+
3338+func (_c *MockBoxWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockBoxWidget_ComputePoint_Call {
3339+ _c.Call.Return(run)
3340+ return _c
3341+}
3342+
3343+// GetAllocatedHeight provides a mock function for the type MockBoxWidget
3344+func (_mock *MockBoxWidget) GetAllocatedHeight() int {
3345+ ret := _mock.Called()
3346+
3347+ if len(ret) == 0 {
3348+ panic("no return value specified for GetAllocatedHeight")
3349+ }
3350+
3351+ var r0 int
3352+ if returnFunc, ok := ret.Get(0).(func() int); ok {
3353+ r0 = returnFunc()
3354+ } else {
3355+ r0 = ret.Get(0).(int)
3356+ }
3357+ return r0
3358+}
3359+
3360+// MockBoxWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
3361+type MockBoxWidget_GetAllocatedHeight_Call struct {
3362+ *mock.Call
3363+}
3364+
3365+// GetAllocatedHeight is a helper method to define mock.On call
3366+func (_e *MockBoxWidget_Expecter) GetAllocatedHeight() *MockBoxWidget_GetAllocatedHeight_Call {
3367+ return &MockBoxWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
3368+}
3369+
3370+func (_c *MockBoxWidget_GetAllocatedHeight_Call) Run(run func()) *MockBoxWidget_GetAllocatedHeight_Call {
3371+ _c.Call.Run(func(args mock.Arguments) {
3372+ run()
3373+ })
3374+ return _c
3375+}
3376+
3377+func (_c *MockBoxWidget_GetAllocatedHeight_Call) Return(n int) *MockBoxWidget_GetAllocatedHeight_Call {
3378+ _c.Call.Return(n)
3379+ return _c
3380+}
3381+
3382+func (_c *MockBoxWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockBoxWidget_GetAllocatedHeight_Call {
3383+ _c.Call.Return(run)
3384+ return _c
3385+}
3386+
3387+// GetAllocatedWidth provides a mock function for the type MockBoxWidget
3388+func (_mock *MockBoxWidget) GetAllocatedWidth() int {
3389+ ret := _mock.Called()
3390+
3391+ if len(ret) == 0 {
3392+ panic("no return value specified for GetAllocatedWidth")
3393+ }
3394+
3395+ var r0 int
3396+ if returnFunc, ok := ret.Get(0).(func() int); ok {
3397+ r0 = returnFunc()
3398+ } else {
3399+ r0 = ret.Get(0).(int)
3400+ }
3401+ return r0
3402+}
3403+
3404+// MockBoxWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
3405+type MockBoxWidget_GetAllocatedWidth_Call struct {
3406+ *mock.Call
3407+}
3408+
3409+// GetAllocatedWidth is a helper method to define mock.On call
3410+func (_e *MockBoxWidget_Expecter) GetAllocatedWidth() *MockBoxWidget_GetAllocatedWidth_Call {
3411+ return &MockBoxWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
3412+}
3413+
3414+func (_c *MockBoxWidget_GetAllocatedWidth_Call) Run(run func()) *MockBoxWidget_GetAllocatedWidth_Call {
3415+ _c.Call.Run(func(args mock.Arguments) {
3416+ run()
3417+ })
3418+ return _c
3419+}
3420+
3421+func (_c *MockBoxWidget_GetAllocatedWidth_Call) Return(n int) *MockBoxWidget_GetAllocatedWidth_Call {
3422+ _c.Call.Return(n)
3423+ return _c
3424+}
3425+
3426+func (_c *MockBoxWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockBoxWidget_GetAllocatedWidth_Call {
3427+ _c.Call.Return(run)
3428+ return _c
3429+}
3430+
3431+// GetHexpand provides a mock function for the type MockBoxWidget
3432+func (_mock *MockBoxWidget) GetHexpand() bool {
3433+ ret := _mock.Called()
3434+
3435+ if len(ret) == 0 {
3436+ panic("no return value specified for GetHexpand")
3437+ }
3438+
3439+ var r0 bool
3440+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
3441+ r0 = returnFunc()
3442+ } else {
3443+ r0 = ret.Get(0).(bool)
3444+ }
3445+ return r0
3446+}
3447+
3448+// MockBoxWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
3449+type MockBoxWidget_GetHexpand_Call struct {
3450+ *mock.Call
3451+}
3452+
3453+// GetHexpand is a helper method to define mock.On call
3454+func (_e *MockBoxWidget_Expecter) GetHexpand() *MockBoxWidget_GetHexpand_Call {
3455+ return &MockBoxWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
3456+}
3457+
3458+func (_c *MockBoxWidget_GetHexpand_Call) Run(run func()) *MockBoxWidget_GetHexpand_Call {
3459+ _c.Call.Run(func(args mock.Arguments) {
3460+ run()
3461+ })
3462+ return _c
3463+}
3464+
3465+func (_c *MockBoxWidget_GetHexpand_Call) Return(b bool) *MockBoxWidget_GetHexpand_Call {
3466+ _c.Call.Return(b)
3467+ return _c
3468+}
3469+
3470+func (_c *MockBoxWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockBoxWidget_GetHexpand_Call {
3471+ _c.Call.Return(run)
3472+ return _c
3473+}
3474+
3475+// GetHomogeneous provides a mock function for the type MockBoxWidget
3476+func (_mock *MockBoxWidget) GetHomogeneous() bool {
3477+ ret := _mock.Called()
3478+
3479+ if len(ret) == 0 {
3480+ panic("no return value specified for GetHomogeneous")
3481+ }
3482+
3483+ var r0 bool
3484+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
3485+ r0 = returnFunc()
3486+ } else {
3487+ r0 = ret.Get(0).(bool)
3488+ }
3489+ return r0
3490+}
3491+
3492+// MockBoxWidget_GetHomogeneous_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomogeneous'
3493+type MockBoxWidget_GetHomogeneous_Call struct {
3494+ *mock.Call
3495+}
3496+
3497+// GetHomogeneous is a helper method to define mock.On call
3498+func (_e *MockBoxWidget_Expecter) GetHomogeneous() *MockBoxWidget_GetHomogeneous_Call {
3499+ return &MockBoxWidget_GetHomogeneous_Call{Call: _e.mock.On("GetHomogeneous")}
3500+}
3501+
3502+func (_c *MockBoxWidget_GetHomogeneous_Call) Run(run func()) *MockBoxWidget_GetHomogeneous_Call {
3503+ _c.Call.Run(func(args mock.Arguments) {
3504+ run()
3505+ })
3506+ return _c
3507+}
3508+
3509+func (_c *MockBoxWidget_GetHomogeneous_Call) Return(b bool) *MockBoxWidget_GetHomogeneous_Call {
3510+ _c.Call.Return(b)
3511+ return _c
3512+}
3513+
3514+func (_c *MockBoxWidget_GetHomogeneous_Call) RunAndReturn(run func() bool) *MockBoxWidget_GetHomogeneous_Call {
3515+ _c.Call.Return(run)
3516+ return _c
3517+}
3518+
3519+// GetOrientation provides a mock function for the type MockBoxWidget
3520+func (_mock *MockBoxWidget) GetOrientation() layout.Orientation {
3521+ ret := _mock.Called()
3522+
3523+ if len(ret) == 0 {
3524+ panic("no return value specified for GetOrientation")
3525+ }
3526+
3527+ var r0 layout.Orientation
3528+ if returnFunc, ok := ret.Get(0).(func() layout.Orientation); ok {
3529+ r0 = returnFunc()
3530+ } else {
3531+ r0 = ret.Get(0).(layout.Orientation)
3532+ }
3533+ return r0
3534+}
3535+
3536+// MockBoxWidget_GetOrientation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrientation'
3537+type MockBoxWidget_GetOrientation_Call struct {
3538+ *mock.Call
3539+}
3540+
3541+// GetOrientation is a helper method to define mock.On call
3542+func (_e *MockBoxWidget_Expecter) GetOrientation() *MockBoxWidget_GetOrientation_Call {
3543+ return &MockBoxWidget_GetOrientation_Call{Call: _e.mock.On("GetOrientation")}
3544+}
3545+
3546+func (_c *MockBoxWidget_GetOrientation_Call) Run(run func()) *MockBoxWidget_GetOrientation_Call {
3547+ _c.Call.Run(func(args mock.Arguments) {
3548+ run()
3549+ })
3550+ return _c
3551+}
3552+
3553+func (_c *MockBoxWidget_GetOrientation_Call) Return(v layout.Orientation) *MockBoxWidget_GetOrientation_Call {
3554+ _c.Call.Return(v)
3555+ return _c
3556+}
3557+
3558+func (_c *MockBoxWidget_GetOrientation_Call) RunAndReturn(run func() layout.Orientation) *MockBoxWidget_GetOrientation_Call {
3559+ _c.Call.Return(run)
3560+ return _c
3561+}
3562+
3563+// GetParent provides a mock function for the type MockBoxWidget
3564+func (_mock *MockBoxWidget) GetParent() layout.Widget {
3565+ ret := _mock.Called()
3566+
3567+ if len(ret) == 0 {
3568+ panic("no return value specified for GetParent")
3569+ }
3570+
3571+ var r0 layout.Widget
3572+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
3573+ r0 = returnFunc()
3574+ } else {
3575+ if ret.Get(0) != nil {
3576+ r0 = ret.Get(0).(layout.Widget)
3577+ }
3578+ }
3579+ return r0
3580+}
3581+
3582+// MockBoxWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
3583+type MockBoxWidget_GetParent_Call struct {
3584+ *mock.Call
3585+}
3586+
3587+// GetParent is a helper method to define mock.On call
3588+func (_e *MockBoxWidget_Expecter) GetParent() *MockBoxWidget_GetParent_Call {
3589+ return &MockBoxWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
3590+}
3591+
3592+func (_c *MockBoxWidget_GetParent_Call) Run(run func()) *MockBoxWidget_GetParent_Call {
3593+ _c.Call.Run(func(args mock.Arguments) {
3594+ run()
3595+ })
3596+ return _c
3597+}
3598+
3599+func (_c *MockBoxWidget_GetParent_Call) Return(widget layout.Widget) *MockBoxWidget_GetParent_Call {
3600+ _c.Call.Return(widget)
3601+ return _c
3602+}
3603+
3604+func (_c *MockBoxWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockBoxWidget_GetParent_Call {
3605+ _c.Call.Return(run)
3606+ return _c
3607+}
3608+
3609+// GetSpacing provides a mock function for the type MockBoxWidget
3610+func (_mock *MockBoxWidget) GetSpacing() int {
3611+ ret := _mock.Called()
3612+
3613+ if len(ret) == 0 {
3614+ panic("no return value specified for GetSpacing")
3615+ }
3616+
3617+ var r0 int
3618+ if returnFunc, ok := ret.Get(0).(func() int); ok {
3619+ r0 = returnFunc()
3620+ } else {
3621+ r0 = ret.Get(0).(int)
3622+ }
3623+ return r0
3624+}
3625+
3626+// MockBoxWidget_GetSpacing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSpacing'
3627+type MockBoxWidget_GetSpacing_Call struct {
3628+ *mock.Call
3629+}
3630+
3631+// GetSpacing is a helper method to define mock.On call
3632+func (_e *MockBoxWidget_Expecter) GetSpacing() *MockBoxWidget_GetSpacing_Call {
3633+ return &MockBoxWidget_GetSpacing_Call{Call: _e.mock.On("GetSpacing")}
3634+}
3635+
3636+func (_c *MockBoxWidget_GetSpacing_Call) Run(run func()) *MockBoxWidget_GetSpacing_Call {
3637+ _c.Call.Run(func(args mock.Arguments) {
3638+ run()
3639+ })
3640+ return _c
3641+}
3642+
3643+func (_c *MockBoxWidget_GetSpacing_Call) Return(n int) *MockBoxWidget_GetSpacing_Call {
3644+ _c.Call.Return(n)
3645+ return _c
3646+}
3647+
3648+func (_c *MockBoxWidget_GetSpacing_Call) RunAndReturn(run func() int) *MockBoxWidget_GetSpacing_Call {
3649+ _c.Call.Return(run)
3650+ return _c
3651+}
3652+
3653+// GetVexpand provides a mock function for the type MockBoxWidget
3654+func (_mock *MockBoxWidget) GetVexpand() bool {
3655+ ret := _mock.Called()
3656+
3657+ if len(ret) == 0 {
3658+ panic("no return value specified for GetVexpand")
3659+ }
3660+
3661+ var r0 bool
3662+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
3663+ r0 = returnFunc()
3664+ } else {
3665+ r0 = ret.Get(0).(bool)
3666+ }
3667+ return r0
3668+}
3669+
3670+// MockBoxWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
3671+type MockBoxWidget_GetVexpand_Call struct {
3672+ *mock.Call
3673+}
3674+
3675+// GetVexpand is a helper method to define mock.On call
3676+func (_e *MockBoxWidget_Expecter) GetVexpand() *MockBoxWidget_GetVexpand_Call {
3677+ return &MockBoxWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
3678+}
3679+
3680+func (_c *MockBoxWidget_GetVexpand_Call) Run(run func()) *MockBoxWidget_GetVexpand_Call {
3681+ _c.Call.Run(func(args mock.Arguments) {
3682+ run()
3683+ })
3684+ return _c
3685+}
3686+
3687+func (_c *MockBoxWidget_GetVexpand_Call) Return(b bool) *MockBoxWidget_GetVexpand_Call {
3688+ _c.Call.Return(b)
3689+ return _c
3690+}
3691+
3692+func (_c *MockBoxWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockBoxWidget_GetVexpand_Call {
3693+ _c.Call.Return(run)
3694+ return _c
3695+}
3696+
3697+// GrabFocus provides a mock function for the type MockBoxWidget
3698+func (_mock *MockBoxWidget) GrabFocus() bool {
3699+ ret := _mock.Called()
3700+
3701+ if len(ret) == 0 {
3702+ panic("no return value specified for GrabFocus")
3703+ }
3704+
3705+ var r0 bool
3706+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
3707+ r0 = returnFunc()
3708+ } else {
3709+ r0 = ret.Get(0).(bool)
3710+ }
3711+ return r0
3712+}
3713+
3714+// MockBoxWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
3715+type MockBoxWidget_GrabFocus_Call struct {
3716+ *mock.Call
3717+}
3718+
3719+// GrabFocus is a helper method to define mock.On call
3720+func (_e *MockBoxWidget_Expecter) GrabFocus() *MockBoxWidget_GrabFocus_Call {
3721+ return &MockBoxWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
3722+}
3723+
3724+func (_c *MockBoxWidget_GrabFocus_Call) Run(run func()) *MockBoxWidget_GrabFocus_Call {
3725+ _c.Call.Run(func(args mock.Arguments) {
3726+ run()
3727+ })
3728+ return _c
3729+}
3730+
3731+func (_c *MockBoxWidget_GrabFocus_Call) Return(b bool) *MockBoxWidget_GrabFocus_Call {
3732+ _c.Call.Return(b)
3733+ return _c
3734+}
3735+
3736+func (_c *MockBoxWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockBoxWidget_GrabFocus_Call {
3737+ _c.Call.Return(run)
3738+ return _c
3739+}
3740+
3741+// GtkWidget provides a mock function for the type MockBoxWidget
3742+func (_mock *MockBoxWidget) GtkWidget() *gtk.Widget {
3743+ ret := _mock.Called()
3744+
3745+ if len(ret) == 0 {
3746+ panic("no return value specified for GtkWidget")
3747+ }
3748+
3749+ var r0 *gtk.Widget
3750+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
3751+ r0 = returnFunc()
3752+ } else {
3753+ if ret.Get(0) != nil {
3754+ r0 = ret.Get(0).(*gtk.Widget)
3755+ }
3756+ }
3757+ return r0
3758+}
3759+
3760+// MockBoxWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
3761+type MockBoxWidget_GtkWidget_Call struct {
3762+ *mock.Call
3763+}
3764+
3765+// GtkWidget is a helper method to define mock.On call
3766+func (_e *MockBoxWidget_Expecter) GtkWidget() *MockBoxWidget_GtkWidget_Call {
3767+ return &MockBoxWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
3768+}
3769+
3770+func (_c *MockBoxWidget_GtkWidget_Call) Run(run func()) *MockBoxWidget_GtkWidget_Call {
3771+ _c.Call.Run(func(args mock.Arguments) {
3772+ run()
3773+ })
3774+ return _c
3775+}
3776+
3777+func (_c *MockBoxWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockBoxWidget_GtkWidget_Call {
3778+ _c.Call.Return(widget)
3779+ return _c
3780+}
3781+
3782+func (_c *MockBoxWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockBoxWidget_GtkWidget_Call {
3783+ _c.Call.Return(run)
3784+ return _c
3785+}
3786+
3787+// HasCssClass provides a mock function for the type MockBoxWidget
3788+func (_mock *MockBoxWidget) HasCssClass(cssClass string) bool {
3789+ ret := _mock.Called(cssClass)
3790+
3791+ if len(ret) == 0 {
3792+ panic("no return value specified for HasCssClass")
3793+ }
3794+
3795+ var r0 bool
3796+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
3797+ r0 = returnFunc(cssClass)
3798+ } else {
3799+ r0 = ret.Get(0).(bool)
3800+ }
3801+ return r0
3802+}
3803+
3804+// MockBoxWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
3805+type MockBoxWidget_HasCssClass_Call struct {
3806+ *mock.Call
3807+}
3808+
3809+// HasCssClass is a helper method to define mock.On call
3810+// - cssClass string
3811+func (_e *MockBoxWidget_Expecter) HasCssClass(cssClass interface{}) *MockBoxWidget_HasCssClass_Call {
3812+ return &MockBoxWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
3813+}
3814+
3815+func (_c *MockBoxWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockBoxWidget_HasCssClass_Call {
3816+ _c.Call.Run(func(args mock.Arguments) {
3817+ var arg0 string
3818+ if args[0] != nil {
3819+ arg0 = args[0].(string)
3820+ }
3821+ run(
3822+ arg0,
3823+ )
3824+ })
3825+ return _c
3826+}
3827+
3828+func (_c *MockBoxWidget_HasCssClass_Call) Return(b bool) *MockBoxWidget_HasCssClass_Call {
3829+ _c.Call.Return(b)
3830+ return _c
3831+}
3832+
3833+func (_c *MockBoxWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockBoxWidget_HasCssClass_Call {
3834+ _c.Call.Return(run)
3835+ return _c
3836+}
3837+
3838+// HasFocus provides a mock function for the type MockBoxWidget
3839+func (_mock *MockBoxWidget) HasFocus() bool {
3840+ ret := _mock.Called()
3841+
3842+ if len(ret) == 0 {
3843+ panic("no return value specified for HasFocus")
3844+ }
3845+
3846+ var r0 bool
3847+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
3848+ r0 = returnFunc()
3849+ } else {
3850+ r0 = ret.Get(0).(bool)
3851+ }
3852+ return r0
3853+}
3854+
3855+// MockBoxWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
3856+type MockBoxWidget_HasFocus_Call struct {
3857+ *mock.Call
3858+}
3859+
3860+// HasFocus is a helper method to define mock.On call
3861+func (_e *MockBoxWidget_Expecter) HasFocus() *MockBoxWidget_HasFocus_Call {
3862+ return &MockBoxWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
3863+}
3864+
3865+func (_c *MockBoxWidget_HasFocus_Call) Run(run func()) *MockBoxWidget_HasFocus_Call {
3866+ _c.Call.Run(func(args mock.Arguments) {
3867+ run()
3868+ })
3869+ return _c
3870+}
3871+
3872+func (_c *MockBoxWidget_HasFocus_Call) Return(b bool) *MockBoxWidget_HasFocus_Call {
3873+ _c.Call.Return(b)
3874+ return _c
3875+}
3876+
3877+func (_c *MockBoxWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockBoxWidget_HasFocus_Call {
3878+ _c.Call.Return(run)
3879+ return _c
3880+}
3881+
3882+// Hide provides a mock function for the type MockBoxWidget
3883+func (_mock *MockBoxWidget) Hide() {
3884+ _mock.Called()
3885+ return
3886+}
3887+
3888+// MockBoxWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
3889+type MockBoxWidget_Hide_Call struct {
3890+ *mock.Call
3891+}
3892+
3893+// Hide is a helper method to define mock.On call
3894+func (_e *MockBoxWidget_Expecter) Hide() *MockBoxWidget_Hide_Call {
3895+ return &MockBoxWidget_Hide_Call{Call: _e.mock.On("Hide")}
3896+}
3897+
3898+func (_c *MockBoxWidget_Hide_Call) Run(run func()) *MockBoxWidget_Hide_Call {
3899+ _c.Call.Run(func(args mock.Arguments) {
3900+ run()
3901+ })
3902+ return _c
3903+}
3904+
3905+func (_c *MockBoxWidget_Hide_Call) Return() *MockBoxWidget_Hide_Call {
3906+ _c.Call.Return()
3907+ return _c
3908+}
3909+
3910+func (_c *MockBoxWidget_Hide_Call) RunAndReturn(run func()) *MockBoxWidget_Hide_Call {
3911+ _c.Run(run)
3912+ return _c
3913+}
3914+
3915+// InsertChildAfter provides a mock function for the type MockBoxWidget
3916+func (_mock *MockBoxWidget) InsertChildAfter(child layout.Widget, sibling layout.Widget) {
3917+ _mock.Called(child, sibling)
3918+ return
3919+}
3920+
3921+// MockBoxWidget_InsertChildAfter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertChildAfter'
3922+type MockBoxWidget_InsertChildAfter_Call struct {
3923+ *mock.Call
3924+}
3925+
3926+// InsertChildAfter is a helper method to define mock.On call
3927+// - child layout.Widget
3928+// - sibling layout.Widget
3929+func (_e *MockBoxWidget_Expecter) InsertChildAfter(child interface{}, sibling interface{}) *MockBoxWidget_InsertChildAfter_Call {
3930+ return &MockBoxWidget_InsertChildAfter_Call{Call: _e.mock.On("InsertChildAfter", child, sibling)}
3931+}
3932+
3933+func (_c *MockBoxWidget_InsertChildAfter_Call) Run(run func(child layout.Widget, sibling layout.Widget)) *MockBoxWidget_InsertChildAfter_Call {
3934+ _c.Call.Run(func(args mock.Arguments) {
3935+ var arg0 layout.Widget
3936+ if args[0] != nil {
3937+ arg0 = args[0].(layout.Widget)
3938+ }
3939+ var arg1 layout.Widget
3940+ if args[1] != nil {
3941+ arg1 = args[1].(layout.Widget)
3942+ }
3943+ run(
3944+ arg0,
3945+ arg1,
3946+ )
3947+ })
3948+ return _c
3949+}
3950+
3951+func (_c *MockBoxWidget_InsertChildAfter_Call) Return() *MockBoxWidget_InsertChildAfter_Call {
3952+ _c.Call.Return()
3953+ return _c
3954+}
3955+
3956+func (_c *MockBoxWidget_InsertChildAfter_Call) RunAndReturn(run func(child layout.Widget, sibling layout.Widget)) *MockBoxWidget_InsertChildAfter_Call {
3957+ _c.Run(run)
3958+ return _c
3959+}
3960+
3961+// IsVisible provides a mock function for the type MockBoxWidget
3962+func (_mock *MockBoxWidget) IsVisible() bool {
3963+ ret := _mock.Called()
3964+
3965+ if len(ret) == 0 {
3966+ panic("no return value specified for IsVisible")
3967+ }
3968+
3969+ var r0 bool
3970+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
3971+ r0 = returnFunc()
3972+ } else {
3973+ r0 = ret.Get(0).(bool)
3974+ }
3975+ return r0
3976+}
3977+
3978+// MockBoxWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
3979+type MockBoxWidget_IsVisible_Call struct {
3980+ *mock.Call
3981+}
3982+
3983+// IsVisible is a helper method to define mock.On call
3984+func (_e *MockBoxWidget_Expecter) IsVisible() *MockBoxWidget_IsVisible_Call {
3985+ return &MockBoxWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
3986+}
3987+
3988+func (_c *MockBoxWidget_IsVisible_Call) Run(run func()) *MockBoxWidget_IsVisible_Call {
3989+ _c.Call.Run(func(args mock.Arguments) {
3990+ run()
3991+ })
3992+ return _c
3993+}
3994+
3995+func (_c *MockBoxWidget_IsVisible_Call) Return(b bool) *MockBoxWidget_IsVisible_Call {
3996+ _c.Call.Return(b)
3997+ return _c
3998+}
3999+
4000+func (_c *MockBoxWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockBoxWidget_IsVisible_Call {
4001+ _c.Call.Return(run)
4002+ return _c
4003+}
4004+
4005+// Prepend provides a mock function for the type MockBoxWidget
4006+func (_mock *MockBoxWidget) Prepend(child layout.Widget) {
4007+ _mock.Called(child)
4008+ return
4009+}
4010+
4011+// MockBoxWidget_Prepend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepend'
4012+type MockBoxWidget_Prepend_Call struct {
4013+ *mock.Call
4014+}
4015+
4016+// Prepend is a helper method to define mock.On call
4017+// - child layout.Widget
4018+func (_e *MockBoxWidget_Expecter) Prepend(child interface{}) *MockBoxWidget_Prepend_Call {
4019+ return &MockBoxWidget_Prepend_Call{Call: _e.mock.On("Prepend", child)}
4020+}
4021+
4022+func (_c *MockBoxWidget_Prepend_Call) Run(run func(child layout.Widget)) *MockBoxWidget_Prepend_Call {
4023+ _c.Call.Run(func(args mock.Arguments) {
4024+ var arg0 layout.Widget
4025+ if args[0] != nil {
4026+ arg0 = args[0].(layout.Widget)
4027+ }
4028+ run(
4029+ arg0,
4030+ )
4031+ })
4032+ return _c
4033+}
4034+
4035+func (_c *MockBoxWidget_Prepend_Call) Return() *MockBoxWidget_Prepend_Call {
4036+ _c.Call.Return()
4037+ return _c
4038+}
4039+
4040+func (_c *MockBoxWidget_Prepend_Call) RunAndReturn(run func(child layout.Widget)) *MockBoxWidget_Prepend_Call {
4041+ _c.Run(run)
4042+ return _c
4043+}
4044+
4045+// Remove provides a mock function for the type MockBoxWidget
4046+func (_mock *MockBoxWidget) Remove(child layout.Widget) {
4047+ _mock.Called(child)
4048+ return
4049+}
4050+
4051+// MockBoxWidget_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
4052+type MockBoxWidget_Remove_Call struct {
4053+ *mock.Call
4054+}
4055+
4056+// Remove is a helper method to define mock.On call
4057+// - child layout.Widget
4058+func (_e *MockBoxWidget_Expecter) Remove(child interface{}) *MockBoxWidget_Remove_Call {
4059+ return &MockBoxWidget_Remove_Call{Call: _e.mock.On("Remove", child)}
4060+}
4061+
4062+func (_c *MockBoxWidget_Remove_Call) Run(run func(child layout.Widget)) *MockBoxWidget_Remove_Call {
4063+ _c.Call.Run(func(args mock.Arguments) {
4064+ var arg0 layout.Widget
4065+ if args[0] != nil {
4066+ arg0 = args[0].(layout.Widget)
4067+ }
4068+ run(
4069+ arg0,
4070+ )
4071+ })
4072+ return _c
4073+}
4074+
4075+func (_c *MockBoxWidget_Remove_Call) Return() *MockBoxWidget_Remove_Call {
4076+ _c.Call.Return()
4077+ return _c
4078+}
4079+
4080+func (_c *MockBoxWidget_Remove_Call) RunAndReturn(run func(child layout.Widget)) *MockBoxWidget_Remove_Call {
4081+ _c.Run(run)
4082+ return _c
4083+}
4084+
4085+// RemoveCssClass provides a mock function for the type MockBoxWidget
4086+func (_mock *MockBoxWidget) RemoveCssClass(cssClass string) {
4087+ _mock.Called(cssClass)
4088+ return
4089+}
4090+
4091+// MockBoxWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
4092+type MockBoxWidget_RemoveCssClass_Call struct {
4093+ *mock.Call
4094+}
4095+
4096+// RemoveCssClass is a helper method to define mock.On call
4097+// - cssClass string
4098+func (_e *MockBoxWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockBoxWidget_RemoveCssClass_Call {
4099+ return &MockBoxWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
4100+}
4101+
4102+func (_c *MockBoxWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockBoxWidget_RemoveCssClass_Call {
4103+ _c.Call.Run(func(args mock.Arguments) {
4104+ var arg0 string
4105+ if args[0] != nil {
4106+ arg0 = args[0].(string)
4107+ }
4108+ run(
4109+ arg0,
4110+ )
4111+ })
4112+ return _c
4113+}
4114+
4115+func (_c *MockBoxWidget_RemoveCssClass_Call) Return() *MockBoxWidget_RemoveCssClass_Call {
4116+ _c.Call.Return()
4117+ return _c
4118+}
4119+
4120+func (_c *MockBoxWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockBoxWidget_RemoveCssClass_Call {
4121+ _c.Run(run)
4122+ return _c
4123+}
4124+
4125+// ReorderChildAfter provides a mock function for the type MockBoxWidget
4126+func (_mock *MockBoxWidget) ReorderChildAfter(child layout.Widget, sibling layout.Widget) {
4127+ _mock.Called(child, sibling)
4128+ return
4129+}
4130+
4131+// MockBoxWidget_ReorderChildAfter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReorderChildAfter'
4132+type MockBoxWidget_ReorderChildAfter_Call struct {
4133+ *mock.Call
4134+}
4135+
4136+// ReorderChildAfter is a helper method to define mock.On call
4137+// - child layout.Widget
4138+// - sibling layout.Widget
4139+func (_e *MockBoxWidget_Expecter) ReorderChildAfter(child interface{}, sibling interface{}) *MockBoxWidget_ReorderChildAfter_Call {
4140+ return &MockBoxWidget_ReorderChildAfter_Call{Call: _e.mock.On("ReorderChildAfter", child, sibling)}
4141+}
4142+
4143+func (_c *MockBoxWidget_ReorderChildAfter_Call) Run(run func(child layout.Widget, sibling layout.Widget)) *MockBoxWidget_ReorderChildAfter_Call {
4144+ _c.Call.Run(func(args mock.Arguments) {
4145+ var arg0 layout.Widget
4146+ if args[0] != nil {
4147+ arg0 = args[0].(layout.Widget)
4148+ }
4149+ var arg1 layout.Widget
4150+ if args[1] != nil {
4151+ arg1 = args[1].(layout.Widget)
4152+ }
4153+ run(
4154+ arg0,
4155+ arg1,
4156+ )
4157+ })
4158+ return _c
4159+}
4160+
4161+func (_c *MockBoxWidget_ReorderChildAfter_Call) Return() *MockBoxWidget_ReorderChildAfter_Call {
4162+ _c.Call.Return()
4163+ return _c
4164+}
4165+
4166+func (_c *MockBoxWidget_ReorderChildAfter_Call) RunAndReturn(run func(child layout.Widget, sibling layout.Widget)) *MockBoxWidget_ReorderChildAfter_Call {
4167+ _c.Run(run)
4168+ return _c
4169+}
4170+
4171+// SetCanFocus provides a mock function for the type MockBoxWidget
4172+func (_mock *MockBoxWidget) SetCanFocus(canFocus bool) {
4173+ _mock.Called(canFocus)
4174+ return
4175+}
4176+
4177+// MockBoxWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
4178+type MockBoxWidget_SetCanFocus_Call struct {
4179+ *mock.Call
4180+}
4181+
4182+// SetCanFocus is a helper method to define mock.On call
4183+// - canFocus bool
4184+func (_e *MockBoxWidget_Expecter) SetCanFocus(canFocus interface{}) *MockBoxWidget_SetCanFocus_Call {
4185+ return &MockBoxWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
4186+}
4187+
4188+func (_c *MockBoxWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockBoxWidget_SetCanFocus_Call {
4189+ _c.Call.Run(func(args mock.Arguments) {
4190+ var arg0 bool
4191+ if args[0] != nil {
4192+ arg0 = args[0].(bool)
4193+ }
4194+ run(
4195+ arg0,
4196+ )
4197+ })
4198+ return _c
4199+}
4200+
4201+func (_c *MockBoxWidget_SetCanFocus_Call) Return() *MockBoxWidget_SetCanFocus_Call {
4202+ _c.Call.Return()
4203+ return _c
4204+}
4205+
4206+func (_c *MockBoxWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockBoxWidget_SetCanFocus_Call {
4207+ _c.Run(run)
4208+ return _c
4209+}
4210+
4211+// SetCanTarget provides a mock function for the type MockBoxWidget
4212+func (_mock *MockBoxWidget) SetCanTarget(canTarget bool) {
4213+ _mock.Called(canTarget)
4214+ return
4215+}
4216+
4217+// MockBoxWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
4218+type MockBoxWidget_SetCanTarget_Call struct {
4219+ *mock.Call
4220+}
4221+
4222+// SetCanTarget is a helper method to define mock.On call
4223+// - canTarget bool
4224+func (_e *MockBoxWidget_Expecter) SetCanTarget(canTarget interface{}) *MockBoxWidget_SetCanTarget_Call {
4225+ return &MockBoxWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
4226+}
4227+
4228+func (_c *MockBoxWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockBoxWidget_SetCanTarget_Call {
4229+ _c.Call.Run(func(args mock.Arguments) {
4230+ var arg0 bool
4231+ if args[0] != nil {
4232+ arg0 = args[0].(bool)
4233+ }
4234+ run(
4235+ arg0,
4236+ )
4237+ })
4238+ return _c
4239+}
4240+
4241+func (_c *MockBoxWidget_SetCanTarget_Call) Return() *MockBoxWidget_SetCanTarget_Call {
4242+ _c.Call.Return()
4243+ return _c
4244+}
4245+
4246+func (_c *MockBoxWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockBoxWidget_SetCanTarget_Call {
4247+ _c.Run(run)
4248+ return _c
4249+}
4250+
4251+// SetFocusOnClick provides a mock function for the type MockBoxWidget
4252+func (_mock *MockBoxWidget) SetFocusOnClick(focusOnClick bool) {
4253+ _mock.Called(focusOnClick)
4254+ return
4255+}
4256+
4257+// MockBoxWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
4258+type MockBoxWidget_SetFocusOnClick_Call struct {
4259+ *mock.Call
4260+}
4261+
4262+// SetFocusOnClick is a helper method to define mock.On call
4263+// - focusOnClick bool
4264+func (_e *MockBoxWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockBoxWidget_SetFocusOnClick_Call {
4265+ return &MockBoxWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
4266+}
4267+
4268+func (_c *MockBoxWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockBoxWidget_SetFocusOnClick_Call {
4269+ _c.Call.Run(func(args mock.Arguments) {
4270+ var arg0 bool
4271+ if args[0] != nil {
4272+ arg0 = args[0].(bool)
4273+ }
4274+ run(
4275+ arg0,
4276+ )
4277+ })
4278+ return _c
4279+}
4280+
4281+func (_c *MockBoxWidget_SetFocusOnClick_Call) Return() *MockBoxWidget_SetFocusOnClick_Call {
4282+ _c.Call.Return()
4283+ return _c
4284+}
4285+
4286+func (_c *MockBoxWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockBoxWidget_SetFocusOnClick_Call {
4287+ _c.Run(run)
4288+ return _c
4289+}
4290+
4291+// SetHalign provides a mock function for the type MockBoxWidget
4292+func (_mock *MockBoxWidget) SetHalign(align gtk.Align) {
4293+ _mock.Called(align)
4294+ return
4295+}
4296+
4297+// MockBoxWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
4298+type MockBoxWidget_SetHalign_Call struct {
4299+ *mock.Call
4300+}
4301+
4302+// SetHalign is a helper method to define mock.On call
4303+// - align gtk.Align
4304+func (_e *MockBoxWidget_Expecter) SetHalign(align interface{}) *MockBoxWidget_SetHalign_Call {
4305+ return &MockBoxWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
4306+}
4307+
4308+func (_c *MockBoxWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockBoxWidget_SetHalign_Call {
4309+ _c.Call.Run(func(args mock.Arguments) {
4310+ var arg0 gtk.Align
4311+ if args[0] != nil {
4312+ arg0 = args[0].(gtk.Align)
4313+ }
4314+ run(
4315+ arg0,
4316+ )
4317+ })
4318+ return _c
4319+}
4320+
4321+func (_c *MockBoxWidget_SetHalign_Call) Return() *MockBoxWidget_SetHalign_Call {
4322+ _c.Call.Return()
4323+ return _c
4324+}
4325+
4326+func (_c *MockBoxWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockBoxWidget_SetHalign_Call {
4327+ _c.Run(run)
4328+ return _c
4329+}
4330+
4331+// SetHexpand provides a mock function for the type MockBoxWidget
4332+func (_mock *MockBoxWidget) SetHexpand(expand bool) {
4333+ _mock.Called(expand)
4334+ return
4335+}
4336+
4337+// MockBoxWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
4338+type MockBoxWidget_SetHexpand_Call struct {
4339+ *mock.Call
4340+}
4341+
4342+// SetHexpand is a helper method to define mock.On call
4343+// - expand bool
4344+func (_e *MockBoxWidget_Expecter) SetHexpand(expand interface{}) *MockBoxWidget_SetHexpand_Call {
4345+ return &MockBoxWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
4346+}
4347+
4348+func (_c *MockBoxWidget_SetHexpand_Call) Run(run func(expand bool)) *MockBoxWidget_SetHexpand_Call {
4349+ _c.Call.Run(func(args mock.Arguments) {
4350+ var arg0 bool
4351+ if args[0] != nil {
4352+ arg0 = args[0].(bool)
4353+ }
4354+ run(
4355+ arg0,
4356+ )
4357+ })
4358+ return _c
4359+}
4360+
4361+func (_c *MockBoxWidget_SetHexpand_Call) Return() *MockBoxWidget_SetHexpand_Call {
4362+ _c.Call.Return()
4363+ return _c
4364+}
4365+
4366+func (_c *MockBoxWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockBoxWidget_SetHexpand_Call {
4367+ _c.Run(run)
4368+ return _c
4369+}
4370+
4371+// SetHomogeneous provides a mock function for the type MockBoxWidget
4372+func (_mock *MockBoxWidget) SetHomogeneous(homogeneous bool) {
4373+ _mock.Called(homogeneous)
4374+ return
4375+}
4376+
4377+// MockBoxWidget_SetHomogeneous_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHomogeneous'
4378+type MockBoxWidget_SetHomogeneous_Call struct {
4379+ *mock.Call
4380+}
4381+
4382+// SetHomogeneous is a helper method to define mock.On call
4383+// - homogeneous bool
4384+func (_e *MockBoxWidget_Expecter) SetHomogeneous(homogeneous interface{}) *MockBoxWidget_SetHomogeneous_Call {
4385+ return &MockBoxWidget_SetHomogeneous_Call{Call: _e.mock.On("SetHomogeneous", homogeneous)}
4386+}
4387+
4388+func (_c *MockBoxWidget_SetHomogeneous_Call) Run(run func(homogeneous bool)) *MockBoxWidget_SetHomogeneous_Call {
4389+ _c.Call.Run(func(args mock.Arguments) {
4390+ var arg0 bool
4391+ if args[0] != nil {
4392+ arg0 = args[0].(bool)
4393+ }
4394+ run(
4395+ arg0,
4396+ )
4397+ })
4398+ return _c
4399+}
4400+
4401+func (_c *MockBoxWidget_SetHomogeneous_Call) Return() *MockBoxWidget_SetHomogeneous_Call {
4402+ _c.Call.Return()
4403+ return _c
4404+}
4405+
4406+func (_c *MockBoxWidget_SetHomogeneous_Call) RunAndReturn(run func(homogeneous bool)) *MockBoxWidget_SetHomogeneous_Call {
4407+ _c.Run(run)
4408+ return _c
4409+}
4410+
4411+// SetOrientation provides a mock function for the type MockBoxWidget
4412+func (_mock *MockBoxWidget) SetOrientation(orientation layout.Orientation) {
4413+ _mock.Called(orientation)
4414+ return
4415+}
4416+
4417+// MockBoxWidget_SetOrientation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOrientation'
4418+type MockBoxWidget_SetOrientation_Call struct {
4419+ *mock.Call
4420+}
4421+
4422+// SetOrientation is a helper method to define mock.On call
4423+// - orientation layout.Orientation
4424+func (_e *MockBoxWidget_Expecter) SetOrientation(orientation interface{}) *MockBoxWidget_SetOrientation_Call {
4425+ return &MockBoxWidget_SetOrientation_Call{Call: _e.mock.On("SetOrientation", orientation)}
4426+}
4427+
4428+func (_c *MockBoxWidget_SetOrientation_Call) Run(run func(orientation layout.Orientation)) *MockBoxWidget_SetOrientation_Call {
4429+ _c.Call.Run(func(args mock.Arguments) {
4430+ var arg0 layout.Orientation
4431+ if args[0] != nil {
4432+ arg0 = args[0].(layout.Orientation)
4433+ }
4434+ run(
4435+ arg0,
4436+ )
4437+ })
4438+ return _c
4439+}
4440+
4441+func (_c *MockBoxWidget_SetOrientation_Call) Return() *MockBoxWidget_SetOrientation_Call {
4442+ _c.Call.Return()
4443+ return _c
4444+}
4445+
4446+func (_c *MockBoxWidget_SetOrientation_Call) RunAndReturn(run func(orientation layout.Orientation)) *MockBoxWidget_SetOrientation_Call {
4447+ _c.Run(run)
4448+ return _c
4449+}
4450+
4451+// SetSizeRequest provides a mock function for the type MockBoxWidget
4452+func (_mock *MockBoxWidget) SetSizeRequest(width int, height int) {
4453+ _mock.Called(width, height)
4454+ return
4455+}
4456+
4457+// MockBoxWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
4458+type MockBoxWidget_SetSizeRequest_Call struct {
4459+ *mock.Call
4460+}
4461+
4462+// SetSizeRequest is a helper method to define mock.On call
4463+// - width int
4464+// - height int
4465+func (_e *MockBoxWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockBoxWidget_SetSizeRequest_Call {
4466+ return &MockBoxWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
4467+}
4468+
4469+func (_c *MockBoxWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockBoxWidget_SetSizeRequest_Call {
4470+ _c.Call.Run(func(args mock.Arguments) {
4471+ var arg0 int
4472+ if args[0] != nil {
4473+ arg0 = args[0].(int)
4474+ }
4475+ var arg1 int
4476+ if args[1] != nil {
4477+ arg1 = args[1].(int)
4478+ }
4479+ run(
4480+ arg0,
4481+ arg1,
4482+ )
4483+ })
4484+ return _c
4485+}
4486+
4487+func (_c *MockBoxWidget_SetSizeRequest_Call) Return() *MockBoxWidget_SetSizeRequest_Call {
4488+ _c.Call.Return()
4489+ return _c
4490+}
4491+
4492+func (_c *MockBoxWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockBoxWidget_SetSizeRequest_Call {
4493+ _c.Run(run)
4494+ return _c
4495+}
4496+
4497+// SetSpacing provides a mock function for the type MockBoxWidget
4498+func (_mock *MockBoxWidget) SetSpacing(spacing int) {
4499+ _mock.Called(spacing)
4500+ return
4501+}
4502+
4503+// MockBoxWidget_SetSpacing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSpacing'
4504+type MockBoxWidget_SetSpacing_Call struct {
4505+ *mock.Call
4506+}
4507+
4508+// SetSpacing is a helper method to define mock.On call
4509+// - spacing int
4510+func (_e *MockBoxWidget_Expecter) SetSpacing(spacing interface{}) *MockBoxWidget_SetSpacing_Call {
4511+ return &MockBoxWidget_SetSpacing_Call{Call: _e.mock.On("SetSpacing", spacing)}
4512+}
4513+
4514+func (_c *MockBoxWidget_SetSpacing_Call) Run(run func(spacing int)) *MockBoxWidget_SetSpacing_Call {
4515+ _c.Call.Run(func(args mock.Arguments) {
4516+ var arg0 int
4517+ if args[0] != nil {
4518+ arg0 = args[0].(int)
4519+ }
4520+ run(
4521+ arg0,
4522+ )
4523+ })
4524+ return _c
4525+}
4526+
4527+func (_c *MockBoxWidget_SetSpacing_Call) Return() *MockBoxWidget_SetSpacing_Call {
4528+ _c.Call.Return()
4529+ return _c
4530+}
4531+
4532+func (_c *MockBoxWidget_SetSpacing_Call) RunAndReturn(run func(spacing int)) *MockBoxWidget_SetSpacing_Call {
4533+ _c.Run(run)
4534+ return _c
4535+}
4536+
4537+// SetValign provides a mock function for the type MockBoxWidget
4538+func (_mock *MockBoxWidget) SetValign(align gtk.Align) {
4539+ _mock.Called(align)
4540+ return
4541+}
4542+
4543+// MockBoxWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
4544+type MockBoxWidget_SetValign_Call struct {
4545+ *mock.Call
4546+}
4547+
4548+// SetValign is a helper method to define mock.On call
4549+// - align gtk.Align
4550+func (_e *MockBoxWidget_Expecter) SetValign(align interface{}) *MockBoxWidget_SetValign_Call {
4551+ return &MockBoxWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
4552+}
4553+
4554+func (_c *MockBoxWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockBoxWidget_SetValign_Call {
4555+ _c.Call.Run(func(args mock.Arguments) {
4556+ var arg0 gtk.Align
4557+ if args[0] != nil {
4558+ arg0 = args[0].(gtk.Align)
4559+ }
4560+ run(
4561+ arg0,
4562+ )
4563+ })
4564+ return _c
4565+}
4566+
4567+func (_c *MockBoxWidget_SetValign_Call) Return() *MockBoxWidget_SetValign_Call {
4568+ _c.Call.Return()
4569+ return _c
4570+}
4571+
4572+func (_c *MockBoxWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockBoxWidget_SetValign_Call {
4573+ _c.Run(run)
4574+ return _c
4575+}
4576+
4577+// SetVexpand provides a mock function for the type MockBoxWidget
4578+func (_mock *MockBoxWidget) SetVexpand(expand bool) {
4579+ _mock.Called(expand)
4580+ return
4581+}
4582+
4583+// MockBoxWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
4584+type MockBoxWidget_SetVexpand_Call struct {
4585+ *mock.Call
4586+}
4587+
4588+// SetVexpand is a helper method to define mock.On call
4589+// - expand bool
4590+func (_e *MockBoxWidget_Expecter) SetVexpand(expand interface{}) *MockBoxWidget_SetVexpand_Call {
4591+ return &MockBoxWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
4592+}
4593+
4594+func (_c *MockBoxWidget_SetVexpand_Call) Run(run func(expand bool)) *MockBoxWidget_SetVexpand_Call {
4595+ _c.Call.Run(func(args mock.Arguments) {
4596+ var arg0 bool
4597+ if args[0] != nil {
4598+ arg0 = args[0].(bool)
4599+ }
4600+ run(
4601+ arg0,
4602+ )
4603+ })
4604+ return _c
4605+}
4606+
4607+func (_c *MockBoxWidget_SetVexpand_Call) Return() *MockBoxWidget_SetVexpand_Call {
4608+ _c.Call.Return()
4609+ return _c
4610+}
4611+
4612+func (_c *MockBoxWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockBoxWidget_SetVexpand_Call {
4613+ _c.Run(run)
4614+ return _c
4615+}
4616+
4617+// SetVisible provides a mock function for the type MockBoxWidget
4618+func (_mock *MockBoxWidget) SetVisible(visible bool) {
4619+ _mock.Called(visible)
4620+ return
4621+}
4622+
4623+// MockBoxWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
4624+type MockBoxWidget_SetVisible_Call struct {
4625+ *mock.Call
4626+}
4627+
4628+// SetVisible is a helper method to define mock.On call
4629+// - visible bool
4630+func (_e *MockBoxWidget_Expecter) SetVisible(visible interface{}) *MockBoxWidget_SetVisible_Call {
4631+ return &MockBoxWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
4632+}
4633+
4634+func (_c *MockBoxWidget_SetVisible_Call) Run(run func(visible bool)) *MockBoxWidget_SetVisible_Call {
4635+ _c.Call.Run(func(args mock.Arguments) {
4636+ var arg0 bool
4637+ if args[0] != nil {
4638+ arg0 = args[0].(bool)
4639+ }
4640+ run(
4641+ arg0,
4642+ )
4643+ })
4644+ return _c
4645+}
4646+
4647+func (_c *MockBoxWidget_SetVisible_Call) Return() *MockBoxWidget_SetVisible_Call {
4648+ _c.Call.Return()
4649+ return _c
4650+}
4651+
4652+func (_c *MockBoxWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockBoxWidget_SetVisible_Call {
4653+ _c.Run(run)
4654+ return _c
4655+}
4656+
4657+// Show provides a mock function for the type MockBoxWidget
4658+func (_mock *MockBoxWidget) Show() {
4659+ _mock.Called()
4660+ return
4661+}
4662+
4663+// MockBoxWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
4664+type MockBoxWidget_Show_Call struct {
4665+ *mock.Call
4666+}
4667+
4668+// Show is a helper method to define mock.On call
4669+func (_e *MockBoxWidget_Expecter) Show() *MockBoxWidget_Show_Call {
4670+ return &MockBoxWidget_Show_Call{Call: _e.mock.On("Show")}
4671+}
4672+
4673+func (_c *MockBoxWidget_Show_Call) Run(run func()) *MockBoxWidget_Show_Call {
4674+ _c.Call.Run(func(args mock.Arguments) {
4675+ run()
4676+ })
4677+ return _c
4678+}
4679+
4680+func (_c *MockBoxWidget_Show_Call) Return() *MockBoxWidget_Show_Call {
4681+ _c.Call.Return()
4682+ return _c
4683+}
4684+
4685+func (_c *MockBoxWidget_Show_Call) RunAndReturn(run func()) *MockBoxWidget_Show_Call {
4686+ _c.Run(run)
4687+ return _c
4688+}
4689+
4690+// Unparent provides a mock function for the type MockBoxWidget
4691+func (_mock *MockBoxWidget) Unparent() {
4692+ _mock.Called()
4693+ return
4694+}
4695+
4696+// MockBoxWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
4697+type MockBoxWidget_Unparent_Call struct {
4698+ *mock.Call
4699+}
4700+
4701+// Unparent is a helper method to define mock.On call
4702+func (_e *MockBoxWidget_Expecter) Unparent() *MockBoxWidget_Unparent_Call {
4703+ return &MockBoxWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
4704+}
4705+
4706+func (_c *MockBoxWidget_Unparent_Call) Run(run func()) *MockBoxWidget_Unparent_Call {
4707+ _c.Call.Run(func(args mock.Arguments) {
4708+ run()
4709+ })
4710+ return _c
4711+}
4712+
4713+func (_c *MockBoxWidget_Unparent_Call) Return() *MockBoxWidget_Unparent_Call {
4714+ _c.Call.Return()
4715+ return _c
4716+}
4717+
4718+func (_c *MockBoxWidget_Unparent_Call) RunAndReturn(run func()) *MockBoxWidget_Unparent_Call {
4719+ _c.Run(run)
4720+ return _c
4721+}
4722+
4723+// 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.
4724+// The first argument is typically a *testing.T value.
4725+func NewMockOverlayWidget(t interface {
4726+ mock.TestingT
4727+ Cleanup(func())
4728+}) *MockOverlayWidget {
4729+ mock := &MockOverlayWidget{}
4730+ mock.Mock.Test(t)
4731+
4732+ t.Cleanup(func() { mock.AssertExpectations(t) })
4733+
4734+ return mock
4735+}
4736+
4737+// MockOverlayWidget is an autogenerated mock type for the OverlayWidget type
4738+type MockOverlayWidget struct {
4739+ mock.Mock
4740+}
4741+
4742+type MockOverlayWidget_Expecter struct {
4743+ mock *mock.Mock
4744+}
4745+
4746+func (_m *MockOverlayWidget) EXPECT() *MockOverlayWidget_Expecter {
4747+ return &MockOverlayWidget_Expecter{mock: &_m.Mock}
4748+}
4749+
4750+// AddController provides a mock function for the type MockOverlayWidget
4751+func (_mock *MockOverlayWidget) AddController(controller *gtk.EventController) {
4752+ _mock.Called(controller)
4753+ return
4754+}
4755+
4756+// MockOverlayWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
4757+type MockOverlayWidget_AddController_Call struct {
4758+ *mock.Call
4759+}
4760+
4761+// AddController is a helper method to define mock.On call
4762+// - controller *gtk.EventController
4763+func (_e *MockOverlayWidget_Expecter) AddController(controller interface{}) *MockOverlayWidget_AddController_Call {
4764+ return &MockOverlayWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
4765+}
4766+
4767+func (_c *MockOverlayWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockOverlayWidget_AddController_Call {
4768+ _c.Call.Run(func(args mock.Arguments) {
4769+ var arg0 *gtk.EventController
4770+ if args[0] != nil {
4771+ arg0 = args[0].(*gtk.EventController)
4772+ }
4773+ run(
4774+ arg0,
4775+ )
4776+ })
4777+ return _c
4778+}
4779+
4780+func (_c *MockOverlayWidget_AddController_Call) Return() *MockOverlayWidget_AddController_Call {
4781+ _c.Call.Return()
4782+ return _c
4783+}
4784+
4785+func (_c *MockOverlayWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockOverlayWidget_AddController_Call {
4786+ _c.Run(run)
4787+ return _c
4788+}
4789+
4790+// AddCssClass provides a mock function for the type MockOverlayWidget
4791+func (_mock *MockOverlayWidget) AddCssClass(cssClass string) {
4792+ _mock.Called(cssClass)
4793+ return
4794+}
4795+
4796+// MockOverlayWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
4797+type MockOverlayWidget_AddCssClass_Call struct {
4798+ *mock.Call
4799+}
4800+
4801+// AddCssClass is a helper method to define mock.On call
4802+// - cssClass string
4803+func (_e *MockOverlayWidget_Expecter) AddCssClass(cssClass interface{}) *MockOverlayWidget_AddCssClass_Call {
4804+ return &MockOverlayWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
4805+}
4806+
4807+func (_c *MockOverlayWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockOverlayWidget_AddCssClass_Call {
4808+ _c.Call.Run(func(args mock.Arguments) {
4809+ var arg0 string
4810+ if args[0] != nil {
4811+ arg0 = args[0].(string)
4812+ }
4813+ run(
4814+ arg0,
4815+ )
4816+ })
4817+ return _c
4818+}
4819+
4820+func (_c *MockOverlayWidget_AddCssClass_Call) Return() *MockOverlayWidget_AddCssClass_Call {
4821+ _c.Call.Return()
4822+ return _c
4823+}
4824+
4825+func (_c *MockOverlayWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockOverlayWidget_AddCssClass_Call {
4826+ _c.Run(run)
4827+ return _c
4828+}
4829+
4830+// AddOverlay provides a mock function for the type MockOverlayWidget
4831+func (_mock *MockOverlayWidget) AddOverlay(overlay layout.Widget) {
4832+ _mock.Called(overlay)
4833+ return
4834+}
4835+
4836+// MockOverlayWidget_AddOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOverlay'
4837+type MockOverlayWidget_AddOverlay_Call struct {
4838+ *mock.Call
4839+}
4840+
4841+// AddOverlay is a helper method to define mock.On call
4842+// - overlay layout.Widget
4843+func (_e *MockOverlayWidget_Expecter) AddOverlay(overlay interface{}) *MockOverlayWidget_AddOverlay_Call {
4844+ return &MockOverlayWidget_AddOverlay_Call{Call: _e.mock.On("AddOverlay", overlay)}
4845+}
4846+
4847+func (_c *MockOverlayWidget_AddOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_AddOverlay_Call {
4848+ _c.Call.Run(func(args mock.Arguments) {
4849+ var arg0 layout.Widget
4850+ if args[0] != nil {
4851+ arg0 = args[0].(layout.Widget)
4852+ }
4853+ run(
4854+ arg0,
4855+ )
4856+ })
4857+ return _c
4858+}
4859+
4860+func (_c *MockOverlayWidget_AddOverlay_Call) Return() *MockOverlayWidget_AddOverlay_Call {
4861+ _c.Call.Return()
4862+ return _c
4863+}
4864+
4865+func (_c *MockOverlayWidget_AddOverlay_Call) RunAndReturn(run func(overlay layout.Widget)) *MockOverlayWidget_AddOverlay_Call {
4866+ _c.Run(run)
4867+ return _c
4868+}
4869+
4870+// ComputePoint provides a mock function for the type MockOverlayWidget
4871+func (_mock *MockOverlayWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
4872+ ret := _mock.Called(target)
4873+
4874+ if len(ret) == 0 {
4875+ panic("no return value specified for ComputePoint")
4876+ }
4877+
4878+ var r0 float64
4879+ var r1 float64
4880+ var r2 bool
4881+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
4882+ return returnFunc(target)
4883+ }
4884+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
4885+ r0 = returnFunc(target)
4886+ } else {
4887+ r0 = ret.Get(0).(float64)
4888+ }
4889+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
4890+ r1 = returnFunc(target)
4891+ } else {
4892+ r1 = ret.Get(1).(float64)
4893+ }
4894+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
4895+ r2 = returnFunc(target)
4896+ } else {
4897+ r2 = ret.Get(2).(bool)
4898+ }
4899+ return r0, r1, r2
4900+}
4901+
4902+// MockOverlayWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
4903+type MockOverlayWidget_ComputePoint_Call struct {
4904+ *mock.Call
4905+}
4906+
4907+// ComputePoint is a helper method to define mock.On call
4908+// - target layout.Widget
4909+func (_e *MockOverlayWidget_Expecter) ComputePoint(target interface{}) *MockOverlayWidget_ComputePoint_Call {
4910+ return &MockOverlayWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
4911+}
4912+
4913+func (_c *MockOverlayWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockOverlayWidget_ComputePoint_Call {
4914+ _c.Call.Run(func(args mock.Arguments) {
4915+ var arg0 layout.Widget
4916+ if args[0] != nil {
4917+ arg0 = args[0].(layout.Widget)
4918+ }
4919+ run(
4920+ arg0,
4921+ )
4922+ })
4923+ return _c
4924+}
4925+
4926+func (_c *MockOverlayWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockOverlayWidget_ComputePoint_Call {
4927+ _c.Call.Return(x, y, ok)
4928+ return _c
4929+}
4930+
4931+func (_c *MockOverlayWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockOverlayWidget_ComputePoint_Call {
4932+ _c.Call.Return(run)
4933+ return _c
4934+}
4935+
4936+// GetAllocatedHeight provides a mock function for the type MockOverlayWidget
4937+func (_mock *MockOverlayWidget) GetAllocatedHeight() int {
4938+ ret := _mock.Called()
4939+
4940+ if len(ret) == 0 {
4941+ panic("no return value specified for GetAllocatedHeight")
4942+ }
4943+
4944+ var r0 int
4945+ if returnFunc, ok := ret.Get(0).(func() int); ok {
4946+ r0 = returnFunc()
4947+ } else {
4948+ r0 = ret.Get(0).(int)
4949+ }
4950+ return r0
4951+}
4952+
4953+// MockOverlayWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
4954+type MockOverlayWidget_GetAllocatedHeight_Call struct {
4955+ *mock.Call
4956+}
4957+
4958+// GetAllocatedHeight is a helper method to define mock.On call
4959+func (_e *MockOverlayWidget_Expecter) GetAllocatedHeight() *MockOverlayWidget_GetAllocatedHeight_Call {
4960+ return &MockOverlayWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
4961+}
4962+
4963+func (_c *MockOverlayWidget_GetAllocatedHeight_Call) Run(run func()) *MockOverlayWidget_GetAllocatedHeight_Call {
4964+ _c.Call.Run(func(args mock.Arguments) {
4965+ run()
4966+ })
4967+ return _c
4968+}
4969+
4970+func (_c *MockOverlayWidget_GetAllocatedHeight_Call) Return(n int) *MockOverlayWidget_GetAllocatedHeight_Call {
4971+ _c.Call.Return(n)
4972+ return _c
4973+}
4974+
4975+func (_c *MockOverlayWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockOverlayWidget_GetAllocatedHeight_Call {
4976+ _c.Call.Return(run)
4977+ return _c
4978+}
4979+
4980+// GetAllocatedWidth provides a mock function for the type MockOverlayWidget
4981+func (_mock *MockOverlayWidget) GetAllocatedWidth() int {
4982+ ret := _mock.Called()
4983+
4984+ if len(ret) == 0 {
4985+ panic("no return value specified for GetAllocatedWidth")
4986+ }
4987+
4988+ var r0 int
4989+ if returnFunc, ok := ret.Get(0).(func() int); ok {
4990+ r0 = returnFunc()
4991+ } else {
4992+ r0 = ret.Get(0).(int)
4993+ }
4994+ return r0
4995+}
4996+
4997+// MockOverlayWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
4998+type MockOverlayWidget_GetAllocatedWidth_Call struct {
4999+ *mock.Call
5000+}
5001+
5002+// GetAllocatedWidth is a helper method to define mock.On call
5003+func (_e *MockOverlayWidget_Expecter) GetAllocatedWidth() *MockOverlayWidget_GetAllocatedWidth_Call {
5004+ return &MockOverlayWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
5005+}
5006+
5007+func (_c *MockOverlayWidget_GetAllocatedWidth_Call) Run(run func()) *MockOverlayWidget_GetAllocatedWidth_Call {
5008+ _c.Call.Run(func(args mock.Arguments) {
5009+ run()
5010+ })
5011+ return _c
5012+}
5013+
5014+func (_c *MockOverlayWidget_GetAllocatedWidth_Call) Return(n int) *MockOverlayWidget_GetAllocatedWidth_Call {
5015+ _c.Call.Return(n)
5016+ return _c
5017+}
5018+
5019+func (_c *MockOverlayWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockOverlayWidget_GetAllocatedWidth_Call {
5020+ _c.Call.Return(run)
5021+ return _c
5022+}
5023+
5024+// GetChild provides a mock function for the type MockOverlayWidget
5025+func (_mock *MockOverlayWidget) GetChild() layout.Widget {
5026+ ret := _mock.Called()
5027+
5028+ if len(ret) == 0 {
5029+ panic("no return value specified for GetChild")
5030+ }
5031+
5032+ var r0 layout.Widget
5033+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
5034+ r0 = returnFunc()
5035+ } else {
5036+ if ret.Get(0) != nil {
5037+ r0 = ret.Get(0).(layout.Widget)
5038+ }
5039+ }
5040+ return r0
5041+}
5042+
5043+// MockOverlayWidget_GetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChild'
5044+type MockOverlayWidget_GetChild_Call struct {
5045+ *mock.Call
5046+}
5047+
5048+// GetChild is a helper method to define mock.On call
5049+func (_e *MockOverlayWidget_Expecter) GetChild() *MockOverlayWidget_GetChild_Call {
5050+ return &MockOverlayWidget_GetChild_Call{Call: _e.mock.On("GetChild")}
5051+}
5052+
5053+func (_c *MockOverlayWidget_GetChild_Call) Run(run func()) *MockOverlayWidget_GetChild_Call {
5054+ _c.Call.Run(func(args mock.Arguments) {
5055+ run()
5056+ })
5057+ return _c
5058+}
5059+
5060+func (_c *MockOverlayWidget_GetChild_Call) Return(widget layout.Widget) *MockOverlayWidget_GetChild_Call {
5061+ _c.Call.Return(widget)
5062+ return _c
5063+}
5064+
5065+func (_c *MockOverlayWidget_GetChild_Call) RunAndReturn(run func() layout.Widget) *MockOverlayWidget_GetChild_Call {
5066+ _c.Call.Return(run)
5067+ return _c
5068+}
5069+
5070+// GetClipOverlay provides a mock function for the type MockOverlayWidget
5071+func (_mock *MockOverlayWidget) GetClipOverlay(overlay layout.Widget) bool {
5072+ ret := _mock.Called(overlay)
5073+
5074+ if len(ret) == 0 {
5075+ panic("no return value specified for GetClipOverlay")
5076+ }
5077+
5078+ var r0 bool
5079+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) bool); ok {
5080+ r0 = returnFunc(overlay)
5081+ } else {
5082+ r0 = ret.Get(0).(bool)
5083+ }
5084+ return r0
5085+}
5086+
5087+// MockOverlayWidget_GetClipOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClipOverlay'
5088+type MockOverlayWidget_GetClipOverlay_Call struct {
5089+ *mock.Call
5090+}
5091+
5092+// GetClipOverlay is a helper method to define mock.On call
5093+// - overlay layout.Widget
5094+func (_e *MockOverlayWidget_Expecter) GetClipOverlay(overlay interface{}) *MockOverlayWidget_GetClipOverlay_Call {
5095+ return &MockOverlayWidget_GetClipOverlay_Call{Call: _e.mock.On("GetClipOverlay", overlay)}
5096+}
5097+
5098+func (_c *MockOverlayWidget_GetClipOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_GetClipOverlay_Call {
5099+ _c.Call.Run(func(args mock.Arguments) {
5100+ var arg0 layout.Widget
5101+ if args[0] != nil {
5102+ arg0 = args[0].(layout.Widget)
5103+ }
5104+ run(
5105+ arg0,
5106+ )
5107+ })
5108+ return _c
5109+}
5110+
5111+func (_c *MockOverlayWidget_GetClipOverlay_Call) Return(b bool) *MockOverlayWidget_GetClipOverlay_Call {
5112+ _c.Call.Return(b)
5113+ return _c
5114+}
5115+
5116+func (_c *MockOverlayWidget_GetClipOverlay_Call) RunAndReturn(run func(overlay layout.Widget) bool) *MockOverlayWidget_GetClipOverlay_Call {
5117+ _c.Call.Return(run)
5118+ return _c
5119+}
5120+
5121+// GetHexpand provides a mock function for the type MockOverlayWidget
5122+func (_mock *MockOverlayWidget) GetHexpand() bool {
5123+ ret := _mock.Called()
5124+
5125+ if len(ret) == 0 {
5126+ panic("no return value specified for GetHexpand")
5127+ }
5128+
5129+ var r0 bool
5130+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
5131+ r0 = returnFunc()
5132+ } else {
5133+ r0 = ret.Get(0).(bool)
5134+ }
5135+ return r0
5136+}
5137+
5138+// MockOverlayWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
5139+type MockOverlayWidget_GetHexpand_Call struct {
5140+ *mock.Call
5141+}
5142+
5143+// GetHexpand is a helper method to define mock.On call
5144+func (_e *MockOverlayWidget_Expecter) GetHexpand() *MockOverlayWidget_GetHexpand_Call {
5145+ return &MockOverlayWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
5146+}
5147+
5148+func (_c *MockOverlayWidget_GetHexpand_Call) Run(run func()) *MockOverlayWidget_GetHexpand_Call {
5149+ _c.Call.Run(func(args mock.Arguments) {
5150+ run()
5151+ })
5152+ return _c
5153+}
5154+
5155+func (_c *MockOverlayWidget_GetHexpand_Call) Return(b bool) *MockOverlayWidget_GetHexpand_Call {
5156+ _c.Call.Return(b)
5157+ return _c
5158+}
5159+
5160+func (_c *MockOverlayWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockOverlayWidget_GetHexpand_Call {
5161+ _c.Call.Return(run)
5162+ return _c
5163+}
5164+
5165+// GetMeasureOverlay provides a mock function for the type MockOverlayWidget
5166+func (_mock *MockOverlayWidget) GetMeasureOverlay(overlay layout.Widget) bool {
5167+ ret := _mock.Called(overlay)
5168+
5169+ if len(ret) == 0 {
5170+ panic("no return value specified for GetMeasureOverlay")
5171+ }
5172+
5173+ var r0 bool
5174+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) bool); ok {
5175+ r0 = returnFunc(overlay)
5176+ } else {
5177+ r0 = ret.Get(0).(bool)
5178+ }
5179+ return r0
5180+}
5181+
5182+// MockOverlayWidget_GetMeasureOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMeasureOverlay'
5183+type MockOverlayWidget_GetMeasureOverlay_Call struct {
5184+ *mock.Call
5185+}
5186+
5187+// GetMeasureOverlay is a helper method to define mock.On call
5188+// - overlay layout.Widget
5189+func (_e *MockOverlayWidget_Expecter) GetMeasureOverlay(overlay interface{}) *MockOverlayWidget_GetMeasureOverlay_Call {
5190+ return &MockOverlayWidget_GetMeasureOverlay_Call{Call: _e.mock.On("GetMeasureOverlay", overlay)}
5191+}
5192+
5193+func (_c *MockOverlayWidget_GetMeasureOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_GetMeasureOverlay_Call {
5194+ _c.Call.Run(func(args mock.Arguments) {
5195+ var arg0 layout.Widget
5196+ if args[0] != nil {
5197+ arg0 = args[0].(layout.Widget)
5198+ }
5199+ run(
5200+ arg0,
5201+ )
5202+ })
5203+ return _c
5204+}
5205+
5206+func (_c *MockOverlayWidget_GetMeasureOverlay_Call) Return(b bool) *MockOverlayWidget_GetMeasureOverlay_Call {
5207+ _c.Call.Return(b)
5208+ return _c
5209+}
5210+
5211+func (_c *MockOverlayWidget_GetMeasureOverlay_Call) RunAndReturn(run func(overlay layout.Widget) bool) *MockOverlayWidget_GetMeasureOverlay_Call {
5212+ _c.Call.Return(run)
5213+ return _c
5214+}
5215+
5216+// GetParent provides a mock function for the type MockOverlayWidget
5217+func (_mock *MockOverlayWidget) GetParent() layout.Widget {
5218+ ret := _mock.Called()
5219+
5220+ if len(ret) == 0 {
5221+ panic("no return value specified for GetParent")
5222+ }
5223+
5224+ var r0 layout.Widget
5225+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
5226+ r0 = returnFunc()
5227+ } else {
5228+ if ret.Get(0) != nil {
5229+ r0 = ret.Get(0).(layout.Widget)
5230+ }
5231+ }
5232+ return r0
5233+}
5234+
5235+// MockOverlayWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
5236+type MockOverlayWidget_GetParent_Call struct {
5237+ *mock.Call
5238+}
5239+
5240+// GetParent is a helper method to define mock.On call
5241+func (_e *MockOverlayWidget_Expecter) GetParent() *MockOverlayWidget_GetParent_Call {
5242+ return &MockOverlayWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
5243+}
5244+
5245+func (_c *MockOverlayWidget_GetParent_Call) Run(run func()) *MockOverlayWidget_GetParent_Call {
5246+ _c.Call.Run(func(args mock.Arguments) {
5247+ run()
5248+ })
5249+ return _c
5250+}
5251+
5252+func (_c *MockOverlayWidget_GetParent_Call) Return(widget layout.Widget) *MockOverlayWidget_GetParent_Call {
5253+ _c.Call.Return(widget)
5254+ return _c
5255+}
5256+
5257+func (_c *MockOverlayWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockOverlayWidget_GetParent_Call {
5258+ _c.Call.Return(run)
5259+ return _c
5260+}
5261+
5262+// GetVexpand provides a mock function for the type MockOverlayWidget
5263+func (_mock *MockOverlayWidget) GetVexpand() bool {
5264+ ret := _mock.Called()
5265+
5266+ if len(ret) == 0 {
5267+ panic("no return value specified for GetVexpand")
5268+ }
5269+
5270+ var r0 bool
5271+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
5272+ r0 = returnFunc()
5273+ } else {
5274+ r0 = ret.Get(0).(bool)
5275+ }
5276+ return r0
5277+}
5278+
5279+// MockOverlayWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
5280+type MockOverlayWidget_GetVexpand_Call struct {
5281+ *mock.Call
5282+}
5283+
5284+// GetVexpand is a helper method to define mock.On call
5285+func (_e *MockOverlayWidget_Expecter) GetVexpand() *MockOverlayWidget_GetVexpand_Call {
5286+ return &MockOverlayWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
5287+}
5288+
5289+func (_c *MockOverlayWidget_GetVexpand_Call) Run(run func()) *MockOverlayWidget_GetVexpand_Call {
5290+ _c.Call.Run(func(args mock.Arguments) {
5291+ run()
5292+ })
5293+ return _c
5294+}
5295+
5296+func (_c *MockOverlayWidget_GetVexpand_Call) Return(b bool) *MockOverlayWidget_GetVexpand_Call {
5297+ _c.Call.Return(b)
5298+ return _c
5299+}
5300+
5301+func (_c *MockOverlayWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockOverlayWidget_GetVexpand_Call {
5302+ _c.Call.Return(run)
5303+ return _c
5304+}
5305+
5306+// GrabFocus provides a mock function for the type MockOverlayWidget
5307+func (_mock *MockOverlayWidget) GrabFocus() bool {
5308+ ret := _mock.Called()
5309+
5310+ if len(ret) == 0 {
5311+ panic("no return value specified for GrabFocus")
5312+ }
5313+
5314+ var r0 bool
5315+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
5316+ r0 = returnFunc()
5317+ } else {
5318+ r0 = ret.Get(0).(bool)
5319+ }
5320+ return r0
5321+}
5322+
5323+// MockOverlayWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
5324+type MockOverlayWidget_GrabFocus_Call struct {
5325+ *mock.Call
5326+}
5327+
5328+// GrabFocus is a helper method to define mock.On call
5329+func (_e *MockOverlayWidget_Expecter) GrabFocus() *MockOverlayWidget_GrabFocus_Call {
5330+ return &MockOverlayWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
5331+}
5332+
5333+func (_c *MockOverlayWidget_GrabFocus_Call) Run(run func()) *MockOverlayWidget_GrabFocus_Call {
5334+ _c.Call.Run(func(args mock.Arguments) {
5335+ run()
5336+ })
5337+ return _c
5338+}
5339+
5340+func (_c *MockOverlayWidget_GrabFocus_Call) Return(b bool) *MockOverlayWidget_GrabFocus_Call {
5341+ _c.Call.Return(b)
5342+ return _c
5343+}
5344+
5345+func (_c *MockOverlayWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockOverlayWidget_GrabFocus_Call {
5346+ _c.Call.Return(run)
5347+ return _c
5348+}
5349+
5350+// GtkWidget provides a mock function for the type MockOverlayWidget
5351+func (_mock *MockOverlayWidget) GtkWidget() *gtk.Widget {
5352+ ret := _mock.Called()
5353+
5354+ if len(ret) == 0 {
5355+ panic("no return value specified for GtkWidget")
5356+ }
5357+
5358+ var r0 *gtk.Widget
5359+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
5360+ r0 = returnFunc()
5361+ } else {
5362+ if ret.Get(0) != nil {
5363+ r0 = ret.Get(0).(*gtk.Widget)
5364+ }
5365+ }
5366+ return r0
5367+}
5368+
5369+// MockOverlayWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
5370+type MockOverlayWidget_GtkWidget_Call struct {
5371+ *mock.Call
5372+}
5373+
5374+// GtkWidget is a helper method to define mock.On call
5375+func (_e *MockOverlayWidget_Expecter) GtkWidget() *MockOverlayWidget_GtkWidget_Call {
5376+ return &MockOverlayWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
5377+}
5378+
5379+func (_c *MockOverlayWidget_GtkWidget_Call) Run(run func()) *MockOverlayWidget_GtkWidget_Call {
5380+ _c.Call.Run(func(args mock.Arguments) {
5381+ run()
5382+ })
5383+ return _c
5384+}
5385+
5386+func (_c *MockOverlayWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockOverlayWidget_GtkWidget_Call {
5387+ _c.Call.Return(widget)
5388+ return _c
5389+}
5390+
5391+func (_c *MockOverlayWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockOverlayWidget_GtkWidget_Call {
5392+ _c.Call.Return(run)
5393+ return _c
5394+}
5395+
5396+// HasCssClass provides a mock function for the type MockOverlayWidget
5397+func (_mock *MockOverlayWidget) HasCssClass(cssClass string) bool {
5398+ ret := _mock.Called(cssClass)
5399+
5400+ if len(ret) == 0 {
5401+ panic("no return value specified for HasCssClass")
5402+ }
5403+
5404+ var r0 bool
5405+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
5406+ r0 = returnFunc(cssClass)
5407+ } else {
5408+ r0 = ret.Get(0).(bool)
5409+ }
5410+ return r0
5411+}
5412+
5413+// MockOverlayWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
5414+type MockOverlayWidget_HasCssClass_Call struct {
5415+ *mock.Call
5416+}
5417+
5418+// HasCssClass is a helper method to define mock.On call
5419+// - cssClass string
5420+func (_e *MockOverlayWidget_Expecter) HasCssClass(cssClass interface{}) *MockOverlayWidget_HasCssClass_Call {
5421+ return &MockOverlayWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
5422+}
5423+
5424+func (_c *MockOverlayWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockOverlayWidget_HasCssClass_Call {
5425+ _c.Call.Run(func(args mock.Arguments) {
5426+ var arg0 string
5427+ if args[0] != nil {
5428+ arg0 = args[0].(string)
5429+ }
5430+ run(
5431+ arg0,
5432+ )
5433+ })
5434+ return _c
5435+}
5436+
5437+func (_c *MockOverlayWidget_HasCssClass_Call) Return(b bool) *MockOverlayWidget_HasCssClass_Call {
5438+ _c.Call.Return(b)
5439+ return _c
5440+}
5441+
5442+func (_c *MockOverlayWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockOverlayWidget_HasCssClass_Call {
5443+ _c.Call.Return(run)
5444+ return _c
5445+}
5446+
5447+// HasFocus provides a mock function for the type MockOverlayWidget
5448+func (_mock *MockOverlayWidget) HasFocus() bool {
5449+ ret := _mock.Called()
5450+
5451+ if len(ret) == 0 {
5452+ panic("no return value specified for HasFocus")
5453+ }
5454+
5455+ var r0 bool
5456+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
5457+ r0 = returnFunc()
5458+ } else {
5459+ r0 = ret.Get(0).(bool)
5460+ }
5461+ return r0
5462+}
5463+
5464+// MockOverlayWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
5465+type MockOverlayWidget_HasFocus_Call struct {
5466+ *mock.Call
5467+}
5468+
5469+// HasFocus is a helper method to define mock.On call
5470+func (_e *MockOverlayWidget_Expecter) HasFocus() *MockOverlayWidget_HasFocus_Call {
5471+ return &MockOverlayWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
5472+}
5473+
5474+func (_c *MockOverlayWidget_HasFocus_Call) Run(run func()) *MockOverlayWidget_HasFocus_Call {
5475+ _c.Call.Run(func(args mock.Arguments) {
5476+ run()
5477+ })
5478+ return _c
5479+}
5480+
5481+func (_c *MockOverlayWidget_HasFocus_Call) Return(b bool) *MockOverlayWidget_HasFocus_Call {
5482+ _c.Call.Return(b)
5483+ return _c
5484+}
5485+
5486+func (_c *MockOverlayWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockOverlayWidget_HasFocus_Call {
5487+ _c.Call.Return(run)
5488+ return _c
5489+}
5490+
5491+// Hide provides a mock function for the type MockOverlayWidget
5492+func (_mock *MockOverlayWidget) Hide() {
5493+ _mock.Called()
5494+ return
5495+}
5496+
5497+// MockOverlayWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
5498+type MockOverlayWidget_Hide_Call struct {
5499+ *mock.Call
5500+}
5501+
5502+// Hide is a helper method to define mock.On call
5503+func (_e *MockOverlayWidget_Expecter) Hide() *MockOverlayWidget_Hide_Call {
5504+ return &MockOverlayWidget_Hide_Call{Call: _e.mock.On("Hide")}
5505+}
5506+
5507+func (_c *MockOverlayWidget_Hide_Call) Run(run func()) *MockOverlayWidget_Hide_Call {
5508+ _c.Call.Run(func(args mock.Arguments) {
5509+ run()
5510+ })
5511+ return _c
5512+}
5513+
5514+func (_c *MockOverlayWidget_Hide_Call) Return() *MockOverlayWidget_Hide_Call {
5515+ _c.Call.Return()
5516+ return _c
5517+}
5518+
5519+func (_c *MockOverlayWidget_Hide_Call) RunAndReturn(run func()) *MockOverlayWidget_Hide_Call {
5520+ _c.Run(run)
5521+ return _c
5522+}
5523+
5524+// IsVisible provides a mock function for the type MockOverlayWidget
5525+func (_mock *MockOverlayWidget) IsVisible() bool {
5526+ ret := _mock.Called()
5527+
5528+ if len(ret) == 0 {
5529+ panic("no return value specified for IsVisible")
5530+ }
5531+
5532+ var r0 bool
5533+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
5534+ r0 = returnFunc()
5535+ } else {
5536+ r0 = ret.Get(0).(bool)
5537+ }
5538+ return r0
5539+}
5540+
5541+// MockOverlayWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
5542+type MockOverlayWidget_IsVisible_Call struct {
5543+ *mock.Call
5544+}
5545+
5546+// IsVisible is a helper method to define mock.On call
5547+func (_e *MockOverlayWidget_Expecter) IsVisible() *MockOverlayWidget_IsVisible_Call {
5548+ return &MockOverlayWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
5549+}
5550+
5551+func (_c *MockOverlayWidget_IsVisible_Call) Run(run func()) *MockOverlayWidget_IsVisible_Call {
5552+ _c.Call.Run(func(args mock.Arguments) {
5553+ run()
5554+ })
5555+ return _c
5556+}
5557+
5558+func (_c *MockOverlayWidget_IsVisible_Call) Return(b bool) *MockOverlayWidget_IsVisible_Call {
5559+ _c.Call.Return(b)
5560+ return _c
5561+}
5562+
5563+func (_c *MockOverlayWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockOverlayWidget_IsVisible_Call {
5564+ _c.Call.Return(run)
5565+ return _c
5566+}
5567+
5568+// RemoveCssClass provides a mock function for the type MockOverlayWidget
5569+func (_mock *MockOverlayWidget) RemoveCssClass(cssClass string) {
5570+ _mock.Called(cssClass)
5571+ return
5572+}
5573+
5574+// MockOverlayWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
5575+type MockOverlayWidget_RemoveCssClass_Call struct {
5576+ *mock.Call
5577+}
5578+
5579+// RemoveCssClass is a helper method to define mock.On call
5580+// - cssClass string
5581+func (_e *MockOverlayWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockOverlayWidget_RemoveCssClass_Call {
5582+ return &MockOverlayWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
5583+}
5584+
5585+func (_c *MockOverlayWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockOverlayWidget_RemoveCssClass_Call {
5586+ _c.Call.Run(func(args mock.Arguments) {
5587+ var arg0 string
5588+ if args[0] != nil {
5589+ arg0 = args[0].(string)
5590+ }
5591+ run(
5592+ arg0,
5593+ )
5594+ })
5595+ return _c
5596+}
5597+
5598+func (_c *MockOverlayWidget_RemoveCssClass_Call) Return() *MockOverlayWidget_RemoveCssClass_Call {
5599+ _c.Call.Return()
5600+ return _c
5601+}
5602+
5603+func (_c *MockOverlayWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockOverlayWidget_RemoveCssClass_Call {
5604+ _c.Run(run)
5605+ return _c
5606+}
5607+
5608+// RemoveOverlay provides a mock function for the type MockOverlayWidget
5609+func (_mock *MockOverlayWidget) RemoveOverlay(overlay layout.Widget) {
5610+ _mock.Called(overlay)
5611+ return
5612+}
5613+
5614+// MockOverlayWidget_RemoveOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOverlay'
5615+type MockOverlayWidget_RemoveOverlay_Call struct {
5616+ *mock.Call
5617+}
5618+
5619+// RemoveOverlay is a helper method to define mock.On call
5620+// - overlay layout.Widget
5621+func (_e *MockOverlayWidget_Expecter) RemoveOverlay(overlay interface{}) *MockOverlayWidget_RemoveOverlay_Call {
5622+ return &MockOverlayWidget_RemoveOverlay_Call{Call: _e.mock.On("RemoveOverlay", overlay)}
5623+}
5624+
5625+func (_c *MockOverlayWidget_RemoveOverlay_Call) Run(run func(overlay layout.Widget)) *MockOverlayWidget_RemoveOverlay_Call {
5626+ _c.Call.Run(func(args mock.Arguments) {
5627+ var arg0 layout.Widget
5628+ if args[0] != nil {
5629+ arg0 = args[0].(layout.Widget)
5630+ }
5631+ run(
5632+ arg0,
5633+ )
5634+ })
5635+ return _c
5636+}
5637+
5638+func (_c *MockOverlayWidget_RemoveOverlay_Call) Return() *MockOverlayWidget_RemoveOverlay_Call {
5639+ _c.Call.Return()
5640+ return _c
5641+}
5642+
5643+func (_c *MockOverlayWidget_RemoveOverlay_Call) RunAndReturn(run func(overlay layout.Widget)) *MockOverlayWidget_RemoveOverlay_Call {
5644+ _c.Run(run)
5645+ return _c
5646+}
5647+
5648+// SetCanFocus provides a mock function for the type MockOverlayWidget
5649+func (_mock *MockOverlayWidget) SetCanFocus(canFocus bool) {
5650+ _mock.Called(canFocus)
5651+ return
5652+}
5653+
5654+// MockOverlayWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
5655+type MockOverlayWidget_SetCanFocus_Call struct {
5656+ *mock.Call
5657+}
5658+
5659+// SetCanFocus is a helper method to define mock.On call
5660+// - canFocus bool
5661+func (_e *MockOverlayWidget_Expecter) SetCanFocus(canFocus interface{}) *MockOverlayWidget_SetCanFocus_Call {
5662+ return &MockOverlayWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
5663+}
5664+
5665+func (_c *MockOverlayWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockOverlayWidget_SetCanFocus_Call {
5666+ _c.Call.Run(func(args mock.Arguments) {
5667+ var arg0 bool
5668+ if args[0] != nil {
5669+ arg0 = args[0].(bool)
5670+ }
5671+ run(
5672+ arg0,
5673+ )
5674+ })
5675+ return _c
5676+}
5677+
5678+func (_c *MockOverlayWidget_SetCanFocus_Call) Return() *MockOverlayWidget_SetCanFocus_Call {
5679+ _c.Call.Return()
5680+ return _c
5681+}
5682+
5683+func (_c *MockOverlayWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockOverlayWidget_SetCanFocus_Call {
5684+ _c.Run(run)
5685+ return _c
5686+}
5687+
5688+// SetCanTarget provides a mock function for the type MockOverlayWidget
5689+func (_mock *MockOverlayWidget) SetCanTarget(canTarget bool) {
5690+ _mock.Called(canTarget)
5691+ return
5692+}
5693+
5694+// MockOverlayWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
5695+type MockOverlayWidget_SetCanTarget_Call struct {
5696+ *mock.Call
5697+}
5698+
5699+// SetCanTarget is a helper method to define mock.On call
5700+// - canTarget bool
5701+func (_e *MockOverlayWidget_Expecter) SetCanTarget(canTarget interface{}) *MockOverlayWidget_SetCanTarget_Call {
5702+ return &MockOverlayWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
5703+}
5704+
5705+func (_c *MockOverlayWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockOverlayWidget_SetCanTarget_Call {
5706+ _c.Call.Run(func(args mock.Arguments) {
5707+ var arg0 bool
5708+ if args[0] != nil {
5709+ arg0 = args[0].(bool)
5710+ }
5711+ run(
5712+ arg0,
5713+ )
5714+ })
5715+ return _c
5716+}
5717+
5718+func (_c *MockOverlayWidget_SetCanTarget_Call) Return() *MockOverlayWidget_SetCanTarget_Call {
5719+ _c.Call.Return()
5720+ return _c
5721+}
5722+
5723+func (_c *MockOverlayWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockOverlayWidget_SetCanTarget_Call {
5724+ _c.Run(run)
5725+ return _c
5726+}
5727+
5728+// SetChild provides a mock function for the type MockOverlayWidget
5729+func (_mock *MockOverlayWidget) SetChild(child layout.Widget) {
5730+ _mock.Called(child)
5731+ return
5732+}
5733+
5734+// MockOverlayWidget_SetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetChild'
5735+type MockOverlayWidget_SetChild_Call struct {
5736+ *mock.Call
5737+}
5738+
5739+// SetChild is a helper method to define mock.On call
5740+// - child layout.Widget
5741+func (_e *MockOverlayWidget_Expecter) SetChild(child interface{}) *MockOverlayWidget_SetChild_Call {
5742+ return &MockOverlayWidget_SetChild_Call{Call: _e.mock.On("SetChild", child)}
5743+}
5744+
5745+func (_c *MockOverlayWidget_SetChild_Call) Run(run func(child layout.Widget)) *MockOverlayWidget_SetChild_Call {
5746+ _c.Call.Run(func(args mock.Arguments) {
5747+ var arg0 layout.Widget
5748+ if args[0] != nil {
5749+ arg0 = args[0].(layout.Widget)
5750+ }
5751+ run(
5752+ arg0,
5753+ )
5754+ })
5755+ return _c
5756+}
5757+
5758+func (_c *MockOverlayWidget_SetChild_Call) Return() *MockOverlayWidget_SetChild_Call {
5759+ _c.Call.Return()
5760+ return _c
5761+}
5762+
5763+func (_c *MockOverlayWidget_SetChild_Call) RunAndReturn(run func(child layout.Widget)) *MockOverlayWidget_SetChild_Call {
5764+ _c.Run(run)
5765+ return _c
5766+}
5767+
5768+// SetClipOverlay provides a mock function for the type MockOverlayWidget
5769+func (_mock *MockOverlayWidget) SetClipOverlay(overlay layout.Widget, clip bool) {
5770+ _mock.Called(overlay, clip)
5771+ return
5772+}
5773+
5774+// MockOverlayWidget_SetClipOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetClipOverlay'
5775+type MockOverlayWidget_SetClipOverlay_Call struct {
5776+ *mock.Call
5777+}
5778+
5779+// SetClipOverlay is a helper method to define mock.On call
5780+// - overlay layout.Widget
5781+// - clip bool
5782+func (_e *MockOverlayWidget_Expecter) SetClipOverlay(overlay interface{}, clip interface{}) *MockOverlayWidget_SetClipOverlay_Call {
5783+ return &MockOverlayWidget_SetClipOverlay_Call{Call: _e.mock.On("SetClipOverlay", overlay, clip)}
5784+}
5785+
5786+func (_c *MockOverlayWidget_SetClipOverlay_Call) Run(run func(overlay layout.Widget, clip bool)) *MockOverlayWidget_SetClipOverlay_Call {
5787+ _c.Call.Run(func(args mock.Arguments) {
5788+ var arg0 layout.Widget
5789+ if args[0] != nil {
5790+ arg0 = args[0].(layout.Widget)
5791+ }
5792+ var arg1 bool
5793+ if args[1] != nil {
5794+ arg1 = args[1].(bool)
5795+ }
5796+ run(
5797+ arg0,
5798+ arg1,
5799+ )
5800+ })
5801+ return _c
5802+}
5803+
5804+func (_c *MockOverlayWidget_SetClipOverlay_Call) Return() *MockOverlayWidget_SetClipOverlay_Call {
5805+ _c.Call.Return()
5806+ return _c
5807+}
5808+
5809+func (_c *MockOverlayWidget_SetClipOverlay_Call) RunAndReturn(run func(overlay layout.Widget, clip bool)) *MockOverlayWidget_SetClipOverlay_Call {
5810+ _c.Run(run)
5811+ return _c
5812+}
5813+
5814+// SetFocusOnClick provides a mock function for the type MockOverlayWidget
5815+func (_mock *MockOverlayWidget) SetFocusOnClick(focusOnClick bool) {
5816+ _mock.Called(focusOnClick)
5817+ return
5818+}
5819+
5820+// MockOverlayWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
5821+type MockOverlayWidget_SetFocusOnClick_Call struct {
5822+ *mock.Call
5823+}
5824+
5825+// SetFocusOnClick is a helper method to define mock.On call
5826+// - focusOnClick bool
5827+func (_e *MockOverlayWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockOverlayWidget_SetFocusOnClick_Call {
5828+ return &MockOverlayWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
5829+}
5830+
5831+func (_c *MockOverlayWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockOverlayWidget_SetFocusOnClick_Call {
5832+ _c.Call.Run(func(args mock.Arguments) {
5833+ var arg0 bool
5834+ if args[0] != nil {
5835+ arg0 = args[0].(bool)
5836+ }
5837+ run(
5838+ arg0,
5839+ )
5840+ })
5841+ return _c
5842+}
5843+
5844+func (_c *MockOverlayWidget_SetFocusOnClick_Call) Return() *MockOverlayWidget_SetFocusOnClick_Call {
5845+ _c.Call.Return()
5846+ return _c
5847+}
5848+
5849+func (_c *MockOverlayWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockOverlayWidget_SetFocusOnClick_Call {
5850+ _c.Run(run)
5851+ return _c
5852+}
5853+
5854+// SetHalign provides a mock function for the type MockOverlayWidget
5855+func (_mock *MockOverlayWidget) SetHalign(align gtk.Align) {
5856+ _mock.Called(align)
5857+ return
5858+}
5859+
5860+// MockOverlayWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
5861+type MockOverlayWidget_SetHalign_Call struct {
5862+ *mock.Call
5863+}
5864+
5865+// SetHalign is a helper method to define mock.On call
5866+// - align gtk.Align
5867+func (_e *MockOverlayWidget_Expecter) SetHalign(align interface{}) *MockOverlayWidget_SetHalign_Call {
5868+ return &MockOverlayWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
5869+}
5870+
5871+func (_c *MockOverlayWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockOverlayWidget_SetHalign_Call {
5872+ _c.Call.Run(func(args mock.Arguments) {
5873+ var arg0 gtk.Align
5874+ if args[0] != nil {
5875+ arg0 = args[0].(gtk.Align)
5876+ }
5877+ run(
5878+ arg0,
5879+ )
5880+ })
5881+ return _c
5882+}
5883+
5884+func (_c *MockOverlayWidget_SetHalign_Call) Return() *MockOverlayWidget_SetHalign_Call {
5885+ _c.Call.Return()
5886+ return _c
5887+}
5888+
5889+func (_c *MockOverlayWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockOverlayWidget_SetHalign_Call {
5890+ _c.Run(run)
5891+ return _c
5892+}
5893+
5894+// SetHexpand provides a mock function for the type MockOverlayWidget
5895+func (_mock *MockOverlayWidget) SetHexpand(expand bool) {
5896+ _mock.Called(expand)
5897+ return
5898+}
5899+
5900+// MockOverlayWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
5901+type MockOverlayWidget_SetHexpand_Call struct {
5902+ *mock.Call
5903+}
5904+
5905+// SetHexpand is a helper method to define mock.On call
5906+// - expand bool
5907+func (_e *MockOverlayWidget_Expecter) SetHexpand(expand interface{}) *MockOverlayWidget_SetHexpand_Call {
5908+ return &MockOverlayWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
5909+}
5910+
5911+func (_c *MockOverlayWidget_SetHexpand_Call) Run(run func(expand bool)) *MockOverlayWidget_SetHexpand_Call {
5912+ _c.Call.Run(func(args mock.Arguments) {
5913+ var arg0 bool
5914+ if args[0] != nil {
5915+ arg0 = args[0].(bool)
5916+ }
5917+ run(
5918+ arg0,
5919+ )
5920+ })
5921+ return _c
5922+}
5923+
5924+func (_c *MockOverlayWidget_SetHexpand_Call) Return() *MockOverlayWidget_SetHexpand_Call {
5925+ _c.Call.Return()
5926+ return _c
5927+}
5928+
5929+func (_c *MockOverlayWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockOverlayWidget_SetHexpand_Call {
5930+ _c.Run(run)
5931+ return _c
5932+}
5933+
5934+// SetMeasureOverlay provides a mock function for the type MockOverlayWidget
5935+func (_mock *MockOverlayWidget) SetMeasureOverlay(overlay layout.Widget, measure bool) {
5936+ _mock.Called(overlay, measure)
5937+ return
5938+}
5939+
5940+// MockOverlayWidget_SetMeasureOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMeasureOverlay'
5941+type MockOverlayWidget_SetMeasureOverlay_Call struct {
5942+ *mock.Call
5943+}
5944+
5945+// SetMeasureOverlay is a helper method to define mock.On call
5946+// - overlay layout.Widget
5947+// - measure bool
5948+func (_e *MockOverlayWidget_Expecter) SetMeasureOverlay(overlay interface{}, measure interface{}) *MockOverlayWidget_SetMeasureOverlay_Call {
5949+ return &MockOverlayWidget_SetMeasureOverlay_Call{Call: _e.mock.On("SetMeasureOverlay", overlay, measure)}
5950+}
5951+
5952+func (_c *MockOverlayWidget_SetMeasureOverlay_Call) Run(run func(overlay layout.Widget, measure bool)) *MockOverlayWidget_SetMeasureOverlay_Call {
5953+ _c.Call.Run(func(args mock.Arguments) {
5954+ var arg0 layout.Widget
5955+ if args[0] != nil {
5956+ arg0 = args[0].(layout.Widget)
5957+ }
5958+ var arg1 bool
5959+ if args[1] != nil {
5960+ arg1 = args[1].(bool)
5961+ }
5962+ run(
5963+ arg0,
5964+ arg1,
5965+ )
5966+ })
5967+ return _c
5968+}
5969+
5970+func (_c *MockOverlayWidget_SetMeasureOverlay_Call) Return() *MockOverlayWidget_SetMeasureOverlay_Call {
5971+ _c.Call.Return()
5972+ return _c
5973+}
5974+
5975+func (_c *MockOverlayWidget_SetMeasureOverlay_Call) RunAndReturn(run func(overlay layout.Widget, measure bool)) *MockOverlayWidget_SetMeasureOverlay_Call {
5976+ _c.Run(run)
5977+ return _c
5978+}
5979+
5980+// SetSizeRequest provides a mock function for the type MockOverlayWidget
5981+func (_mock *MockOverlayWidget) SetSizeRequest(width int, height int) {
5982+ _mock.Called(width, height)
5983+ return
5984+}
5985+
5986+// MockOverlayWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
5987+type MockOverlayWidget_SetSizeRequest_Call struct {
5988+ *mock.Call
5989+}
5990+
5991+// SetSizeRequest is a helper method to define mock.On call
5992+// - width int
5993+// - height int
5994+func (_e *MockOverlayWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockOverlayWidget_SetSizeRequest_Call {
5995+ return &MockOverlayWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
5996+}
5997+
5998+func (_c *MockOverlayWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockOverlayWidget_SetSizeRequest_Call {
5999+ _c.Call.Run(func(args mock.Arguments) {
6000+ var arg0 int
6001+ if args[0] != nil {
6002+ arg0 = args[0].(int)
6003+ }
6004+ var arg1 int
6005+ if args[1] != nil {
6006+ arg1 = args[1].(int)
6007+ }
6008+ run(
6009+ arg0,
6010+ arg1,
6011+ )
6012+ })
6013+ return _c
6014+}
6015+
6016+func (_c *MockOverlayWidget_SetSizeRequest_Call) Return() *MockOverlayWidget_SetSizeRequest_Call {
6017+ _c.Call.Return()
6018+ return _c
6019+}
6020+
6021+func (_c *MockOverlayWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockOverlayWidget_SetSizeRequest_Call {
6022+ _c.Run(run)
6023+ return _c
6024+}
6025+
6026+// SetValign provides a mock function for the type MockOverlayWidget
6027+func (_mock *MockOverlayWidget) SetValign(align gtk.Align) {
6028+ _mock.Called(align)
6029+ return
6030+}
6031+
6032+// MockOverlayWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
6033+type MockOverlayWidget_SetValign_Call struct {
6034+ *mock.Call
6035+}
6036+
6037+// SetValign is a helper method to define mock.On call
6038+// - align gtk.Align
6039+func (_e *MockOverlayWidget_Expecter) SetValign(align interface{}) *MockOverlayWidget_SetValign_Call {
6040+ return &MockOverlayWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
6041+}
6042+
6043+func (_c *MockOverlayWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockOverlayWidget_SetValign_Call {
6044+ _c.Call.Run(func(args mock.Arguments) {
6045+ var arg0 gtk.Align
6046+ if args[0] != nil {
6047+ arg0 = args[0].(gtk.Align)
6048+ }
6049+ run(
6050+ arg0,
6051+ )
6052+ })
6053+ return _c
6054+}
6055+
6056+func (_c *MockOverlayWidget_SetValign_Call) Return() *MockOverlayWidget_SetValign_Call {
6057+ _c.Call.Return()
6058+ return _c
6059+}
6060+
6061+func (_c *MockOverlayWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockOverlayWidget_SetValign_Call {
6062+ _c.Run(run)
6063+ return _c
6064+}
6065+
6066+// SetVexpand provides a mock function for the type MockOverlayWidget
6067+func (_mock *MockOverlayWidget) SetVexpand(expand bool) {
6068+ _mock.Called(expand)
6069+ return
6070+}
6071+
6072+// MockOverlayWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
6073+type MockOverlayWidget_SetVexpand_Call struct {
6074+ *mock.Call
6075+}
6076+
6077+// SetVexpand is a helper method to define mock.On call
6078+// - expand bool
6079+func (_e *MockOverlayWidget_Expecter) SetVexpand(expand interface{}) *MockOverlayWidget_SetVexpand_Call {
6080+ return &MockOverlayWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
6081+}
6082+
6083+func (_c *MockOverlayWidget_SetVexpand_Call) Run(run func(expand bool)) *MockOverlayWidget_SetVexpand_Call {
6084+ _c.Call.Run(func(args mock.Arguments) {
6085+ var arg0 bool
6086+ if args[0] != nil {
6087+ arg0 = args[0].(bool)
6088+ }
6089+ run(
6090+ arg0,
6091+ )
6092+ })
6093+ return _c
6094+}
6095+
6096+func (_c *MockOverlayWidget_SetVexpand_Call) Return() *MockOverlayWidget_SetVexpand_Call {
6097+ _c.Call.Return()
6098+ return _c
6099+}
6100+
6101+func (_c *MockOverlayWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockOverlayWidget_SetVexpand_Call {
6102+ _c.Run(run)
6103+ return _c
6104+}
6105+
6106+// SetVisible provides a mock function for the type MockOverlayWidget
6107+func (_mock *MockOverlayWidget) SetVisible(visible bool) {
6108+ _mock.Called(visible)
6109+ return
6110+}
6111+
6112+// MockOverlayWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
6113+type MockOverlayWidget_SetVisible_Call struct {
6114+ *mock.Call
6115+}
6116+
6117+// SetVisible is a helper method to define mock.On call
6118+// - visible bool
6119+func (_e *MockOverlayWidget_Expecter) SetVisible(visible interface{}) *MockOverlayWidget_SetVisible_Call {
6120+ return &MockOverlayWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
6121+}
6122+
6123+func (_c *MockOverlayWidget_SetVisible_Call) Run(run func(visible bool)) *MockOverlayWidget_SetVisible_Call {
6124+ _c.Call.Run(func(args mock.Arguments) {
6125+ var arg0 bool
6126+ if args[0] != nil {
6127+ arg0 = args[0].(bool)
6128+ }
6129+ run(
6130+ arg0,
6131+ )
6132+ })
6133+ return _c
6134+}
6135+
6136+func (_c *MockOverlayWidget_SetVisible_Call) Return() *MockOverlayWidget_SetVisible_Call {
6137+ _c.Call.Return()
6138+ return _c
6139+}
6140+
6141+func (_c *MockOverlayWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockOverlayWidget_SetVisible_Call {
6142+ _c.Run(run)
6143+ return _c
6144+}
6145+
6146+// Show provides a mock function for the type MockOverlayWidget
6147+func (_mock *MockOverlayWidget) Show() {
6148+ _mock.Called()
6149+ return
6150+}
6151+
6152+// MockOverlayWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
6153+type MockOverlayWidget_Show_Call struct {
6154+ *mock.Call
6155+}
6156+
6157+// Show is a helper method to define mock.On call
6158+func (_e *MockOverlayWidget_Expecter) Show() *MockOverlayWidget_Show_Call {
6159+ return &MockOverlayWidget_Show_Call{Call: _e.mock.On("Show")}
6160+}
6161+
6162+func (_c *MockOverlayWidget_Show_Call) Run(run func()) *MockOverlayWidget_Show_Call {
6163+ _c.Call.Run(func(args mock.Arguments) {
6164+ run()
6165+ })
6166+ return _c
6167+}
6168+
6169+func (_c *MockOverlayWidget_Show_Call) Return() *MockOverlayWidget_Show_Call {
6170+ _c.Call.Return()
6171+ return _c
6172+}
6173+
6174+func (_c *MockOverlayWidget_Show_Call) RunAndReturn(run func()) *MockOverlayWidget_Show_Call {
6175+ _c.Run(run)
6176+ return _c
6177+}
6178+
6179+// Unparent provides a mock function for the type MockOverlayWidget
6180+func (_mock *MockOverlayWidget) Unparent() {
6181+ _mock.Called()
6182+ return
6183+}
6184+
6185+// MockOverlayWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
6186+type MockOverlayWidget_Unparent_Call struct {
6187+ *mock.Call
6188+}
6189+
6190+// Unparent is a helper method to define mock.On call
6191+func (_e *MockOverlayWidget_Expecter) Unparent() *MockOverlayWidget_Unparent_Call {
6192+ return &MockOverlayWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
6193+}
6194+
6195+func (_c *MockOverlayWidget_Unparent_Call) Run(run func()) *MockOverlayWidget_Unparent_Call {
6196+ _c.Call.Run(func(args mock.Arguments) {
6197+ run()
6198+ })
6199+ return _c
6200+}
6201+
6202+func (_c *MockOverlayWidget_Unparent_Call) Return() *MockOverlayWidget_Unparent_Call {
6203+ _c.Call.Return()
6204+ return _c
6205+}
6206+
6207+func (_c *MockOverlayWidget_Unparent_Call) RunAndReturn(run func()) *MockOverlayWidget_Unparent_Call {
6208+ _c.Run(run)
6209+ return _c
6210+}
6211+
6212+// 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.
6213+// The first argument is typically a *testing.T value.
6214+func NewMockLabelWidget(t interface {
6215+ mock.TestingT
6216+ Cleanup(func())
6217+}) *MockLabelWidget {
6218+ mock := &MockLabelWidget{}
6219+ mock.Mock.Test(t)
6220+
6221+ t.Cleanup(func() { mock.AssertExpectations(t) })
6222+
6223+ return mock
6224+}
6225+
6226+// MockLabelWidget is an autogenerated mock type for the LabelWidget type
6227+type MockLabelWidget struct {
6228+ mock.Mock
6229+}
6230+
6231+type MockLabelWidget_Expecter struct {
6232+ mock *mock.Mock
6233+}
6234+
6235+func (_m *MockLabelWidget) EXPECT() *MockLabelWidget_Expecter {
6236+ return &MockLabelWidget_Expecter{mock: &_m.Mock}
6237+}
6238+
6239+// AddController provides a mock function for the type MockLabelWidget
6240+func (_mock *MockLabelWidget) AddController(controller *gtk.EventController) {
6241+ _mock.Called(controller)
6242+ return
6243+}
6244+
6245+// MockLabelWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
6246+type MockLabelWidget_AddController_Call struct {
6247+ *mock.Call
6248+}
6249+
6250+// AddController is a helper method to define mock.On call
6251+// - controller *gtk.EventController
6252+func (_e *MockLabelWidget_Expecter) AddController(controller interface{}) *MockLabelWidget_AddController_Call {
6253+ return &MockLabelWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
6254+}
6255+
6256+func (_c *MockLabelWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockLabelWidget_AddController_Call {
6257+ _c.Call.Run(func(args mock.Arguments) {
6258+ var arg0 *gtk.EventController
6259+ if args[0] != nil {
6260+ arg0 = args[0].(*gtk.EventController)
6261+ }
6262+ run(
6263+ arg0,
6264+ )
6265+ })
6266+ return _c
6267+}
6268+
6269+func (_c *MockLabelWidget_AddController_Call) Return() *MockLabelWidget_AddController_Call {
6270+ _c.Call.Return()
6271+ return _c
6272+}
6273+
6274+func (_c *MockLabelWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockLabelWidget_AddController_Call {
6275+ _c.Run(run)
6276+ return _c
6277+}
6278+
6279+// AddCssClass provides a mock function for the type MockLabelWidget
6280+func (_mock *MockLabelWidget) AddCssClass(cssClass string) {
6281+ _mock.Called(cssClass)
6282+ return
6283+}
6284+
6285+// MockLabelWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
6286+type MockLabelWidget_AddCssClass_Call struct {
6287+ *mock.Call
6288+}
6289+
6290+// AddCssClass is a helper method to define mock.On call
6291+// - cssClass string
6292+func (_e *MockLabelWidget_Expecter) AddCssClass(cssClass interface{}) *MockLabelWidget_AddCssClass_Call {
6293+ return &MockLabelWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
6294+}
6295+
6296+func (_c *MockLabelWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockLabelWidget_AddCssClass_Call {
6297+ _c.Call.Run(func(args mock.Arguments) {
6298+ var arg0 string
6299+ if args[0] != nil {
6300+ arg0 = args[0].(string)
6301+ }
6302+ run(
6303+ arg0,
6304+ )
6305+ })
6306+ return _c
6307+}
6308+
6309+func (_c *MockLabelWidget_AddCssClass_Call) Return() *MockLabelWidget_AddCssClass_Call {
6310+ _c.Call.Return()
6311+ return _c
6312+}
6313+
6314+func (_c *MockLabelWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockLabelWidget_AddCssClass_Call {
6315+ _c.Run(run)
6316+ return _c
6317+}
6318+
6319+// ComputePoint provides a mock function for the type MockLabelWidget
6320+func (_mock *MockLabelWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
6321+ ret := _mock.Called(target)
6322+
6323+ if len(ret) == 0 {
6324+ panic("no return value specified for ComputePoint")
6325+ }
6326+
6327+ var r0 float64
6328+ var r1 float64
6329+ var r2 bool
6330+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
6331+ return returnFunc(target)
6332+ }
6333+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
6334+ r0 = returnFunc(target)
6335+ } else {
6336+ r0 = ret.Get(0).(float64)
6337+ }
6338+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
6339+ r1 = returnFunc(target)
6340+ } else {
6341+ r1 = ret.Get(1).(float64)
6342+ }
6343+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
6344+ r2 = returnFunc(target)
6345+ } else {
6346+ r2 = ret.Get(2).(bool)
6347+ }
6348+ return r0, r1, r2
6349+}
6350+
6351+// MockLabelWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
6352+type MockLabelWidget_ComputePoint_Call struct {
6353+ *mock.Call
6354+}
6355+
6356+// ComputePoint is a helper method to define mock.On call
6357+// - target layout.Widget
6358+func (_e *MockLabelWidget_Expecter) ComputePoint(target interface{}) *MockLabelWidget_ComputePoint_Call {
6359+ return &MockLabelWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
6360+}
6361+
6362+func (_c *MockLabelWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockLabelWidget_ComputePoint_Call {
6363+ _c.Call.Run(func(args mock.Arguments) {
6364+ var arg0 layout.Widget
6365+ if args[0] != nil {
6366+ arg0 = args[0].(layout.Widget)
6367+ }
6368+ run(
6369+ arg0,
6370+ )
6371+ })
6372+ return _c
6373+}
6374+
6375+func (_c *MockLabelWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockLabelWidget_ComputePoint_Call {
6376+ _c.Call.Return(x, y, ok)
6377+ return _c
6378+}
6379+
6380+func (_c *MockLabelWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockLabelWidget_ComputePoint_Call {
6381+ _c.Call.Return(run)
6382+ return _c
6383+}
6384+
6385+// GetAllocatedHeight provides a mock function for the type MockLabelWidget
6386+func (_mock *MockLabelWidget) GetAllocatedHeight() int {
6387+ ret := _mock.Called()
6388+
6389+ if len(ret) == 0 {
6390+ panic("no return value specified for GetAllocatedHeight")
6391+ }
6392+
6393+ var r0 int
6394+ if returnFunc, ok := ret.Get(0).(func() int); ok {
6395+ r0 = returnFunc()
6396+ } else {
6397+ r0 = ret.Get(0).(int)
6398+ }
6399+ return r0
6400+}
6401+
6402+// MockLabelWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
6403+type MockLabelWidget_GetAllocatedHeight_Call struct {
6404+ *mock.Call
6405+}
6406+
6407+// GetAllocatedHeight is a helper method to define mock.On call
6408+func (_e *MockLabelWidget_Expecter) GetAllocatedHeight() *MockLabelWidget_GetAllocatedHeight_Call {
6409+ return &MockLabelWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
6410+}
6411+
6412+func (_c *MockLabelWidget_GetAllocatedHeight_Call) Run(run func()) *MockLabelWidget_GetAllocatedHeight_Call {
6413+ _c.Call.Run(func(args mock.Arguments) {
6414+ run()
6415+ })
6416+ return _c
6417+}
6418+
6419+func (_c *MockLabelWidget_GetAllocatedHeight_Call) Return(n int) *MockLabelWidget_GetAllocatedHeight_Call {
6420+ _c.Call.Return(n)
6421+ return _c
6422+}
6423+
6424+func (_c *MockLabelWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockLabelWidget_GetAllocatedHeight_Call {
6425+ _c.Call.Return(run)
6426+ return _c
6427+}
6428+
6429+// GetAllocatedWidth provides a mock function for the type MockLabelWidget
6430+func (_mock *MockLabelWidget) GetAllocatedWidth() int {
6431+ ret := _mock.Called()
6432+
6433+ if len(ret) == 0 {
6434+ panic("no return value specified for GetAllocatedWidth")
6435+ }
6436+
6437+ var r0 int
6438+ if returnFunc, ok := ret.Get(0).(func() int); ok {
6439+ r0 = returnFunc()
6440+ } else {
6441+ r0 = ret.Get(0).(int)
6442+ }
6443+ return r0
6444+}
6445+
6446+// MockLabelWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
6447+type MockLabelWidget_GetAllocatedWidth_Call struct {
6448+ *mock.Call
6449+}
6450+
6451+// GetAllocatedWidth is a helper method to define mock.On call
6452+func (_e *MockLabelWidget_Expecter) GetAllocatedWidth() *MockLabelWidget_GetAllocatedWidth_Call {
6453+ return &MockLabelWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
6454+}
6455+
6456+func (_c *MockLabelWidget_GetAllocatedWidth_Call) Run(run func()) *MockLabelWidget_GetAllocatedWidth_Call {
6457+ _c.Call.Run(func(args mock.Arguments) {
6458+ run()
6459+ })
6460+ return _c
6461+}
6462+
6463+func (_c *MockLabelWidget_GetAllocatedWidth_Call) Return(n int) *MockLabelWidget_GetAllocatedWidth_Call {
6464+ _c.Call.Return(n)
6465+ return _c
6466+}
6467+
6468+func (_c *MockLabelWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockLabelWidget_GetAllocatedWidth_Call {
6469+ _c.Call.Return(run)
6470+ return _c
6471+}
6472+
6473+// GetHexpand provides a mock function for the type MockLabelWidget
6474+func (_mock *MockLabelWidget) GetHexpand() bool {
6475+ ret := _mock.Called()
6476+
6477+ if len(ret) == 0 {
6478+ panic("no return value specified for GetHexpand")
6479+ }
6480+
6481+ var r0 bool
6482+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
6483+ r0 = returnFunc()
6484+ } else {
6485+ r0 = ret.Get(0).(bool)
6486+ }
6487+ return r0
6488+}
6489+
6490+// MockLabelWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
6491+type MockLabelWidget_GetHexpand_Call struct {
6492+ *mock.Call
6493+}
6494+
6495+// GetHexpand is a helper method to define mock.On call
6496+func (_e *MockLabelWidget_Expecter) GetHexpand() *MockLabelWidget_GetHexpand_Call {
6497+ return &MockLabelWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
6498+}
6499+
6500+func (_c *MockLabelWidget_GetHexpand_Call) Run(run func()) *MockLabelWidget_GetHexpand_Call {
6501+ _c.Call.Run(func(args mock.Arguments) {
6502+ run()
6503+ })
6504+ return _c
6505+}
6506+
6507+func (_c *MockLabelWidget_GetHexpand_Call) Return(b bool) *MockLabelWidget_GetHexpand_Call {
6508+ _c.Call.Return(b)
6509+ return _c
6510+}
6511+
6512+func (_c *MockLabelWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockLabelWidget_GetHexpand_Call {
6513+ _c.Call.Return(run)
6514+ return _c
6515+}
6516+
6517+// GetParent provides a mock function for the type MockLabelWidget
6518+func (_mock *MockLabelWidget) GetParent() layout.Widget {
6519+ ret := _mock.Called()
6520+
6521+ if len(ret) == 0 {
6522+ panic("no return value specified for GetParent")
6523+ }
6524+
6525+ var r0 layout.Widget
6526+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
6527+ r0 = returnFunc()
6528+ } else {
6529+ if ret.Get(0) != nil {
6530+ r0 = ret.Get(0).(layout.Widget)
6531+ }
6532+ }
6533+ return r0
6534+}
6535+
6536+// MockLabelWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
6537+type MockLabelWidget_GetParent_Call struct {
6538+ *mock.Call
6539+}
6540+
6541+// GetParent is a helper method to define mock.On call
6542+func (_e *MockLabelWidget_Expecter) GetParent() *MockLabelWidget_GetParent_Call {
6543+ return &MockLabelWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
6544+}
6545+
6546+func (_c *MockLabelWidget_GetParent_Call) Run(run func()) *MockLabelWidget_GetParent_Call {
6547+ _c.Call.Run(func(args mock.Arguments) {
6548+ run()
6549+ })
6550+ return _c
6551+}
6552+
6553+func (_c *MockLabelWidget_GetParent_Call) Return(widget layout.Widget) *MockLabelWidget_GetParent_Call {
6554+ _c.Call.Return(widget)
6555+ return _c
6556+}
6557+
6558+func (_c *MockLabelWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockLabelWidget_GetParent_Call {
6559+ _c.Call.Return(run)
6560+ return _c
6561+}
6562+
6563+// GetText provides a mock function for the type MockLabelWidget
6564+func (_mock *MockLabelWidget) GetText() string {
6565+ ret := _mock.Called()
6566+
6567+ if len(ret) == 0 {
6568+ panic("no return value specified for GetText")
6569+ }
6570+
6571+ var r0 string
6572+ if returnFunc, ok := ret.Get(0).(func() string); ok {
6573+ r0 = returnFunc()
6574+ } else {
6575+ r0 = ret.Get(0).(string)
6576+ }
6577+ return r0
6578+}
6579+
6580+// MockLabelWidget_GetText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetText'
6581+type MockLabelWidget_GetText_Call struct {
6582+ *mock.Call
6583+}
6584+
6585+// GetText is a helper method to define mock.On call
6586+func (_e *MockLabelWidget_Expecter) GetText() *MockLabelWidget_GetText_Call {
6587+ return &MockLabelWidget_GetText_Call{Call: _e.mock.On("GetText")}
6588+}
6589+
6590+func (_c *MockLabelWidget_GetText_Call) Run(run func()) *MockLabelWidget_GetText_Call {
6591+ _c.Call.Run(func(args mock.Arguments) {
6592+ run()
6593+ })
6594+ return _c
6595+}
6596+
6597+func (_c *MockLabelWidget_GetText_Call) Return(s string) *MockLabelWidget_GetText_Call {
6598+ _c.Call.Return(s)
6599+ return _c
6600+}
6601+
6602+func (_c *MockLabelWidget_GetText_Call) RunAndReturn(run func() string) *MockLabelWidget_GetText_Call {
6603+ _c.Call.Return(run)
6604+ return _c
6605+}
6606+
6607+// GetVexpand provides a mock function for the type MockLabelWidget
6608+func (_mock *MockLabelWidget) GetVexpand() bool {
6609+ ret := _mock.Called()
6610+
6611+ if len(ret) == 0 {
6612+ panic("no return value specified for GetVexpand")
6613+ }
6614+
6615+ var r0 bool
6616+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
6617+ r0 = returnFunc()
6618+ } else {
6619+ r0 = ret.Get(0).(bool)
6620+ }
6621+ return r0
6622+}
6623+
6624+// MockLabelWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
6625+type MockLabelWidget_GetVexpand_Call struct {
6626+ *mock.Call
6627+}
6628+
6629+// GetVexpand is a helper method to define mock.On call
6630+func (_e *MockLabelWidget_Expecter) GetVexpand() *MockLabelWidget_GetVexpand_Call {
6631+ return &MockLabelWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
6632+}
6633+
6634+func (_c *MockLabelWidget_GetVexpand_Call) Run(run func()) *MockLabelWidget_GetVexpand_Call {
6635+ _c.Call.Run(func(args mock.Arguments) {
6636+ run()
6637+ })
6638+ return _c
6639+}
6640+
6641+func (_c *MockLabelWidget_GetVexpand_Call) Return(b bool) *MockLabelWidget_GetVexpand_Call {
6642+ _c.Call.Return(b)
6643+ return _c
6644+}
6645+
6646+func (_c *MockLabelWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockLabelWidget_GetVexpand_Call {
6647+ _c.Call.Return(run)
6648+ return _c
6649+}
6650+
6651+// GrabFocus provides a mock function for the type MockLabelWidget
6652+func (_mock *MockLabelWidget) GrabFocus() bool {
6653+ ret := _mock.Called()
6654+
6655+ if len(ret) == 0 {
6656+ panic("no return value specified for GrabFocus")
6657+ }
6658+
6659+ var r0 bool
6660+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
6661+ r0 = returnFunc()
6662+ } else {
6663+ r0 = ret.Get(0).(bool)
6664+ }
6665+ return r0
6666+}
6667+
6668+// MockLabelWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
6669+type MockLabelWidget_GrabFocus_Call struct {
6670+ *mock.Call
6671+}
6672+
6673+// GrabFocus is a helper method to define mock.On call
6674+func (_e *MockLabelWidget_Expecter) GrabFocus() *MockLabelWidget_GrabFocus_Call {
6675+ return &MockLabelWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
6676+}
6677+
6678+func (_c *MockLabelWidget_GrabFocus_Call) Run(run func()) *MockLabelWidget_GrabFocus_Call {
6679+ _c.Call.Run(func(args mock.Arguments) {
6680+ run()
6681+ })
6682+ return _c
6683+}
6684+
6685+func (_c *MockLabelWidget_GrabFocus_Call) Return(b bool) *MockLabelWidget_GrabFocus_Call {
6686+ _c.Call.Return(b)
6687+ return _c
6688+}
6689+
6690+func (_c *MockLabelWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockLabelWidget_GrabFocus_Call {
6691+ _c.Call.Return(run)
6692+ return _c
6693+}
6694+
6695+// GtkWidget provides a mock function for the type MockLabelWidget
6696+func (_mock *MockLabelWidget) GtkWidget() *gtk.Widget {
6697+ ret := _mock.Called()
6698+
6699+ if len(ret) == 0 {
6700+ panic("no return value specified for GtkWidget")
6701+ }
6702+
6703+ var r0 *gtk.Widget
6704+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
6705+ r0 = returnFunc()
6706+ } else {
6707+ if ret.Get(0) != nil {
6708+ r0 = ret.Get(0).(*gtk.Widget)
6709+ }
6710+ }
6711+ return r0
6712+}
6713+
6714+// MockLabelWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
6715+type MockLabelWidget_GtkWidget_Call struct {
6716+ *mock.Call
6717+}
6718+
6719+// GtkWidget is a helper method to define mock.On call
6720+func (_e *MockLabelWidget_Expecter) GtkWidget() *MockLabelWidget_GtkWidget_Call {
6721+ return &MockLabelWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
6722+}
6723+
6724+func (_c *MockLabelWidget_GtkWidget_Call) Run(run func()) *MockLabelWidget_GtkWidget_Call {
6725+ _c.Call.Run(func(args mock.Arguments) {
6726+ run()
6727+ })
6728+ return _c
6729+}
6730+
6731+func (_c *MockLabelWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockLabelWidget_GtkWidget_Call {
6732+ _c.Call.Return(widget)
6733+ return _c
6734+}
6735+
6736+func (_c *MockLabelWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockLabelWidget_GtkWidget_Call {
6737+ _c.Call.Return(run)
6738+ return _c
6739+}
6740+
6741+// HasCssClass provides a mock function for the type MockLabelWidget
6742+func (_mock *MockLabelWidget) HasCssClass(cssClass string) bool {
6743+ ret := _mock.Called(cssClass)
6744+
6745+ if len(ret) == 0 {
6746+ panic("no return value specified for HasCssClass")
6747+ }
6748+
6749+ var r0 bool
6750+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
6751+ r0 = returnFunc(cssClass)
6752+ } else {
6753+ r0 = ret.Get(0).(bool)
6754+ }
6755+ return r0
6756+}
6757+
6758+// MockLabelWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
6759+type MockLabelWidget_HasCssClass_Call struct {
6760+ *mock.Call
6761+}
6762+
6763+// HasCssClass is a helper method to define mock.On call
6764+// - cssClass string
6765+func (_e *MockLabelWidget_Expecter) HasCssClass(cssClass interface{}) *MockLabelWidget_HasCssClass_Call {
6766+ return &MockLabelWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
6767+}
6768+
6769+func (_c *MockLabelWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockLabelWidget_HasCssClass_Call {
6770+ _c.Call.Run(func(args mock.Arguments) {
6771+ var arg0 string
6772+ if args[0] != nil {
6773+ arg0 = args[0].(string)
6774+ }
6775+ run(
6776+ arg0,
6777+ )
6778+ })
6779+ return _c
6780+}
6781+
6782+func (_c *MockLabelWidget_HasCssClass_Call) Return(b bool) *MockLabelWidget_HasCssClass_Call {
6783+ _c.Call.Return(b)
6784+ return _c
6785+}
6786+
6787+func (_c *MockLabelWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockLabelWidget_HasCssClass_Call {
6788+ _c.Call.Return(run)
6789+ return _c
6790+}
6791+
6792+// HasFocus provides a mock function for the type MockLabelWidget
6793+func (_mock *MockLabelWidget) HasFocus() bool {
6794+ ret := _mock.Called()
6795+
6796+ if len(ret) == 0 {
6797+ panic("no return value specified for HasFocus")
6798+ }
6799+
6800+ var r0 bool
6801+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
6802+ r0 = returnFunc()
6803+ } else {
6804+ r0 = ret.Get(0).(bool)
6805+ }
6806+ return r0
6807+}
6808+
6809+// MockLabelWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
6810+type MockLabelWidget_HasFocus_Call struct {
6811+ *mock.Call
6812+}
6813+
6814+// HasFocus is a helper method to define mock.On call
6815+func (_e *MockLabelWidget_Expecter) HasFocus() *MockLabelWidget_HasFocus_Call {
6816+ return &MockLabelWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
6817+}
6818+
6819+func (_c *MockLabelWidget_HasFocus_Call) Run(run func()) *MockLabelWidget_HasFocus_Call {
6820+ _c.Call.Run(func(args mock.Arguments) {
6821+ run()
6822+ })
6823+ return _c
6824+}
6825+
6826+func (_c *MockLabelWidget_HasFocus_Call) Return(b bool) *MockLabelWidget_HasFocus_Call {
6827+ _c.Call.Return(b)
6828+ return _c
6829+}
6830+
6831+func (_c *MockLabelWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockLabelWidget_HasFocus_Call {
6832+ _c.Call.Return(run)
6833+ return _c
6834+}
6835+
6836+// Hide provides a mock function for the type MockLabelWidget
6837+func (_mock *MockLabelWidget) Hide() {
6838+ _mock.Called()
6839+ return
6840+}
6841+
6842+// MockLabelWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
6843+type MockLabelWidget_Hide_Call struct {
6844+ *mock.Call
6845+}
6846+
6847+// Hide is a helper method to define mock.On call
6848+func (_e *MockLabelWidget_Expecter) Hide() *MockLabelWidget_Hide_Call {
6849+ return &MockLabelWidget_Hide_Call{Call: _e.mock.On("Hide")}
6850+}
6851+
6852+func (_c *MockLabelWidget_Hide_Call) Run(run func()) *MockLabelWidget_Hide_Call {
6853+ _c.Call.Run(func(args mock.Arguments) {
6854+ run()
6855+ })
6856+ return _c
6857+}
6858+
6859+func (_c *MockLabelWidget_Hide_Call) Return() *MockLabelWidget_Hide_Call {
6860+ _c.Call.Return()
6861+ return _c
6862+}
6863+
6864+func (_c *MockLabelWidget_Hide_Call) RunAndReturn(run func()) *MockLabelWidget_Hide_Call {
6865+ _c.Run(run)
6866+ return _c
6867+}
6868+
6869+// IsVisible provides a mock function for the type MockLabelWidget
6870+func (_mock *MockLabelWidget) IsVisible() bool {
6871+ ret := _mock.Called()
6872+
6873+ if len(ret) == 0 {
6874+ panic("no return value specified for IsVisible")
6875+ }
6876+
6877+ var r0 bool
6878+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
6879+ r0 = returnFunc()
6880+ } else {
6881+ r0 = ret.Get(0).(bool)
6882+ }
6883+ return r0
6884+}
6885+
6886+// MockLabelWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
6887+type MockLabelWidget_IsVisible_Call struct {
6888+ *mock.Call
6889+}
6890+
6891+// IsVisible is a helper method to define mock.On call
6892+func (_e *MockLabelWidget_Expecter) IsVisible() *MockLabelWidget_IsVisible_Call {
6893+ return &MockLabelWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
6894+}
6895+
6896+func (_c *MockLabelWidget_IsVisible_Call) Run(run func()) *MockLabelWidget_IsVisible_Call {
6897+ _c.Call.Run(func(args mock.Arguments) {
6898+ run()
6899+ })
6900+ return _c
6901+}
6902+
6903+func (_c *MockLabelWidget_IsVisible_Call) Return(b bool) *MockLabelWidget_IsVisible_Call {
6904+ _c.Call.Return(b)
6905+ return _c
6906+}
6907+
6908+func (_c *MockLabelWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockLabelWidget_IsVisible_Call {
6909+ _c.Call.Return(run)
6910+ return _c
6911+}
6912+
6913+// RemoveCssClass provides a mock function for the type MockLabelWidget
6914+func (_mock *MockLabelWidget) RemoveCssClass(cssClass string) {
6915+ _mock.Called(cssClass)
6916+ return
6917+}
6918+
6919+// MockLabelWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
6920+type MockLabelWidget_RemoveCssClass_Call struct {
6921+ *mock.Call
6922+}
6923+
6924+// RemoveCssClass is a helper method to define mock.On call
6925+// - cssClass string
6926+func (_e *MockLabelWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockLabelWidget_RemoveCssClass_Call {
6927+ return &MockLabelWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
6928+}
6929+
6930+func (_c *MockLabelWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockLabelWidget_RemoveCssClass_Call {
6931+ _c.Call.Run(func(args mock.Arguments) {
6932+ var arg0 string
6933+ if args[0] != nil {
6934+ arg0 = args[0].(string)
6935+ }
6936+ run(
6937+ arg0,
6938+ )
6939+ })
6940+ return _c
6941+}
6942+
6943+func (_c *MockLabelWidget_RemoveCssClass_Call) Return() *MockLabelWidget_RemoveCssClass_Call {
6944+ _c.Call.Return()
6945+ return _c
6946+}
6947+
6948+func (_c *MockLabelWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockLabelWidget_RemoveCssClass_Call {
6949+ _c.Run(run)
6950+ return _c
6951+}
6952+
6953+// SetCanFocus provides a mock function for the type MockLabelWidget
6954+func (_mock *MockLabelWidget) SetCanFocus(canFocus bool) {
6955+ _mock.Called(canFocus)
6956+ return
6957+}
6958+
6959+// MockLabelWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
6960+type MockLabelWidget_SetCanFocus_Call struct {
6961+ *mock.Call
6962+}
6963+
6964+// SetCanFocus is a helper method to define mock.On call
6965+// - canFocus bool
6966+func (_e *MockLabelWidget_Expecter) SetCanFocus(canFocus interface{}) *MockLabelWidget_SetCanFocus_Call {
6967+ return &MockLabelWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
6968+}
6969+
6970+func (_c *MockLabelWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockLabelWidget_SetCanFocus_Call {
6971+ _c.Call.Run(func(args mock.Arguments) {
6972+ var arg0 bool
6973+ if args[0] != nil {
6974+ arg0 = args[0].(bool)
6975+ }
6976+ run(
6977+ arg0,
6978+ )
6979+ })
6980+ return _c
6981+}
6982+
6983+func (_c *MockLabelWidget_SetCanFocus_Call) Return() *MockLabelWidget_SetCanFocus_Call {
6984+ _c.Call.Return()
6985+ return _c
6986+}
6987+
6988+func (_c *MockLabelWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockLabelWidget_SetCanFocus_Call {
6989+ _c.Run(run)
6990+ return _c
6991+}
6992+
6993+// SetCanTarget provides a mock function for the type MockLabelWidget
6994+func (_mock *MockLabelWidget) SetCanTarget(canTarget bool) {
6995+ _mock.Called(canTarget)
6996+ return
6997+}
6998+
6999+// MockLabelWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
7000+type MockLabelWidget_SetCanTarget_Call struct {
7001+ *mock.Call
7002+}
7003+
7004+// SetCanTarget is a helper method to define mock.On call
7005+// - canTarget bool
7006+func (_e *MockLabelWidget_Expecter) SetCanTarget(canTarget interface{}) *MockLabelWidget_SetCanTarget_Call {
7007+ return &MockLabelWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
7008+}
7009+
7010+func (_c *MockLabelWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockLabelWidget_SetCanTarget_Call {
7011+ _c.Call.Run(func(args mock.Arguments) {
7012+ var arg0 bool
7013+ if args[0] != nil {
7014+ arg0 = args[0].(bool)
7015+ }
7016+ run(
7017+ arg0,
7018+ )
7019+ })
7020+ return _c
7021+}
7022+
7023+func (_c *MockLabelWidget_SetCanTarget_Call) Return() *MockLabelWidget_SetCanTarget_Call {
7024+ _c.Call.Return()
7025+ return _c
7026+}
7027+
7028+func (_c *MockLabelWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockLabelWidget_SetCanTarget_Call {
7029+ _c.Run(run)
7030+ return _c
7031+}
7032+
7033+// SetEllipsize provides a mock function for the type MockLabelWidget
7034+func (_mock *MockLabelWidget) SetEllipsize(mode layout.EllipsizeMode) {
7035+ _mock.Called(mode)
7036+ return
7037+}
7038+
7039+// MockLabelWidget_SetEllipsize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEllipsize'
7040+type MockLabelWidget_SetEllipsize_Call struct {
7041+ *mock.Call
7042+}
7043+
7044+// SetEllipsize is a helper method to define mock.On call
7045+// - mode layout.EllipsizeMode
7046+func (_e *MockLabelWidget_Expecter) SetEllipsize(mode interface{}) *MockLabelWidget_SetEllipsize_Call {
7047+ return &MockLabelWidget_SetEllipsize_Call{Call: _e.mock.On("SetEllipsize", mode)}
7048+}
7049+
7050+func (_c *MockLabelWidget_SetEllipsize_Call) Run(run func(mode layout.EllipsizeMode)) *MockLabelWidget_SetEllipsize_Call {
7051+ _c.Call.Run(func(args mock.Arguments) {
7052+ var arg0 layout.EllipsizeMode
7053+ if args[0] != nil {
7054+ arg0 = args[0].(layout.EllipsizeMode)
7055+ }
7056+ run(
7057+ arg0,
7058+ )
7059+ })
7060+ return _c
7061+}
7062+
7063+func (_c *MockLabelWidget_SetEllipsize_Call) Return() *MockLabelWidget_SetEllipsize_Call {
7064+ _c.Call.Return()
7065+ return _c
7066+}
7067+
7068+func (_c *MockLabelWidget_SetEllipsize_Call) RunAndReturn(run func(mode layout.EllipsizeMode)) *MockLabelWidget_SetEllipsize_Call {
7069+ _c.Run(run)
7070+ return _c
7071+}
7072+
7073+// SetFocusOnClick provides a mock function for the type MockLabelWidget
7074+func (_mock *MockLabelWidget) SetFocusOnClick(focusOnClick bool) {
7075+ _mock.Called(focusOnClick)
7076+ return
7077+}
7078+
7079+// MockLabelWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
7080+type MockLabelWidget_SetFocusOnClick_Call struct {
7081+ *mock.Call
7082+}
7083+
7084+// SetFocusOnClick is a helper method to define mock.On call
7085+// - focusOnClick bool
7086+func (_e *MockLabelWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockLabelWidget_SetFocusOnClick_Call {
7087+ return &MockLabelWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
7088+}
7089+
7090+func (_c *MockLabelWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockLabelWidget_SetFocusOnClick_Call {
7091+ _c.Call.Run(func(args mock.Arguments) {
7092+ var arg0 bool
7093+ if args[0] != nil {
7094+ arg0 = args[0].(bool)
7095+ }
7096+ run(
7097+ arg0,
7098+ )
7099+ })
7100+ return _c
7101+}
7102+
7103+func (_c *MockLabelWidget_SetFocusOnClick_Call) Return() *MockLabelWidget_SetFocusOnClick_Call {
7104+ _c.Call.Return()
7105+ return _c
7106+}
7107+
7108+func (_c *MockLabelWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockLabelWidget_SetFocusOnClick_Call {
7109+ _c.Run(run)
7110+ return _c
7111+}
7112+
7113+// SetHalign provides a mock function for the type MockLabelWidget
7114+func (_mock *MockLabelWidget) SetHalign(align gtk.Align) {
7115+ _mock.Called(align)
7116+ return
7117+}
7118+
7119+// MockLabelWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
7120+type MockLabelWidget_SetHalign_Call struct {
7121+ *mock.Call
7122+}
7123+
7124+// SetHalign is a helper method to define mock.On call
7125+// - align gtk.Align
7126+func (_e *MockLabelWidget_Expecter) SetHalign(align interface{}) *MockLabelWidget_SetHalign_Call {
7127+ return &MockLabelWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
7128+}
7129+
7130+func (_c *MockLabelWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockLabelWidget_SetHalign_Call {
7131+ _c.Call.Run(func(args mock.Arguments) {
7132+ var arg0 gtk.Align
7133+ if args[0] != nil {
7134+ arg0 = args[0].(gtk.Align)
7135+ }
7136+ run(
7137+ arg0,
7138+ )
7139+ })
7140+ return _c
7141+}
7142+
7143+func (_c *MockLabelWidget_SetHalign_Call) Return() *MockLabelWidget_SetHalign_Call {
7144+ _c.Call.Return()
7145+ return _c
7146+}
7147+
7148+func (_c *MockLabelWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockLabelWidget_SetHalign_Call {
7149+ _c.Run(run)
7150+ return _c
7151+}
7152+
7153+// SetHexpand provides a mock function for the type MockLabelWidget
7154+func (_mock *MockLabelWidget) SetHexpand(expand bool) {
7155+ _mock.Called(expand)
7156+ return
7157+}
7158+
7159+// MockLabelWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
7160+type MockLabelWidget_SetHexpand_Call struct {
7161+ *mock.Call
7162+}
7163+
7164+// SetHexpand is a helper method to define mock.On call
7165+// - expand bool
7166+func (_e *MockLabelWidget_Expecter) SetHexpand(expand interface{}) *MockLabelWidget_SetHexpand_Call {
7167+ return &MockLabelWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
7168+}
7169+
7170+func (_c *MockLabelWidget_SetHexpand_Call) Run(run func(expand bool)) *MockLabelWidget_SetHexpand_Call {
7171+ _c.Call.Run(func(args mock.Arguments) {
7172+ var arg0 bool
7173+ if args[0] != nil {
7174+ arg0 = args[0].(bool)
7175+ }
7176+ run(
7177+ arg0,
7178+ )
7179+ })
7180+ return _c
7181+}
7182+
7183+func (_c *MockLabelWidget_SetHexpand_Call) Return() *MockLabelWidget_SetHexpand_Call {
7184+ _c.Call.Return()
7185+ return _c
7186+}
7187+
7188+func (_c *MockLabelWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockLabelWidget_SetHexpand_Call {
7189+ _c.Run(run)
7190+ return _c
7191+}
7192+
7193+// SetMarkup provides a mock function for the type MockLabelWidget
7194+func (_mock *MockLabelWidget) SetMarkup(markup string) {
7195+ _mock.Called(markup)
7196+ return
7197+}
7198+
7199+// MockLabelWidget_SetMarkup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMarkup'
7200+type MockLabelWidget_SetMarkup_Call struct {
7201+ *mock.Call
7202+}
7203+
7204+// SetMarkup is a helper method to define mock.On call
7205+// - markup string
7206+func (_e *MockLabelWidget_Expecter) SetMarkup(markup interface{}) *MockLabelWidget_SetMarkup_Call {
7207+ return &MockLabelWidget_SetMarkup_Call{Call: _e.mock.On("SetMarkup", markup)}
7208+}
7209+
7210+func (_c *MockLabelWidget_SetMarkup_Call) Run(run func(markup string)) *MockLabelWidget_SetMarkup_Call {
7211+ _c.Call.Run(func(args mock.Arguments) {
7212+ var arg0 string
7213+ if args[0] != nil {
7214+ arg0 = args[0].(string)
7215+ }
7216+ run(
7217+ arg0,
7218+ )
7219+ })
7220+ return _c
7221+}
7222+
7223+func (_c *MockLabelWidget_SetMarkup_Call) Return() *MockLabelWidget_SetMarkup_Call {
7224+ _c.Call.Return()
7225+ return _c
7226+}
7227+
7228+func (_c *MockLabelWidget_SetMarkup_Call) RunAndReturn(run func(markup string)) *MockLabelWidget_SetMarkup_Call {
7229+ _c.Run(run)
7230+ return _c
7231+}
7232+
7233+// SetMaxWidthChars provides a mock function for the type MockLabelWidget
7234+func (_mock *MockLabelWidget) SetMaxWidthChars(nChars int) {
7235+ _mock.Called(nChars)
7236+ return
7237+}
7238+
7239+// MockLabelWidget_SetMaxWidthChars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMaxWidthChars'
7240+type MockLabelWidget_SetMaxWidthChars_Call struct {
7241+ *mock.Call
7242+}
7243+
7244+// SetMaxWidthChars is a helper method to define mock.On call
7245+// - nChars int
7246+func (_e *MockLabelWidget_Expecter) SetMaxWidthChars(nChars interface{}) *MockLabelWidget_SetMaxWidthChars_Call {
7247+ return &MockLabelWidget_SetMaxWidthChars_Call{Call: _e.mock.On("SetMaxWidthChars", nChars)}
7248+}
7249+
7250+func (_c *MockLabelWidget_SetMaxWidthChars_Call) Run(run func(nChars int)) *MockLabelWidget_SetMaxWidthChars_Call {
7251+ _c.Call.Run(func(args mock.Arguments) {
7252+ var arg0 int
7253+ if args[0] != nil {
7254+ arg0 = args[0].(int)
7255+ }
7256+ run(
7257+ arg0,
7258+ )
7259+ })
7260+ return _c
7261+}
7262+
7263+func (_c *MockLabelWidget_SetMaxWidthChars_Call) Return() *MockLabelWidget_SetMaxWidthChars_Call {
7264+ _c.Call.Return()
7265+ return _c
7266+}
7267+
7268+func (_c *MockLabelWidget_SetMaxWidthChars_Call) RunAndReturn(run func(nChars int)) *MockLabelWidget_SetMaxWidthChars_Call {
7269+ _c.Run(run)
7270+ return _c
7271+}
7272+
7273+// SetSizeRequest provides a mock function for the type MockLabelWidget
7274+func (_mock *MockLabelWidget) SetSizeRequest(width int, height int) {
7275+ _mock.Called(width, height)
7276+ return
7277+}
7278+
7279+// MockLabelWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
7280+type MockLabelWidget_SetSizeRequest_Call struct {
7281+ *mock.Call
7282+}
7283+
7284+// SetSizeRequest is a helper method to define mock.On call
7285+// - width int
7286+// - height int
7287+func (_e *MockLabelWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockLabelWidget_SetSizeRequest_Call {
7288+ return &MockLabelWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
7289+}
7290+
7291+func (_c *MockLabelWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockLabelWidget_SetSizeRequest_Call {
7292+ _c.Call.Run(func(args mock.Arguments) {
7293+ var arg0 int
7294+ if args[0] != nil {
7295+ arg0 = args[0].(int)
7296+ }
7297+ var arg1 int
7298+ if args[1] != nil {
7299+ arg1 = args[1].(int)
7300+ }
7301+ run(
7302+ arg0,
7303+ arg1,
7304+ )
7305+ })
7306+ return _c
7307+}
7308+
7309+func (_c *MockLabelWidget_SetSizeRequest_Call) Return() *MockLabelWidget_SetSizeRequest_Call {
7310+ _c.Call.Return()
7311+ return _c
7312+}
7313+
7314+func (_c *MockLabelWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockLabelWidget_SetSizeRequest_Call {
7315+ _c.Run(run)
7316+ return _c
7317+}
7318+
7319+// SetText provides a mock function for the type MockLabelWidget
7320+func (_mock *MockLabelWidget) SetText(text string) {
7321+ _mock.Called(text)
7322+ return
7323+}
7324+
7325+// MockLabelWidget_SetText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetText'
7326+type MockLabelWidget_SetText_Call struct {
7327+ *mock.Call
7328+}
7329+
7330+// SetText is a helper method to define mock.On call
7331+// - text string
7332+func (_e *MockLabelWidget_Expecter) SetText(text interface{}) *MockLabelWidget_SetText_Call {
7333+ return &MockLabelWidget_SetText_Call{Call: _e.mock.On("SetText", text)}
7334+}
7335+
7336+func (_c *MockLabelWidget_SetText_Call) Run(run func(text string)) *MockLabelWidget_SetText_Call {
7337+ _c.Call.Run(func(args mock.Arguments) {
7338+ var arg0 string
7339+ if args[0] != nil {
7340+ arg0 = args[0].(string)
7341+ }
7342+ run(
7343+ arg0,
7344+ )
7345+ })
7346+ return _c
7347+}
7348+
7349+func (_c *MockLabelWidget_SetText_Call) Return() *MockLabelWidget_SetText_Call {
7350+ _c.Call.Return()
7351+ return _c
7352+}
7353+
7354+func (_c *MockLabelWidget_SetText_Call) RunAndReturn(run func(text string)) *MockLabelWidget_SetText_Call {
7355+ _c.Run(run)
7356+ return _c
7357+}
7358+
7359+// SetValign provides a mock function for the type MockLabelWidget
7360+func (_mock *MockLabelWidget) SetValign(align gtk.Align) {
7361+ _mock.Called(align)
7362+ return
7363+}
7364+
7365+// MockLabelWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
7366+type MockLabelWidget_SetValign_Call struct {
7367+ *mock.Call
7368+}
7369+
7370+// SetValign is a helper method to define mock.On call
7371+// - align gtk.Align
7372+func (_e *MockLabelWidget_Expecter) SetValign(align interface{}) *MockLabelWidget_SetValign_Call {
7373+ return &MockLabelWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
7374+}
7375+
7376+func (_c *MockLabelWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockLabelWidget_SetValign_Call {
7377+ _c.Call.Run(func(args mock.Arguments) {
7378+ var arg0 gtk.Align
7379+ if args[0] != nil {
7380+ arg0 = args[0].(gtk.Align)
7381+ }
7382+ run(
7383+ arg0,
7384+ )
7385+ })
7386+ return _c
7387+}
7388+
7389+func (_c *MockLabelWidget_SetValign_Call) Return() *MockLabelWidget_SetValign_Call {
7390+ _c.Call.Return()
7391+ return _c
7392+}
7393+
7394+func (_c *MockLabelWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockLabelWidget_SetValign_Call {
7395+ _c.Run(run)
7396+ return _c
7397+}
7398+
7399+// SetVexpand provides a mock function for the type MockLabelWidget
7400+func (_mock *MockLabelWidget) SetVexpand(expand bool) {
7401+ _mock.Called(expand)
7402+ return
7403+}
7404+
7405+// MockLabelWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
7406+type MockLabelWidget_SetVexpand_Call struct {
7407+ *mock.Call
7408+}
7409+
7410+// SetVexpand is a helper method to define mock.On call
7411+// - expand bool
7412+func (_e *MockLabelWidget_Expecter) SetVexpand(expand interface{}) *MockLabelWidget_SetVexpand_Call {
7413+ return &MockLabelWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
7414+}
7415+
7416+func (_c *MockLabelWidget_SetVexpand_Call) Run(run func(expand bool)) *MockLabelWidget_SetVexpand_Call {
7417+ _c.Call.Run(func(args mock.Arguments) {
7418+ var arg0 bool
7419+ if args[0] != nil {
7420+ arg0 = args[0].(bool)
7421+ }
7422+ run(
7423+ arg0,
7424+ )
7425+ })
7426+ return _c
7427+}
7428+
7429+func (_c *MockLabelWidget_SetVexpand_Call) Return() *MockLabelWidget_SetVexpand_Call {
7430+ _c.Call.Return()
7431+ return _c
7432+}
7433+
7434+func (_c *MockLabelWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockLabelWidget_SetVexpand_Call {
7435+ _c.Run(run)
7436+ return _c
7437+}
7438+
7439+// SetVisible provides a mock function for the type MockLabelWidget
7440+func (_mock *MockLabelWidget) SetVisible(visible bool) {
7441+ _mock.Called(visible)
7442+ return
7443+}
7444+
7445+// MockLabelWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
7446+type MockLabelWidget_SetVisible_Call struct {
7447+ *mock.Call
7448+}
7449+
7450+// SetVisible is a helper method to define mock.On call
7451+// - visible bool
7452+func (_e *MockLabelWidget_Expecter) SetVisible(visible interface{}) *MockLabelWidget_SetVisible_Call {
7453+ return &MockLabelWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
7454+}
7455+
7456+func (_c *MockLabelWidget_SetVisible_Call) Run(run func(visible bool)) *MockLabelWidget_SetVisible_Call {
7457+ _c.Call.Run(func(args mock.Arguments) {
7458+ var arg0 bool
7459+ if args[0] != nil {
7460+ arg0 = args[0].(bool)
7461+ }
7462+ run(
7463+ arg0,
7464+ )
7465+ })
7466+ return _c
7467+}
7468+
7469+func (_c *MockLabelWidget_SetVisible_Call) Return() *MockLabelWidget_SetVisible_Call {
7470+ _c.Call.Return()
7471+ return _c
7472+}
7473+
7474+func (_c *MockLabelWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockLabelWidget_SetVisible_Call {
7475+ _c.Run(run)
7476+ return _c
7477+}
7478+
7479+// SetXalign provides a mock function for the type MockLabelWidget
7480+func (_mock *MockLabelWidget) SetXalign(xalign float32) {
7481+ _mock.Called(xalign)
7482+ return
7483+}
7484+
7485+// MockLabelWidget_SetXalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetXalign'
7486+type MockLabelWidget_SetXalign_Call struct {
7487+ *mock.Call
7488+}
7489+
7490+// SetXalign is a helper method to define mock.On call
7491+// - xalign float32
7492+func (_e *MockLabelWidget_Expecter) SetXalign(xalign interface{}) *MockLabelWidget_SetXalign_Call {
7493+ return &MockLabelWidget_SetXalign_Call{Call: _e.mock.On("SetXalign", xalign)}
7494+}
7495+
7496+func (_c *MockLabelWidget_SetXalign_Call) Run(run func(xalign float32)) *MockLabelWidget_SetXalign_Call {
7497+ _c.Call.Run(func(args mock.Arguments) {
7498+ var arg0 float32
7499+ if args[0] != nil {
7500+ arg0 = args[0].(float32)
7501+ }
7502+ run(
7503+ arg0,
7504+ )
7505+ })
7506+ return _c
7507+}
7508+
7509+func (_c *MockLabelWidget_SetXalign_Call) Return() *MockLabelWidget_SetXalign_Call {
7510+ _c.Call.Return()
7511+ return _c
7512+}
7513+
7514+func (_c *MockLabelWidget_SetXalign_Call) RunAndReturn(run func(xalign float32)) *MockLabelWidget_SetXalign_Call {
7515+ _c.Run(run)
7516+ return _c
7517+}
7518+
7519+// Show provides a mock function for the type MockLabelWidget
7520+func (_mock *MockLabelWidget) Show() {
7521+ _mock.Called()
7522+ return
7523+}
7524+
7525+// MockLabelWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
7526+type MockLabelWidget_Show_Call struct {
7527+ *mock.Call
7528+}
7529+
7530+// Show is a helper method to define mock.On call
7531+func (_e *MockLabelWidget_Expecter) Show() *MockLabelWidget_Show_Call {
7532+ return &MockLabelWidget_Show_Call{Call: _e.mock.On("Show")}
7533+}
7534+
7535+func (_c *MockLabelWidget_Show_Call) Run(run func()) *MockLabelWidget_Show_Call {
7536+ _c.Call.Run(func(args mock.Arguments) {
7537+ run()
7538+ })
7539+ return _c
7540+}
7541+
7542+func (_c *MockLabelWidget_Show_Call) Return() *MockLabelWidget_Show_Call {
7543+ _c.Call.Return()
7544+ return _c
7545+}
7546+
7547+func (_c *MockLabelWidget_Show_Call) RunAndReturn(run func()) *MockLabelWidget_Show_Call {
7548+ _c.Run(run)
7549+ return _c
7550+}
7551+
7552+// Unparent provides a mock function for the type MockLabelWidget
7553+func (_mock *MockLabelWidget) Unparent() {
7554+ _mock.Called()
7555+ return
7556+}
7557+
7558+// MockLabelWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
7559+type MockLabelWidget_Unparent_Call struct {
7560+ *mock.Call
7561+}
7562+
7563+// Unparent is a helper method to define mock.On call
7564+func (_e *MockLabelWidget_Expecter) Unparent() *MockLabelWidget_Unparent_Call {
7565+ return &MockLabelWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
7566+}
7567+
7568+func (_c *MockLabelWidget_Unparent_Call) Run(run func()) *MockLabelWidget_Unparent_Call {
7569+ _c.Call.Run(func(args mock.Arguments) {
7570+ run()
7571+ })
7572+ return _c
7573+}
7574+
7575+func (_c *MockLabelWidget_Unparent_Call) Return() *MockLabelWidget_Unparent_Call {
7576+ _c.Call.Return()
7577+ return _c
7578+}
7579+
7580+func (_c *MockLabelWidget_Unparent_Call) RunAndReturn(run func()) *MockLabelWidget_Unparent_Call {
7581+ _c.Run(run)
7582+ return _c
7583+}
7584+
7585+// 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.
7586+// The first argument is typically a *testing.T value.
7587+func NewMockButtonWidget(t interface {
7588+ mock.TestingT
7589+ Cleanup(func())
7590+}) *MockButtonWidget {
7591+ mock := &MockButtonWidget{}
7592+ mock.Mock.Test(t)
7593+
7594+ t.Cleanup(func() { mock.AssertExpectations(t) })
7595+
7596+ return mock
7597+}
7598+
7599+// MockButtonWidget is an autogenerated mock type for the ButtonWidget type
7600+type MockButtonWidget struct {
7601+ mock.Mock
7602+}
7603+
7604+type MockButtonWidget_Expecter struct {
7605+ mock *mock.Mock
7606+}
7607+
7608+func (_m *MockButtonWidget) EXPECT() *MockButtonWidget_Expecter {
7609+ return &MockButtonWidget_Expecter{mock: &_m.Mock}
7610+}
7611+
7612+// AddController provides a mock function for the type MockButtonWidget
7613+func (_mock *MockButtonWidget) AddController(controller *gtk.EventController) {
7614+ _mock.Called(controller)
7615+ return
7616+}
7617+
7618+// MockButtonWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
7619+type MockButtonWidget_AddController_Call struct {
7620+ *mock.Call
7621+}
7622+
7623+// AddController is a helper method to define mock.On call
7624+// - controller *gtk.EventController
7625+func (_e *MockButtonWidget_Expecter) AddController(controller interface{}) *MockButtonWidget_AddController_Call {
7626+ return &MockButtonWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
7627+}
7628+
7629+func (_c *MockButtonWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockButtonWidget_AddController_Call {
7630+ _c.Call.Run(func(args mock.Arguments) {
7631+ var arg0 *gtk.EventController
7632+ if args[0] != nil {
7633+ arg0 = args[0].(*gtk.EventController)
7634+ }
7635+ run(
7636+ arg0,
7637+ )
7638+ })
7639+ return _c
7640+}
7641+
7642+func (_c *MockButtonWidget_AddController_Call) Return() *MockButtonWidget_AddController_Call {
7643+ _c.Call.Return()
7644+ return _c
7645+}
7646+
7647+func (_c *MockButtonWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockButtonWidget_AddController_Call {
7648+ _c.Run(run)
7649+ return _c
7650+}
7651+
7652+// AddCssClass provides a mock function for the type MockButtonWidget
7653+func (_mock *MockButtonWidget) AddCssClass(cssClass string) {
7654+ _mock.Called(cssClass)
7655+ return
7656+}
7657+
7658+// MockButtonWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
7659+type MockButtonWidget_AddCssClass_Call struct {
7660+ *mock.Call
7661+}
7662+
7663+// AddCssClass is a helper method to define mock.On call
7664+// - cssClass string
7665+func (_e *MockButtonWidget_Expecter) AddCssClass(cssClass interface{}) *MockButtonWidget_AddCssClass_Call {
7666+ return &MockButtonWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
7667+}
7668+
7669+func (_c *MockButtonWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockButtonWidget_AddCssClass_Call {
7670+ _c.Call.Run(func(args mock.Arguments) {
7671+ var arg0 string
7672+ if args[0] != nil {
7673+ arg0 = args[0].(string)
7674+ }
7675+ run(
7676+ arg0,
7677+ )
7678+ })
7679+ return _c
7680+}
7681+
7682+func (_c *MockButtonWidget_AddCssClass_Call) Return() *MockButtonWidget_AddCssClass_Call {
7683+ _c.Call.Return()
7684+ return _c
7685+}
7686+
7687+func (_c *MockButtonWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockButtonWidget_AddCssClass_Call {
7688+ _c.Run(run)
7689+ return _c
7690+}
7691+
7692+// ComputePoint provides a mock function for the type MockButtonWidget
7693+func (_mock *MockButtonWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
7694+ ret := _mock.Called(target)
7695+
7696+ if len(ret) == 0 {
7697+ panic("no return value specified for ComputePoint")
7698+ }
7699+
7700+ var r0 float64
7701+ var r1 float64
7702+ var r2 bool
7703+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
7704+ return returnFunc(target)
7705+ }
7706+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
7707+ r0 = returnFunc(target)
7708+ } else {
7709+ r0 = ret.Get(0).(float64)
7710+ }
7711+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
7712+ r1 = returnFunc(target)
7713+ } else {
7714+ r1 = ret.Get(1).(float64)
7715+ }
7716+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
7717+ r2 = returnFunc(target)
7718+ } else {
7719+ r2 = ret.Get(2).(bool)
7720+ }
7721+ return r0, r1, r2
7722+}
7723+
7724+// MockButtonWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
7725+type MockButtonWidget_ComputePoint_Call struct {
7726+ *mock.Call
7727+}
7728+
7729+// ComputePoint is a helper method to define mock.On call
7730+// - target layout.Widget
7731+func (_e *MockButtonWidget_Expecter) ComputePoint(target interface{}) *MockButtonWidget_ComputePoint_Call {
7732+ return &MockButtonWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
7733+}
7734+
7735+func (_c *MockButtonWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockButtonWidget_ComputePoint_Call {
7736+ _c.Call.Run(func(args mock.Arguments) {
7737+ var arg0 layout.Widget
7738+ if args[0] != nil {
7739+ arg0 = args[0].(layout.Widget)
7740+ }
7741+ run(
7742+ arg0,
7743+ )
7744+ })
7745+ return _c
7746+}
7747+
7748+func (_c *MockButtonWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockButtonWidget_ComputePoint_Call {
7749+ _c.Call.Return(x, y, ok)
7750+ return _c
7751+}
7752+
7753+func (_c *MockButtonWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockButtonWidget_ComputePoint_Call {
7754+ _c.Call.Return(run)
7755+ return _c
7756+}
7757+
7758+// ConnectClicked provides a mock function for the type MockButtonWidget
7759+func (_mock *MockButtonWidget) ConnectClicked(callback func()) uint32 {
7760+ ret := _mock.Called(callback)
7761+
7762+ if len(ret) == 0 {
7763+ panic("no return value specified for ConnectClicked")
7764+ }
7765+
7766+ var r0 uint32
7767+ if returnFunc, ok := ret.Get(0).(func(func()) uint32); ok {
7768+ r0 = returnFunc(callback)
7769+ } else {
7770+ r0 = ret.Get(0).(uint32)
7771+ }
7772+ return r0
7773+}
7774+
7775+// MockButtonWidget_ConnectClicked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectClicked'
7776+type MockButtonWidget_ConnectClicked_Call struct {
7777+ *mock.Call
7778+}
7779+
7780+// ConnectClicked is a helper method to define mock.On call
7781+// - callback func()
7782+func (_e *MockButtonWidget_Expecter) ConnectClicked(callback interface{}) *MockButtonWidget_ConnectClicked_Call {
7783+ return &MockButtonWidget_ConnectClicked_Call{Call: _e.mock.On("ConnectClicked", callback)}
7784+}
7785+
7786+func (_c *MockButtonWidget_ConnectClicked_Call) Run(run func(callback func())) *MockButtonWidget_ConnectClicked_Call {
7787+ _c.Call.Run(func(args mock.Arguments) {
7788+ var arg0 func()
7789+ if args[0] != nil {
7790+ arg0 = args[0].(func())
7791+ }
7792+ run(
7793+ arg0,
7794+ )
7795+ })
7796+ return _c
7797+}
7798+
7799+func (_c *MockButtonWidget_ConnectClicked_Call) Return(v uint32) *MockButtonWidget_ConnectClicked_Call {
7800+ _c.Call.Return(v)
7801+ return _c
7802+}
7803+
7804+func (_c *MockButtonWidget_ConnectClicked_Call) RunAndReturn(run func(callback func()) uint32) *MockButtonWidget_ConnectClicked_Call {
7805+ _c.Call.Return(run)
7806+ return _c
7807+}
7808+
7809+// GetAllocatedHeight provides a mock function for the type MockButtonWidget
7810+func (_mock *MockButtonWidget) GetAllocatedHeight() int {
7811+ ret := _mock.Called()
7812+
7813+ if len(ret) == 0 {
7814+ panic("no return value specified for GetAllocatedHeight")
7815+ }
7816+
7817+ var r0 int
7818+ if returnFunc, ok := ret.Get(0).(func() int); ok {
7819+ r0 = returnFunc()
7820+ } else {
7821+ r0 = ret.Get(0).(int)
7822+ }
7823+ return r0
7824+}
7825+
7826+// MockButtonWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
7827+type MockButtonWidget_GetAllocatedHeight_Call struct {
7828+ *mock.Call
7829+}
7830+
7831+// GetAllocatedHeight is a helper method to define mock.On call
7832+func (_e *MockButtonWidget_Expecter) GetAllocatedHeight() *MockButtonWidget_GetAllocatedHeight_Call {
7833+ return &MockButtonWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
7834+}
7835+
7836+func (_c *MockButtonWidget_GetAllocatedHeight_Call) Run(run func()) *MockButtonWidget_GetAllocatedHeight_Call {
7837+ _c.Call.Run(func(args mock.Arguments) {
7838+ run()
7839+ })
7840+ return _c
7841+}
7842+
7843+func (_c *MockButtonWidget_GetAllocatedHeight_Call) Return(n int) *MockButtonWidget_GetAllocatedHeight_Call {
7844+ _c.Call.Return(n)
7845+ return _c
7846+}
7847+
7848+func (_c *MockButtonWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockButtonWidget_GetAllocatedHeight_Call {
7849+ _c.Call.Return(run)
7850+ return _c
7851+}
7852+
7853+// GetAllocatedWidth provides a mock function for the type MockButtonWidget
7854+func (_mock *MockButtonWidget) GetAllocatedWidth() int {
7855+ ret := _mock.Called()
7856+
7857+ if len(ret) == 0 {
7858+ panic("no return value specified for GetAllocatedWidth")
7859+ }
7860+
7861+ var r0 int
7862+ if returnFunc, ok := ret.Get(0).(func() int); ok {
7863+ r0 = returnFunc()
7864+ } else {
7865+ r0 = ret.Get(0).(int)
7866+ }
7867+ return r0
7868+}
7869+
7870+// MockButtonWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
7871+type MockButtonWidget_GetAllocatedWidth_Call struct {
7872+ *mock.Call
7873+}
7874+
7875+// GetAllocatedWidth is a helper method to define mock.On call
7876+func (_e *MockButtonWidget_Expecter) GetAllocatedWidth() *MockButtonWidget_GetAllocatedWidth_Call {
7877+ return &MockButtonWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
7878+}
7879+
7880+func (_c *MockButtonWidget_GetAllocatedWidth_Call) Run(run func()) *MockButtonWidget_GetAllocatedWidth_Call {
7881+ _c.Call.Run(func(args mock.Arguments) {
7882+ run()
7883+ })
7884+ return _c
7885+}
7886+
7887+func (_c *MockButtonWidget_GetAllocatedWidth_Call) Return(n int) *MockButtonWidget_GetAllocatedWidth_Call {
7888+ _c.Call.Return(n)
7889+ return _c
7890+}
7891+
7892+func (_c *MockButtonWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockButtonWidget_GetAllocatedWidth_Call {
7893+ _c.Call.Return(run)
7894+ return _c
7895+}
7896+
7897+// GetChild provides a mock function for the type MockButtonWidget
7898+func (_mock *MockButtonWidget) GetChild() layout.Widget {
7899+ ret := _mock.Called()
7900+
7901+ if len(ret) == 0 {
7902+ panic("no return value specified for GetChild")
7903+ }
7904+
7905+ var r0 layout.Widget
7906+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
7907+ r0 = returnFunc()
7908+ } else {
7909+ if ret.Get(0) != nil {
7910+ r0 = ret.Get(0).(layout.Widget)
7911+ }
7912+ }
7913+ return r0
7914+}
7915+
7916+// MockButtonWidget_GetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChild'
7917+type MockButtonWidget_GetChild_Call struct {
7918+ *mock.Call
7919+}
7920+
7921+// GetChild is a helper method to define mock.On call
7922+func (_e *MockButtonWidget_Expecter) GetChild() *MockButtonWidget_GetChild_Call {
7923+ return &MockButtonWidget_GetChild_Call{Call: _e.mock.On("GetChild")}
7924+}
7925+
7926+func (_c *MockButtonWidget_GetChild_Call) Run(run func()) *MockButtonWidget_GetChild_Call {
7927+ _c.Call.Run(func(args mock.Arguments) {
7928+ run()
7929+ })
7930+ return _c
7931+}
7932+
7933+func (_c *MockButtonWidget_GetChild_Call) Return(widget layout.Widget) *MockButtonWidget_GetChild_Call {
7934+ _c.Call.Return(widget)
7935+ return _c
7936+}
7937+
7938+func (_c *MockButtonWidget_GetChild_Call) RunAndReturn(run func() layout.Widget) *MockButtonWidget_GetChild_Call {
7939+ _c.Call.Return(run)
7940+ return _c
7941+}
7942+
7943+// GetHexpand provides a mock function for the type MockButtonWidget
7944+func (_mock *MockButtonWidget) GetHexpand() bool {
7945+ ret := _mock.Called()
7946+
7947+ if len(ret) == 0 {
7948+ panic("no return value specified for GetHexpand")
7949+ }
7950+
7951+ var r0 bool
7952+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
7953+ r0 = returnFunc()
7954+ } else {
7955+ r0 = ret.Get(0).(bool)
7956+ }
7957+ return r0
7958+}
7959+
7960+// MockButtonWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
7961+type MockButtonWidget_GetHexpand_Call struct {
7962+ *mock.Call
7963+}
7964+
7965+// GetHexpand is a helper method to define mock.On call
7966+func (_e *MockButtonWidget_Expecter) GetHexpand() *MockButtonWidget_GetHexpand_Call {
7967+ return &MockButtonWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
7968+}
7969+
7970+func (_c *MockButtonWidget_GetHexpand_Call) Run(run func()) *MockButtonWidget_GetHexpand_Call {
7971+ _c.Call.Run(func(args mock.Arguments) {
7972+ run()
7973+ })
7974+ return _c
7975+}
7976+
7977+func (_c *MockButtonWidget_GetHexpand_Call) Return(b bool) *MockButtonWidget_GetHexpand_Call {
7978+ _c.Call.Return(b)
7979+ return _c
7980+}
7981+
7982+func (_c *MockButtonWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockButtonWidget_GetHexpand_Call {
7983+ _c.Call.Return(run)
7984+ return _c
7985+}
7986+
7987+// GetLabel provides a mock function for the type MockButtonWidget
7988+func (_mock *MockButtonWidget) GetLabel() string {
7989+ ret := _mock.Called()
7990+
7991+ if len(ret) == 0 {
7992+ panic("no return value specified for GetLabel")
7993+ }
7994+
7995+ var r0 string
7996+ if returnFunc, ok := ret.Get(0).(func() string); ok {
7997+ r0 = returnFunc()
7998+ } else {
7999+ r0 = ret.Get(0).(string)
8000+ }
8001+ return r0
8002+}
8003+
8004+// MockButtonWidget_GetLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLabel'
8005+type MockButtonWidget_GetLabel_Call struct {
8006+ *mock.Call
8007+}
8008+
8009+// GetLabel is a helper method to define mock.On call
8010+func (_e *MockButtonWidget_Expecter) GetLabel() *MockButtonWidget_GetLabel_Call {
8011+ return &MockButtonWidget_GetLabel_Call{Call: _e.mock.On("GetLabel")}
8012+}
8013+
8014+func (_c *MockButtonWidget_GetLabel_Call) Run(run func()) *MockButtonWidget_GetLabel_Call {
8015+ _c.Call.Run(func(args mock.Arguments) {
8016+ run()
8017+ })
8018+ return _c
8019+}
8020+
8021+func (_c *MockButtonWidget_GetLabel_Call) Return(s string) *MockButtonWidget_GetLabel_Call {
8022+ _c.Call.Return(s)
8023+ return _c
8024+}
8025+
8026+func (_c *MockButtonWidget_GetLabel_Call) RunAndReturn(run func() string) *MockButtonWidget_GetLabel_Call {
8027+ _c.Call.Return(run)
8028+ return _c
8029+}
8030+
8031+// GetParent provides a mock function for the type MockButtonWidget
8032+func (_mock *MockButtonWidget) GetParent() layout.Widget {
8033+ ret := _mock.Called()
8034+
8035+ if len(ret) == 0 {
8036+ panic("no return value specified for GetParent")
8037+ }
8038+
8039+ var r0 layout.Widget
8040+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
8041+ r0 = returnFunc()
8042+ } else {
8043+ if ret.Get(0) != nil {
8044+ r0 = ret.Get(0).(layout.Widget)
8045+ }
8046+ }
8047+ return r0
8048+}
8049+
8050+// MockButtonWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
8051+type MockButtonWidget_GetParent_Call struct {
8052+ *mock.Call
8053+}
8054+
8055+// GetParent is a helper method to define mock.On call
8056+func (_e *MockButtonWidget_Expecter) GetParent() *MockButtonWidget_GetParent_Call {
8057+ return &MockButtonWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
8058+}
8059+
8060+func (_c *MockButtonWidget_GetParent_Call) Run(run func()) *MockButtonWidget_GetParent_Call {
8061+ _c.Call.Run(func(args mock.Arguments) {
8062+ run()
8063+ })
8064+ return _c
8065+}
8066+
8067+func (_c *MockButtonWidget_GetParent_Call) Return(widget layout.Widget) *MockButtonWidget_GetParent_Call {
8068+ _c.Call.Return(widget)
8069+ return _c
8070+}
8071+
8072+func (_c *MockButtonWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockButtonWidget_GetParent_Call {
8073+ _c.Call.Return(run)
8074+ return _c
8075+}
8076+
8077+// GetVexpand provides a mock function for the type MockButtonWidget
8078+func (_mock *MockButtonWidget) GetVexpand() bool {
8079+ ret := _mock.Called()
8080+
8081+ if len(ret) == 0 {
8082+ panic("no return value specified for GetVexpand")
8083+ }
8084+
8085+ var r0 bool
8086+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
8087+ r0 = returnFunc()
8088+ } else {
8089+ r0 = ret.Get(0).(bool)
8090+ }
8091+ return r0
8092+}
8093+
8094+// MockButtonWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
8095+type MockButtonWidget_GetVexpand_Call struct {
8096+ *mock.Call
8097+}
8098+
8099+// GetVexpand is a helper method to define mock.On call
8100+func (_e *MockButtonWidget_Expecter) GetVexpand() *MockButtonWidget_GetVexpand_Call {
8101+ return &MockButtonWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
8102+}
8103+
8104+func (_c *MockButtonWidget_GetVexpand_Call) Run(run func()) *MockButtonWidget_GetVexpand_Call {
8105+ _c.Call.Run(func(args mock.Arguments) {
8106+ run()
8107+ })
8108+ return _c
8109+}
8110+
8111+func (_c *MockButtonWidget_GetVexpand_Call) Return(b bool) *MockButtonWidget_GetVexpand_Call {
8112+ _c.Call.Return(b)
8113+ return _c
8114+}
8115+
8116+func (_c *MockButtonWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockButtonWidget_GetVexpand_Call {
8117+ _c.Call.Return(run)
8118+ return _c
8119+}
8120+
8121+// GrabFocus provides a mock function for the type MockButtonWidget
8122+func (_mock *MockButtonWidget) GrabFocus() bool {
8123+ ret := _mock.Called()
8124+
8125+ if len(ret) == 0 {
8126+ panic("no return value specified for GrabFocus")
8127+ }
8128+
8129+ var r0 bool
8130+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
8131+ r0 = returnFunc()
8132+ } else {
8133+ r0 = ret.Get(0).(bool)
8134+ }
8135+ return r0
8136+}
8137+
8138+// MockButtonWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
8139+type MockButtonWidget_GrabFocus_Call struct {
8140+ *mock.Call
8141+}
8142+
8143+// GrabFocus is a helper method to define mock.On call
8144+func (_e *MockButtonWidget_Expecter) GrabFocus() *MockButtonWidget_GrabFocus_Call {
8145+ return &MockButtonWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
8146+}
8147+
8148+func (_c *MockButtonWidget_GrabFocus_Call) Run(run func()) *MockButtonWidget_GrabFocus_Call {
8149+ _c.Call.Run(func(args mock.Arguments) {
8150+ run()
8151+ })
8152+ return _c
8153+}
8154+
8155+func (_c *MockButtonWidget_GrabFocus_Call) Return(b bool) *MockButtonWidget_GrabFocus_Call {
8156+ _c.Call.Return(b)
8157+ return _c
8158+}
8159+
8160+func (_c *MockButtonWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockButtonWidget_GrabFocus_Call {
8161+ _c.Call.Return(run)
8162+ return _c
8163+}
8164+
8165+// GtkWidget provides a mock function for the type MockButtonWidget
8166+func (_mock *MockButtonWidget) GtkWidget() *gtk.Widget {
8167+ ret := _mock.Called()
8168+
8169+ if len(ret) == 0 {
8170+ panic("no return value specified for GtkWidget")
8171+ }
8172+
8173+ var r0 *gtk.Widget
8174+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
8175+ r0 = returnFunc()
8176+ } else {
8177+ if ret.Get(0) != nil {
8178+ r0 = ret.Get(0).(*gtk.Widget)
8179+ }
8180+ }
8181+ return r0
8182+}
8183+
8184+// MockButtonWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
8185+type MockButtonWidget_GtkWidget_Call struct {
8186+ *mock.Call
8187+}
8188+
8189+// GtkWidget is a helper method to define mock.On call
8190+func (_e *MockButtonWidget_Expecter) GtkWidget() *MockButtonWidget_GtkWidget_Call {
8191+ return &MockButtonWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
8192+}
8193+
8194+func (_c *MockButtonWidget_GtkWidget_Call) Run(run func()) *MockButtonWidget_GtkWidget_Call {
8195+ _c.Call.Run(func(args mock.Arguments) {
8196+ run()
8197+ })
8198+ return _c
8199+}
8200+
8201+func (_c *MockButtonWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockButtonWidget_GtkWidget_Call {
8202+ _c.Call.Return(widget)
8203+ return _c
8204+}
8205+
8206+func (_c *MockButtonWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockButtonWidget_GtkWidget_Call {
8207+ _c.Call.Return(run)
8208+ return _c
8209+}
8210+
8211+// HasCssClass provides a mock function for the type MockButtonWidget
8212+func (_mock *MockButtonWidget) HasCssClass(cssClass string) bool {
8213+ ret := _mock.Called(cssClass)
8214+
8215+ if len(ret) == 0 {
8216+ panic("no return value specified for HasCssClass")
8217+ }
8218+
8219+ var r0 bool
8220+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
8221+ r0 = returnFunc(cssClass)
8222+ } else {
8223+ r0 = ret.Get(0).(bool)
8224+ }
8225+ return r0
8226+}
8227+
8228+// MockButtonWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
8229+type MockButtonWidget_HasCssClass_Call struct {
8230+ *mock.Call
8231+}
8232+
8233+// HasCssClass is a helper method to define mock.On call
8234+// - cssClass string
8235+func (_e *MockButtonWidget_Expecter) HasCssClass(cssClass interface{}) *MockButtonWidget_HasCssClass_Call {
8236+ return &MockButtonWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
8237+}
8238+
8239+func (_c *MockButtonWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockButtonWidget_HasCssClass_Call {
8240+ _c.Call.Run(func(args mock.Arguments) {
8241+ var arg0 string
8242+ if args[0] != nil {
8243+ arg0 = args[0].(string)
8244+ }
8245+ run(
8246+ arg0,
8247+ )
8248+ })
8249+ return _c
8250+}
8251+
8252+func (_c *MockButtonWidget_HasCssClass_Call) Return(b bool) *MockButtonWidget_HasCssClass_Call {
8253+ _c.Call.Return(b)
8254+ return _c
8255+}
8256+
8257+func (_c *MockButtonWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockButtonWidget_HasCssClass_Call {
8258+ _c.Call.Return(run)
8259+ return _c
8260+}
8261+
8262+// HasFocus provides a mock function for the type MockButtonWidget
8263+func (_mock *MockButtonWidget) HasFocus() bool {
8264+ ret := _mock.Called()
8265+
8266+ if len(ret) == 0 {
8267+ panic("no return value specified for HasFocus")
8268+ }
8269+
8270+ var r0 bool
8271+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
8272+ r0 = returnFunc()
8273+ } else {
8274+ r0 = ret.Get(0).(bool)
8275+ }
8276+ return r0
8277+}
8278+
8279+// MockButtonWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
8280+type MockButtonWidget_HasFocus_Call struct {
8281+ *mock.Call
8282+}
8283+
8284+// HasFocus is a helper method to define mock.On call
8285+func (_e *MockButtonWidget_Expecter) HasFocus() *MockButtonWidget_HasFocus_Call {
8286+ return &MockButtonWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
8287+}
8288+
8289+func (_c *MockButtonWidget_HasFocus_Call) Run(run func()) *MockButtonWidget_HasFocus_Call {
8290+ _c.Call.Run(func(args mock.Arguments) {
8291+ run()
8292+ })
8293+ return _c
8294+}
8295+
8296+func (_c *MockButtonWidget_HasFocus_Call) Return(b bool) *MockButtonWidget_HasFocus_Call {
8297+ _c.Call.Return(b)
8298+ return _c
8299+}
8300+
8301+func (_c *MockButtonWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockButtonWidget_HasFocus_Call {
8302+ _c.Call.Return(run)
8303+ return _c
8304+}
8305+
8306+// Hide provides a mock function for the type MockButtonWidget
8307+func (_mock *MockButtonWidget) Hide() {
8308+ _mock.Called()
8309+ return
8310+}
8311+
8312+// MockButtonWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
8313+type MockButtonWidget_Hide_Call struct {
8314+ *mock.Call
8315+}
8316+
8317+// Hide is a helper method to define mock.On call
8318+func (_e *MockButtonWidget_Expecter) Hide() *MockButtonWidget_Hide_Call {
8319+ return &MockButtonWidget_Hide_Call{Call: _e.mock.On("Hide")}
8320+}
8321+
8322+func (_c *MockButtonWidget_Hide_Call) Run(run func()) *MockButtonWidget_Hide_Call {
8323+ _c.Call.Run(func(args mock.Arguments) {
8324+ run()
8325+ })
8326+ return _c
8327+}
8328+
8329+func (_c *MockButtonWidget_Hide_Call) Return() *MockButtonWidget_Hide_Call {
8330+ _c.Call.Return()
8331+ return _c
8332+}
8333+
8334+func (_c *MockButtonWidget_Hide_Call) RunAndReturn(run func()) *MockButtonWidget_Hide_Call {
8335+ _c.Run(run)
8336+ return _c
8337+}
8338+
8339+// IsVisible provides a mock function for the type MockButtonWidget
8340+func (_mock *MockButtonWidget) IsVisible() bool {
8341+ ret := _mock.Called()
8342+
8343+ if len(ret) == 0 {
8344+ panic("no return value specified for IsVisible")
8345+ }
8346+
8347+ var r0 bool
8348+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
8349+ r0 = returnFunc()
8350+ } else {
8351+ r0 = ret.Get(0).(bool)
8352+ }
8353+ return r0
8354+}
8355+
8356+// MockButtonWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
8357+type MockButtonWidget_IsVisible_Call struct {
8358+ *mock.Call
8359+}
8360+
8361+// IsVisible is a helper method to define mock.On call
8362+func (_e *MockButtonWidget_Expecter) IsVisible() *MockButtonWidget_IsVisible_Call {
8363+ return &MockButtonWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
8364+}
8365+
8366+func (_c *MockButtonWidget_IsVisible_Call) Run(run func()) *MockButtonWidget_IsVisible_Call {
8367+ _c.Call.Run(func(args mock.Arguments) {
8368+ run()
8369+ })
8370+ return _c
8371+}
8372+
8373+func (_c *MockButtonWidget_IsVisible_Call) Return(b bool) *MockButtonWidget_IsVisible_Call {
8374+ _c.Call.Return(b)
8375+ return _c
8376+}
8377+
8378+func (_c *MockButtonWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockButtonWidget_IsVisible_Call {
8379+ _c.Call.Return(run)
8380+ return _c
8381+}
8382+
8383+// RemoveCssClass provides a mock function for the type MockButtonWidget
8384+func (_mock *MockButtonWidget) RemoveCssClass(cssClass string) {
8385+ _mock.Called(cssClass)
8386+ return
8387+}
8388+
8389+// MockButtonWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
8390+type MockButtonWidget_RemoveCssClass_Call struct {
8391+ *mock.Call
8392+}
8393+
8394+// RemoveCssClass is a helper method to define mock.On call
8395+// - cssClass string
8396+func (_e *MockButtonWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockButtonWidget_RemoveCssClass_Call {
8397+ return &MockButtonWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
8398+}
8399+
8400+func (_c *MockButtonWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockButtonWidget_RemoveCssClass_Call {
8401+ _c.Call.Run(func(args mock.Arguments) {
8402+ var arg0 string
8403+ if args[0] != nil {
8404+ arg0 = args[0].(string)
8405+ }
8406+ run(
8407+ arg0,
8408+ )
8409+ })
8410+ return _c
8411+}
8412+
8413+func (_c *MockButtonWidget_RemoveCssClass_Call) Return() *MockButtonWidget_RemoveCssClass_Call {
8414+ _c.Call.Return()
8415+ return _c
8416+}
8417+
8418+func (_c *MockButtonWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockButtonWidget_RemoveCssClass_Call {
8419+ _c.Run(run)
8420+ return _c
8421+}
8422+
8423+// SetCanFocus provides a mock function for the type MockButtonWidget
8424+func (_mock *MockButtonWidget) SetCanFocus(canFocus bool) {
8425+ _mock.Called(canFocus)
8426+ return
8427+}
8428+
8429+// MockButtonWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
8430+type MockButtonWidget_SetCanFocus_Call struct {
8431+ *mock.Call
8432+}
8433+
8434+// SetCanFocus is a helper method to define mock.On call
8435+// - canFocus bool
8436+func (_e *MockButtonWidget_Expecter) SetCanFocus(canFocus interface{}) *MockButtonWidget_SetCanFocus_Call {
8437+ return &MockButtonWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
8438+}
8439+
8440+func (_c *MockButtonWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockButtonWidget_SetCanFocus_Call {
8441+ _c.Call.Run(func(args mock.Arguments) {
8442+ var arg0 bool
8443+ if args[0] != nil {
8444+ arg0 = args[0].(bool)
8445+ }
8446+ run(
8447+ arg0,
8448+ )
8449+ })
8450+ return _c
8451+}
8452+
8453+func (_c *MockButtonWidget_SetCanFocus_Call) Return() *MockButtonWidget_SetCanFocus_Call {
8454+ _c.Call.Return()
8455+ return _c
8456+}
8457+
8458+func (_c *MockButtonWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockButtonWidget_SetCanFocus_Call {
8459+ _c.Run(run)
8460+ return _c
8461+}
8462+
8463+// SetCanTarget provides a mock function for the type MockButtonWidget
8464+func (_mock *MockButtonWidget) SetCanTarget(canTarget bool) {
8465+ _mock.Called(canTarget)
8466+ return
8467+}
8468+
8469+// MockButtonWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
8470+type MockButtonWidget_SetCanTarget_Call struct {
8471+ *mock.Call
8472+}
8473+
8474+// SetCanTarget is a helper method to define mock.On call
8475+// - canTarget bool
8476+func (_e *MockButtonWidget_Expecter) SetCanTarget(canTarget interface{}) *MockButtonWidget_SetCanTarget_Call {
8477+ return &MockButtonWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
8478+}
8479+
8480+func (_c *MockButtonWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockButtonWidget_SetCanTarget_Call {
8481+ _c.Call.Run(func(args mock.Arguments) {
8482+ var arg0 bool
8483+ if args[0] != nil {
8484+ arg0 = args[0].(bool)
8485+ }
8486+ run(
8487+ arg0,
8488+ )
8489+ })
8490+ return _c
8491+}
8492+
8493+func (_c *MockButtonWidget_SetCanTarget_Call) Return() *MockButtonWidget_SetCanTarget_Call {
8494+ _c.Call.Return()
8495+ return _c
8496+}
8497+
8498+func (_c *MockButtonWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockButtonWidget_SetCanTarget_Call {
8499+ _c.Run(run)
8500+ return _c
8501+}
8502+
8503+// SetChild provides a mock function for the type MockButtonWidget
8504+func (_mock *MockButtonWidget) SetChild(child layout.Widget) {
8505+ _mock.Called(child)
8506+ return
8507+}
8508+
8509+// MockButtonWidget_SetChild_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetChild'
8510+type MockButtonWidget_SetChild_Call struct {
8511+ *mock.Call
8512+}
8513+
8514+// SetChild is a helper method to define mock.On call
8515+// - child layout.Widget
8516+func (_e *MockButtonWidget_Expecter) SetChild(child interface{}) *MockButtonWidget_SetChild_Call {
8517+ return &MockButtonWidget_SetChild_Call{Call: _e.mock.On("SetChild", child)}
8518+}
8519+
8520+func (_c *MockButtonWidget_SetChild_Call) Run(run func(child layout.Widget)) *MockButtonWidget_SetChild_Call {
8521+ _c.Call.Run(func(args mock.Arguments) {
8522+ var arg0 layout.Widget
8523+ if args[0] != nil {
8524+ arg0 = args[0].(layout.Widget)
8525+ }
8526+ run(
8527+ arg0,
8528+ )
8529+ })
8530+ return _c
8531+}
8532+
8533+func (_c *MockButtonWidget_SetChild_Call) Return() *MockButtonWidget_SetChild_Call {
8534+ _c.Call.Return()
8535+ return _c
8536+}
8537+
8538+func (_c *MockButtonWidget_SetChild_Call) RunAndReturn(run func(child layout.Widget)) *MockButtonWidget_SetChild_Call {
8539+ _c.Run(run)
8540+ return _c
8541+}
8542+
8543+// SetFocusOnClick provides a mock function for the type MockButtonWidget
8544+func (_mock *MockButtonWidget) SetFocusOnClick(focusOnClick bool) {
8545+ _mock.Called(focusOnClick)
8546+ return
8547+}
8548+
8549+// MockButtonWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
8550+type MockButtonWidget_SetFocusOnClick_Call struct {
8551+ *mock.Call
8552+}
8553+
8554+// SetFocusOnClick is a helper method to define mock.On call
8555+// - focusOnClick bool
8556+func (_e *MockButtonWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockButtonWidget_SetFocusOnClick_Call {
8557+ return &MockButtonWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
8558+}
8559+
8560+func (_c *MockButtonWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockButtonWidget_SetFocusOnClick_Call {
8561+ _c.Call.Run(func(args mock.Arguments) {
8562+ var arg0 bool
8563+ if args[0] != nil {
8564+ arg0 = args[0].(bool)
8565+ }
8566+ run(
8567+ arg0,
8568+ )
8569+ })
8570+ return _c
8571+}
8572+
8573+func (_c *MockButtonWidget_SetFocusOnClick_Call) Return() *MockButtonWidget_SetFocusOnClick_Call {
8574+ _c.Call.Return()
8575+ return _c
8576+}
8577+
8578+func (_c *MockButtonWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockButtonWidget_SetFocusOnClick_Call {
8579+ _c.Run(run)
8580+ return _c
8581+}
8582+
8583+// SetHalign provides a mock function for the type MockButtonWidget
8584+func (_mock *MockButtonWidget) SetHalign(align gtk.Align) {
8585+ _mock.Called(align)
8586+ return
8587+}
8588+
8589+// MockButtonWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
8590+type MockButtonWidget_SetHalign_Call struct {
8591+ *mock.Call
8592+}
8593+
8594+// SetHalign is a helper method to define mock.On call
8595+// - align gtk.Align
8596+func (_e *MockButtonWidget_Expecter) SetHalign(align interface{}) *MockButtonWidget_SetHalign_Call {
8597+ return &MockButtonWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
8598+}
8599+
8600+func (_c *MockButtonWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockButtonWidget_SetHalign_Call {
8601+ _c.Call.Run(func(args mock.Arguments) {
8602+ var arg0 gtk.Align
8603+ if args[0] != nil {
8604+ arg0 = args[0].(gtk.Align)
8605+ }
8606+ run(
8607+ arg0,
8608+ )
8609+ })
8610+ return _c
8611+}
8612+
8613+func (_c *MockButtonWidget_SetHalign_Call) Return() *MockButtonWidget_SetHalign_Call {
8614+ _c.Call.Return()
8615+ return _c
8616+}
8617+
8618+func (_c *MockButtonWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockButtonWidget_SetHalign_Call {
8619+ _c.Run(run)
8620+ return _c
8621+}
8622+
8623+// SetHexpand provides a mock function for the type MockButtonWidget
8624+func (_mock *MockButtonWidget) SetHexpand(expand bool) {
8625+ _mock.Called(expand)
8626+ return
8627+}
8628+
8629+// MockButtonWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
8630+type MockButtonWidget_SetHexpand_Call struct {
8631+ *mock.Call
8632+}
8633+
8634+// SetHexpand is a helper method to define mock.On call
8635+// - expand bool
8636+func (_e *MockButtonWidget_Expecter) SetHexpand(expand interface{}) *MockButtonWidget_SetHexpand_Call {
8637+ return &MockButtonWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
8638+}
8639+
8640+func (_c *MockButtonWidget_SetHexpand_Call) Run(run func(expand bool)) *MockButtonWidget_SetHexpand_Call {
8641+ _c.Call.Run(func(args mock.Arguments) {
8642+ var arg0 bool
8643+ if args[0] != nil {
8644+ arg0 = args[0].(bool)
8645+ }
8646+ run(
8647+ arg0,
8648+ )
8649+ })
8650+ return _c
8651+}
8652+
8653+func (_c *MockButtonWidget_SetHexpand_Call) Return() *MockButtonWidget_SetHexpand_Call {
8654+ _c.Call.Return()
8655+ return _c
8656+}
8657+
8658+func (_c *MockButtonWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockButtonWidget_SetHexpand_Call {
8659+ _c.Run(run)
8660+ return _c
8661+}
8662+
8663+// SetLabel provides a mock function for the type MockButtonWidget
8664+func (_mock *MockButtonWidget) SetLabel(label string) {
8665+ _mock.Called(label)
8666+ return
8667+}
8668+
8669+// MockButtonWidget_SetLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLabel'
8670+type MockButtonWidget_SetLabel_Call struct {
8671+ *mock.Call
8672+}
8673+
8674+// SetLabel is a helper method to define mock.On call
8675+// - label string
8676+func (_e *MockButtonWidget_Expecter) SetLabel(label interface{}) *MockButtonWidget_SetLabel_Call {
8677+ return &MockButtonWidget_SetLabel_Call{Call: _e.mock.On("SetLabel", label)}
8678+}
8679+
8680+func (_c *MockButtonWidget_SetLabel_Call) Run(run func(label string)) *MockButtonWidget_SetLabel_Call {
8681+ _c.Call.Run(func(args mock.Arguments) {
8682+ var arg0 string
8683+ if args[0] != nil {
8684+ arg0 = args[0].(string)
8685+ }
8686+ run(
8687+ arg0,
8688+ )
8689+ })
8690+ return _c
8691+}
8692+
8693+func (_c *MockButtonWidget_SetLabel_Call) Return() *MockButtonWidget_SetLabel_Call {
8694+ _c.Call.Return()
8695+ return _c
8696+}
8697+
8698+func (_c *MockButtonWidget_SetLabel_Call) RunAndReturn(run func(label string)) *MockButtonWidget_SetLabel_Call {
8699+ _c.Run(run)
8700+ return _c
8701+}
8702+
8703+// SetSizeRequest provides a mock function for the type MockButtonWidget
8704+func (_mock *MockButtonWidget) SetSizeRequest(width int, height int) {
8705+ _mock.Called(width, height)
8706+ return
8707+}
8708+
8709+// MockButtonWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
8710+type MockButtonWidget_SetSizeRequest_Call struct {
8711+ *mock.Call
8712+}
8713+
8714+// SetSizeRequest is a helper method to define mock.On call
8715+// - width int
8716+// - height int
8717+func (_e *MockButtonWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockButtonWidget_SetSizeRequest_Call {
8718+ return &MockButtonWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
8719+}
8720+
8721+func (_c *MockButtonWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockButtonWidget_SetSizeRequest_Call {
8722+ _c.Call.Run(func(args mock.Arguments) {
8723+ var arg0 int
8724+ if args[0] != nil {
8725+ arg0 = args[0].(int)
8726+ }
8727+ var arg1 int
8728+ if args[1] != nil {
8729+ arg1 = args[1].(int)
8730+ }
8731+ run(
8732+ arg0,
8733+ arg1,
8734+ )
8735+ })
8736+ return _c
8737+}
8738+
8739+func (_c *MockButtonWidget_SetSizeRequest_Call) Return() *MockButtonWidget_SetSizeRequest_Call {
8740+ _c.Call.Return()
8741+ return _c
8742+}
8743+
8744+func (_c *MockButtonWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockButtonWidget_SetSizeRequest_Call {
8745+ _c.Run(run)
8746+ return _c
8747+}
8748+
8749+// SetValign provides a mock function for the type MockButtonWidget
8750+func (_mock *MockButtonWidget) SetValign(align gtk.Align) {
8751+ _mock.Called(align)
8752+ return
8753+}
8754+
8755+// MockButtonWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
8756+type MockButtonWidget_SetValign_Call struct {
8757+ *mock.Call
8758+}
8759+
8760+// SetValign is a helper method to define mock.On call
8761+// - align gtk.Align
8762+func (_e *MockButtonWidget_Expecter) SetValign(align interface{}) *MockButtonWidget_SetValign_Call {
8763+ return &MockButtonWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
8764+}
8765+
8766+func (_c *MockButtonWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockButtonWidget_SetValign_Call {
8767+ _c.Call.Run(func(args mock.Arguments) {
8768+ var arg0 gtk.Align
8769+ if args[0] != nil {
8770+ arg0 = args[0].(gtk.Align)
8771+ }
8772+ run(
8773+ arg0,
8774+ )
8775+ })
8776+ return _c
8777+}
8778+
8779+func (_c *MockButtonWidget_SetValign_Call) Return() *MockButtonWidget_SetValign_Call {
8780+ _c.Call.Return()
8781+ return _c
8782+}
8783+
8784+func (_c *MockButtonWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockButtonWidget_SetValign_Call {
8785+ _c.Run(run)
8786+ return _c
8787+}
8788+
8789+// SetVexpand provides a mock function for the type MockButtonWidget
8790+func (_mock *MockButtonWidget) SetVexpand(expand bool) {
8791+ _mock.Called(expand)
8792+ return
8793+}
8794+
8795+// MockButtonWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
8796+type MockButtonWidget_SetVexpand_Call struct {
8797+ *mock.Call
8798+}
8799+
8800+// SetVexpand is a helper method to define mock.On call
8801+// - expand bool
8802+func (_e *MockButtonWidget_Expecter) SetVexpand(expand interface{}) *MockButtonWidget_SetVexpand_Call {
8803+ return &MockButtonWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
8804+}
8805+
8806+func (_c *MockButtonWidget_SetVexpand_Call) Run(run func(expand bool)) *MockButtonWidget_SetVexpand_Call {
8807+ _c.Call.Run(func(args mock.Arguments) {
8808+ var arg0 bool
8809+ if args[0] != nil {
8810+ arg0 = args[0].(bool)
8811+ }
8812+ run(
8813+ arg0,
8814+ )
8815+ })
8816+ return _c
8817+}
8818+
8819+func (_c *MockButtonWidget_SetVexpand_Call) Return() *MockButtonWidget_SetVexpand_Call {
8820+ _c.Call.Return()
8821+ return _c
8822+}
8823+
8824+func (_c *MockButtonWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockButtonWidget_SetVexpand_Call {
8825+ _c.Run(run)
8826+ return _c
8827+}
8828+
8829+// SetVisible provides a mock function for the type MockButtonWidget
8830+func (_mock *MockButtonWidget) SetVisible(visible bool) {
8831+ _mock.Called(visible)
8832+ return
8833+}
8834+
8835+// MockButtonWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
8836+type MockButtonWidget_SetVisible_Call struct {
8837+ *mock.Call
8838+}
8839+
8840+// SetVisible is a helper method to define mock.On call
8841+// - visible bool
8842+func (_e *MockButtonWidget_Expecter) SetVisible(visible interface{}) *MockButtonWidget_SetVisible_Call {
8843+ return &MockButtonWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
8844+}
8845+
8846+func (_c *MockButtonWidget_SetVisible_Call) Run(run func(visible bool)) *MockButtonWidget_SetVisible_Call {
8847+ _c.Call.Run(func(args mock.Arguments) {
8848+ var arg0 bool
8849+ if args[0] != nil {
8850+ arg0 = args[0].(bool)
8851+ }
8852+ run(
8853+ arg0,
8854+ )
8855+ })
8856+ return _c
8857+}
8858+
8859+func (_c *MockButtonWidget_SetVisible_Call) Return() *MockButtonWidget_SetVisible_Call {
8860+ _c.Call.Return()
8861+ return _c
8862+}
8863+
8864+func (_c *MockButtonWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockButtonWidget_SetVisible_Call {
8865+ _c.Run(run)
8866+ return _c
8867+}
8868+
8869+// Show provides a mock function for the type MockButtonWidget
8870+func (_mock *MockButtonWidget) Show() {
8871+ _mock.Called()
8872+ return
8873+}
8874+
8875+// MockButtonWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
8876+type MockButtonWidget_Show_Call struct {
8877+ *mock.Call
8878+}
8879+
8880+// Show is a helper method to define mock.On call
8881+func (_e *MockButtonWidget_Expecter) Show() *MockButtonWidget_Show_Call {
8882+ return &MockButtonWidget_Show_Call{Call: _e.mock.On("Show")}
8883+}
8884+
8885+func (_c *MockButtonWidget_Show_Call) Run(run func()) *MockButtonWidget_Show_Call {
8886+ _c.Call.Run(func(args mock.Arguments) {
8887+ run()
8888+ })
8889+ return _c
8890+}
8891+
8892+func (_c *MockButtonWidget_Show_Call) Return() *MockButtonWidget_Show_Call {
8893+ _c.Call.Return()
8894+ return _c
8895+}
8896+
8897+func (_c *MockButtonWidget_Show_Call) RunAndReturn(run func()) *MockButtonWidget_Show_Call {
8898+ _c.Run(run)
8899+ return _c
8900+}
8901+
8902+// Unparent provides a mock function for the type MockButtonWidget
8903+func (_mock *MockButtonWidget) Unparent() {
8904+ _mock.Called()
8905+ return
8906+}
8907+
8908+// MockButtonWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
8909+type MockButtonWidget_Unparent_Call struct {
8910+ *mock.Call
8911+}
8912+
8913+// Unparent is a helper method to define mock.On call
8914+func (_e *MockButtonWidget_Expecter) Unparent() *MockButtonWidget_Unparent_Call {
8915+ return &MockButtonWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
8916+}
8917+
8918+func (_c *MockButtonWidget_Unparent_Call) Run(run func()) *MockButtonWidget_Unparent_Call {
8919+ _c.Call.Run(func(args mock.Arguments) {
8920+ run()
8921+ })
8922+ return _c
8923+}
8924+
8925+func (_c *MockButtonWidget_Unparent_Call) Return() *MockButtonWidget_Unparent_Call {
8926+ _c.Call.Return()
8927+ return _c
8928+}
8929+
8930+func (_c *MockButtonWidget_Unparent_Call) RunAndReturn(run func()) *MockButtonWidget_Unparent_Call {
8931+ _c.Run(run)
8932+ return _c
8933+}
8934+
8935+// 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.
8936+// The first argument is typically a *testing.T value.
8937+func NewMockImageWidget(t interface {
8938+ mock.TestingT
8939+ Cleanup(func())
8940+}) *MockImageWidget {
8941+ mock := &MockImageWidget{}
8942+ mock.Mock.Test(t)
8943+
8944+ t.Cleanup(func() { mock.AssertExpectations(t) })
8945+
8946+ return mock
8947+}
8948+
8949+// MockImageWidget is an autogenerated mock type for the ImageWidget type
8950+type MockImageWidget struct {
8951+ mock.Mock
8952+}
8953+
8954+type MockImageWidget_Expecter struct {
8955+ mock *mock.Mock
8956+}
8957+
8958+func (_m *MockImageWidget) EXPECT() *MockImageWidget_Expecter {
8959+ return &MockImageWidget_Expecter{mock: &_m.Mock}
8960+}
8961+
8962+// AddController provides a mock function for the type MockImageWidget
8963+func (_mock *MockImageWidget) AddController(controller *gtk.EventController) {
8964+ _mock.Called(controller)
8965+ return
8966+}
8967+
8968+// MockImageWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
8969+type MockImageWidget_AddController_Call struct {
8970+ *mock.Call
8971+}
8972+
8973+// AddController is a helper method to define mock.On call
8974+// - controller *gtk.EventController
8975+func (_e *MockImageWidget_Expecter) AddController(controller interface{}) *MockImageWidget_AddController_Call {
8976+ return &MockImageWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
8977+}
8978+
8979+func (_c *MockImageWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockImageWidget_AddController_Call {
8980+ _c.Call.Run(func(args mock.Arguments) {
8981+ var arg0 *gtk.EventController
8982+ if args[0] != nil {
8983+ arg0 = args[0].(*gtk.EventController)
8984+ }
8985+ run(
8986+ arg0,
8987+ )
8988+ })
8989+ return _c
8990+}
8991+
8992+func (_c *MockImageWidget_AddController_Call) Return() *MockImageWidget_AddController_Call {
8993+ _c.Call.Return()
8994+ return _c
8995+}
8996+
8997+func (_c *MockImageWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockImageWidget_AddController_Call {
8998+ _c.Run(run)
8999+ return _c
9000+}
9001+
9002+// AddCssClass provides a mock function for the type MockImageWidget
9003+func (_mock *MockImageWidget) AddCssClass(cssClass string) {
9004+ _mock.Called(cssClass)
9005+ return
9006+}
9007+
9008+// MockImageWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
9009+type MockImageWidget_AddCssClass_Call struct {
9010+ *mock.Call
9011+}
9012+
9013+// AddCssClass is a helper method to define mock.On call
9014+// - cssClass string
9015+func (_e *MockImageWidget_Expecter) AddCssClass(cssClass interface{}) *MockImageWidget_AddCssClass_Call {
9016+ return &MockImageWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
9017+}
9018+
9019+func (_c *MockImageWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockImageWidget_AddCssClass_Call {
9020+ _c.Call.Run(func(args mock.Arguments) {
9021+ var arg0 string
9022+ if args[0] != nil {
9023+ arg0 = args[0].(string)
9024+ }
9025+ run(
9026+ arg0,
9027+ )
9028+ })
9029+ return _c
9030+}
9031+
9032+func (_c *MockImageWidget_AddCssClass_Call) Return() *MockImageWidget_AddCssClass_Call {
9033+ _c.Call.Return()
9034+ return _c
9035+}
9036+
9037+func (_c *MockImageWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockImageWidget_AddCssClass_Call {
9038+ _c.Run(run)
9039+ return _c
9040+}
9041+
9042+// Clear provides a mock function for the type MockImageWidget
9043+func (_mock *MockImageWidget) Clear() {
9044+ _mock.Called()
9045+ return
9046+}
9047+
9048+// MockImageWidget_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
9049+type MockImageWidget_Clear_Call struct {
9050+ *mock.Call
9051+}
9052+
9053+// Clear is a helper method to define mock.On call
9054+func (_e *MockImageWidget_Expecter) Clear() *MockImageWidget_Clear_Call {
9055+ return &MockImageWidget_Clear_Call{Call: _e.mock.On("Clear")}
9056+}
9057+
9058+func (_c *MockImageWidget_Clear_Call) Run(run func()) *MockImageWidget_Clear_Call {
9059+ _c.Call.Run(func(args mock.Arguments) {
9060+ run()
9061+ })
9062+ return _c
9063+}
9064+
9065+func (_c *MockImageWidget_Clear_Call) Return() *MockImageWidget_Clear_Call {
9066+ _c.Call.Return()
9067+ return _c
9068+}
9069+
9070+func (_c *MockImageWidget_Clear_Call) RunAndReturn(run func()) *MockImageWidget_Clear_Call {
9071+ _c.Run(run)
9072+ return _c
9073+}
9074+
9075+// ComputePoint provides a mock function for the type MockImageWidget
9076+func (_mock *MockImageWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
9077+ ret := _mock.Called(target)
9078+
9079+ if len(ret) == 0 {
9080+ panic("no return value specified for ComputePoint")
9081+ }
9082+
9083+ var r0 float64
9084+ var r1 float64
9085+ var r2 bool
9086+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
9087+ return returnFunc(target)
9088+ }
9089+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
9090+ r0 = returnFunc(target)
9091+ } else {
9092+ r0 = ret.Get(0).(float64)
9093+ }
9094+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
9095+ r1 = returnFunc(target)
9096+ } else {
9097+ r1 = ret.Get(1).(float64)
9098+ }
9099+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
9100+ r2 = returnFunc(target)
9101+ } else {
9102+ r2 = ret.Get(2).(bool)
9103+ }
9104+ return r0, r1, r2
9105+}
9106+
9107+// MockImageWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
9108+type MockImageWidget_ComputePoint_Call struct {
9109+ *mock.Call
9110+}
9111+
9112+// ComputePoint is a helper method to define mock.On call
9113+// - target layout.Widget
9114+func (_e *MockImageWidget_Expecter) ComputePoint(target interface{}) *MockImageWidget_ComputePoint_Call {
9115+ return &MockImageWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
9116+}
9117+
9118+func (_c *MockImageWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockImageWidget_ComputePoint_Call {
9119+ _c.Call.Run(func(args mock.Arguments) {
9120+ var arg0 layout.Widget
9121+ if args[0] != nil {
9122+ arg0 = args[0].(layout.Widget)
9123+ }
9124+ run(
9125+ arg0,
9126+ )
9127+ })
9128+ return _c
9129+}
9130+
9131+func (_c *MockImageWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockImageWidget_ComputePoint_Call {
9132+ _c.Call.Return(x, y, ok)
9133+ return _c
9134+}
9135+
9136+func (_c *MockImageWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockImageWidget_ComputePoint_Call {
9137+ _c.Call.Return(run)
9138+ return _c
9139+}
9140+
9141+// GetAllocatedHeight provides a mock function for the type MockImageWidget
9142+func (_mock *MockImageWidget) GetAllocatedHeight() int {
9143+ ret := _mock.Called()
9144+
9145+ if len(ret) == 0 {
9146+ panic("no return value specified for GetAllocatedHeight")
9147+ }
9148+
9149+ var r0 int
9150+ if returnFunc, ok := ret.Get(0).(func() int); ok {
9151+ r0 = returnFunc()
9152+ } else {
9153+ r0 = ret.Get(0).(int)
9154+ }
9155+ return r0
9156+}
9157+
9158+// MockImageWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
9159+type MockImageWidget_GetAllocatedHeight_Call struct {
9160+ *mock.Call
9161+}
9162+
9163+// GetAllocatedHeight is a helper method to define mock.On call
9164+func (_e *MockImageWidget_Expecter) GetAllocatedHeight() *MockImageWidget_GetAllocatedHeight_Call {
9165+ return &MockImageWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
9166+}
9167+
9168+func (_c *MockImageWidget_GetAllocatedHeight_Call) Run(run func()) *MockImageWidget_GetAllocatedHeight_Call {
9169+ _c.Call.Run(func(args mock.Arguments) {
9170+ run()
9171+ })
9172+ return _c
9173+}
9174+
9175+func (_c *MockImageWidget_GetAllocatedHeight_Call) Return(n int) *MockImageWidget_GetAllocatedHeight_Call {
9176+ _c.Call.Return(n)
9177+ return _c
9178+}
9179+
9180+func (_c *MockImageWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockImageWidget_GetAllocatedHeight_Call {
9181+ _c.Call.Return(run)
9182+ return _c
9183+}
9184+
9185+// GetAllocatedWidth provides a mock function for the type MockImageWidget
9186+func (_mock *MockImageWidget) GetAllocatedWidth() int {
9187+ ret := _mock.Called()
9188+
9189+ if len(ret) == 0 {
9190+ panic("no return value specified for GetAllocatedWidth")
9191+ }
9192+
9193+ var r0 int
9194+ if returnFunc, ok := ret.Get(0).(func() int); ok {
9195+ r0 = returnFunc()
9196+ } else {
9197+ r0 = ret.Get(0).(int)
9198+ }
9199+ return r0
9200+}
9201+
9202+// MockImageWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
9203+type MockImageWidget_GetAllocatedWidth_Call struct {
9204+ *mock.Call
9205+}
9206+
9207+// GetAllocatedWidth is a helper method to define mock.On call
9208+func (_e *MockImageWidget_Expecter) GetAllocatedWidth() *MockImageWidget_GetAllocatedWidth_Call {
9209+ return &MockImageWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
9210+}
9211+
9212+func (_c *MockImageWidget_GetAllocatedWidth_Call) Run(run func()) *MockImageWidget_GetAllocatedWidth_Call {
9213+ _c.Call.Run(func(args mock.Arguments) {
9214+ run()
9215+ })
9216+ return _c
9217+}
9218+
9219+func (_c *MockImageWidget_GetAllocatedWidth_Call) Return(n int) *MockImageWidget_GetAllocatedWidth_Call {
9220+ _c.Call.Return(n)
9221+ return _c
9222+}
9223+
9224+func (_c *MockImageWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockImageWidget_GetAllocatedWidth_Call {
9225+ _c.Call.Return(run)
9226+ return _c
9227+}
9228+
9229+// GetHexpand provides a mock function for the type MockImageWidget
9230+func (_mock *MockImageWidget) GetHexpand() bool {
9231+ ret := _mock.Called()
9232+
9233+ if len(ret) == 0 {
9234+ panic("no return value specified for GetHexpand")
9235+ }
9236+
9237+ var r0 bool
9238+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
9239+ r0 = returnFunc()
9240+ } else {
9241+ r0 = ret.Get(0).(bool)
9242+ }
9243+ return r0
9244+}
9245+
9246+// MockImageWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
9247+type MockImageWidget_GetHexpand_Call struct {
9248+ *mock.Call
9249+}
9250+
9251+// GetHexpand is a helper method to define mock.On call
9252+func (_e *MockImageWidget_Expecter) GetHexpand() *MockImageWidget_GetHexpand_Call {
9253+ return &MockImageWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
9254+}
9255+
9256+func (_c *MockImageWidget_GetHexpand_Call) Run(run func()) *MockImageWidget_GetHexpand_Call {
9257+ _c.Call.Run(func(args mock.Arguments) {
9258+ run()
9259+ })
9260+ return _c
9261+}
9262+
9263+func (_c *MockImageWidget_GetHexpand_Call) Return(b bool) *MockImageWidget_GetHexpand_Call {
9264+ _c.Call.Return(b)
9265+ return _c
9266+}
9267+
9268+func (_c *MockImageWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockImageWidget_GetHexpand_Call {
9269+ _c.Call.Return(run)
9270+ return _c
9271+}
9272+
9273+// GetParent provides a mock function for the type MockImageWidget
9274+func (_mock *MockImageWidget) GetParent() layout.Widget {
9275+ ret := _mock.Called()
9276+
9277+ if len(ret) == 0 {
9278+ panic("no return value specified for GetParent")
9279+ }
9280+
9281+ var r0 layout.Widget
9282+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
9283+ r0 = returnFunc()
9284+ } else {
9285+ if ret.Get(0) != nil {
9286+ r0 = ret.Get(0).(layout.Widget)
9287+ }
9288+ }
9289+ return r0
9290+}
9291+
9292+// MockImageWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
9293+type MockImageWidget_GetParent_Call struct {
9294+ *mock.Call
9295+}
9296+
9297+// GetParent is a helper method to define mock.On call
9298+func (_e *MockImageWidget_Expecter) GetParent() *MockImageWidget_GetParent_Call {
9299+ return &MockImageWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
9300+}
9301+
9302+func (_c *MockImageWidget_GetParent_Call) Run(run func()) *MockImageWidget_GetParent_Call {
9303+ _c.Call.Run(func(args mock.Arguments) {
9304+ run()
9305+ })
9306+ return _c
9307+}
9308+
9309+func (_c *MockImageWidget_GetParent_Call) Return(widget layout.Widget) *MockImageWidget_GetParent_Call {
9310+ _c.Call.Return(widget)
9311+ return _c
9312+}
9313+
9314+func (_c *MockImageWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockImageWidget_GetParent_Call {
9315+ _c.Call.Return(run)
9316+ return _c
9317+}
9318+
9319+// GetVexpand provides a mock function for the type MockImageWidget
9320+func (_mock *MockImageWidget) GetVexpand() bool {
9321+ ret := _mock.Called()
9322+
9323+ if len(ret) == 0 {
9324+ panic("no return value specified for GetVexpand")
9325+ }
9326+
9327+ var r0 bool
9328+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
9329+ r0 = returnFunc()
9330+ } else {
9331+ r0 = ret.Get(0).(bool)
9332+ }
9333+ return r0
9334+}
9335+
9336+// MockImageWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
9337+type MockImageWidget_GetVexpand_Call struct {
9338+ *mock.Call
9339+}
9340+
9341+// GetVexpand is a helper method to define mock.On call
9342+func (_e *MockImageWidget_Expecter) GetVexpand() *MockImageWidget_GetVexpand_Call {
9343+ return &MockImageWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
9344+}
9345+
9346+func (_c *MockImageWidget_GetVexpand_Call) Run(run func()) *MockImageWidget_GetVexpand_Call {
9347+ _c.Call.Run(func(args mock.Arguments) {
9348+ run()
9349+ })
9350+ return _c
9351+}
9352+
9353+func (_c *MockImageWidget_GetVexpand_Call) Return(b bool) *MockImageWidget_GetVexpand_Call {
9354+ _c.Call.Return(b)
9355+ return _c
9356+}
9357+
9358+func (_c *MockImageWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockImageWidget_GetVexpand_Call {
9359+ _c.Call.Return(run)
9360+ return _c
9361+}
9362+
9363+// GrabFocus provides a mock function for the type MockImageWidget
9364+func (_mock *MockImageWidget) GrabFocus() bool {
9365+ ret := _mock.Called()
9366+
9367+ if len(ret) == 0 {
9368+ panic("no return value specified for GrabFocus")
9369+ }
9370+
9371+ var r0 bool
9372+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
9373+ r0 = returnFunc()
9374+ } else {
9375+ r0 = ret.Get(0).(bool)
9376+ }
9377+ return r0
9378+}
9379+
9380+// MockImageWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
9381+type MockImageWidget_GrabFocus_Call struct {
9382+ *mock.Call
9383+}
9384+
9385+// GrabFocus is a helper method to define mock.On call
9386+func (_e *MockImageWidget_Expecter) GrabFocus() *MockImageWidget_GrabFocus_Call {
9387+ return &MockImageWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
9388+}
9389+
9390+func (_c *MockImageWidget_GrabFocus_Call) Run(run func()) *MockImageWidget_GrabFocus_Call {
9391+ _c.Call.Run(func(args mock.Arguments) {
9392+ run()
9393+ })
9394+ return _c
9395+}
9396+
9397+func (_c *MockImageWidget_GrabFocus_Call) Return(b bool) *MockImageWidget_GrabFocus_Call {
9398+ _c.Call.Return(b)
9399+ return _c
9400+}
9401+
9402+func (_c *MockImageWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockImageWidget_GrabFocus_Call {
9403+ _c.Call.Return(run)
9404+ return _c
9405+}
9406+
9407+// GtkWidget provides a mock function for the type MockImageWidget
9408+func (_mock *MockImageWidget) GtkWidget() *gtk.Widget {
9409+ ret := _mock.Called()
9410+
9411+ if len(ret) == 0 {
9412+ panic("no return value specified for GtkWidget")
9413+ }
9414+
9415+ var r0 *gtk.Widget
9416+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
9417+ r0 = returnFunc()
9418+ } else {
9419+ if ret.Get(0) != nil {
9420+ r0 = ret.Get(0).(*gtk.Widget)
9421+ }
9422+ }
9423+ return r0
9424+}
9425+
9426+// MockImageWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
9427+type MockImageWidget_GtkWidget_Call struct {
9428+ *mock.Call
9429+}
9430+
9431+// GtkWidget is a helper method to define mock.On call
9432+func (_e *MockImageWidget_Expecter) GtkWidget() *MockImageWidget_GtkWidget_Call {
9433+ return &MockImageWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
9434+}
9435+
9436+func (_c *MockImageWidget_GtkWidget_Call) Run(run func()) *MockImageWidget_GtkWidget_Call {
9437+ _c.Call.Run(func(args mock.Arguments) {
9438+ run()
9439+ })
9440+ return _c
9441+}
9442+
9443+func (_c *MockImageWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockImageWidget_GtkWidget_Call {
9444+ _c.Call.Return(widget)
9445+ return _c
9446+}
9447+
9448+func (_c *MockImageWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockImageWidget_GtkWidget_Call {
9449+ _c.Call.Return(run)
9450+ return _c
9451+}
9452+
9453+// HasCssClass provides a mock function for the type MockImageWidget
9454+func (_mock *MockImageWidget) HasCssClass(cssClass string) bool {
9455+ ret := _mock.Called(cssClass)
9456+
9457+ if len(ret) == 0 {
9458+ panic("no return value specified for HasCssClass")
9459+ }
9460+
9461+ var r0 bool
9462+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
9463+ r0 = returnFunc(cssClass)
9464+ } else {
9465+ r0 = ret.Get(0).(bool)
9466+ }
9467+ return r0
9468+}
9469+
9470+// MockImageWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
9471+type MockImageWidget_HasCssClass_Call struct {
9472+ *mock.Call
9473+}
9474+
9475+// HasCssClass is a helper method to define mock.On call
9476+// - cssClass string
9477+func (_e *MockImageWidget_Expecter) HasCssClass(cssClass interface{}) *MockImageWidget_HasCssClass_Call {
9478+ return &MockImageWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
9479+}
9480+
9481+func (_c *MockImageWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockImageWidget_HasCssClass_Call {
9482+ _c.Call.Run(func(args mock.Arguments) {
9483+ var arg0 string
9484+ if args[0] != nil {
9485+ arg0 = args[0].(string)
9486+ }
9487+ run(
9488+ arg0,
9489+ )
9490+ })
9491+ return _c
9492+}
9493+
9494+func (_c *MockImageWidget_HasCssClass_Call) Return(b bool) *MockImageWidget_HasCssClass_Call {
9495+ _c.Call.Return(b)
9496+ return _c
9497+}
9498+
9499+func (_c *MockImageWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockImageWidget_HasCssClass_Call {
9500+ _c.Call.Return(run)
9501+ return _c
9502+}
9503+
9504+// HasFocus provides a mock function for the type MockImageWidget
9505+func (_mock *MockImageWidget) HasFocus() bool {
9506+ ret := _mock.Called()
9507+
9508+ if len(ret) == 0 {
9509+ panic("no return value specified for HasFocus")
9510+ }
9511+
9512+ var r0 bool
9513+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
9514+ r0 = returnFunc()
9515+ } else {
9516+ r0 = ret.Get(0).(bool)
9517+ }
9518+ return r0
9519+}
9520+
9521+// MockImageWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
9522+type MockImageWidget_HasFocus_Call struct {
9523+ *mock.Call
9524+}
9525+
9526+// HasFocus is a helper method to define mock.On call
9527+func (_e *MockImageWidget_Expecter) HasFocus() *MockImageWidget_HasFocus_Call {
9528+ return &MockImageWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
9529+}
9530+
9531+func (_c *MockImageWidget_HasFocus_Call) Run(run func()) *MockImageWidget_HasFocus_Call {
9532+ _c.Call.Run(func(args mock.Arguments) {
9533+ run()
9534+ })
9535+ return _c
9536+}
9537+
9538+func (_c *MockImageWidget_HasFocus_Call) Return(b bool) *MockImageWidget_HasFocus_Call {
9539+ _c.Call.Return(b)
9540+ return _c
9541+}
9542+
9543+func (_c *MockImageWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockImageWidget_HasFocus_Call {
9544+ _c.Call.Return(run)
9545+ return _c
9546+}
9547+
9548+// Hide provides a mock function for the type MockImageWidget
9549+func (_mock *MockImageWidget) Hide() {
9550+ _mock.Called()
9551+ return
9552+}
9553+
9554+// MockImageWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
9555+type MockImageWidget_Hide_Call struct {
9556+ *mock.Call
9557+}
9558+
9559+// Hide is a helper method to define mock.On call
9560+func (_e *MockImageWidget_Expecter) Hide() *MockImageWidget_Hide_Call {
9561+ return &MockImageWidget_Hide_Call{Call: _e.mock.On("Hide")}
9562+}
9563+
9564+func (_c *MockImageWidget_Hide_Call) Run(run func()) *MockImageWidget_Hide_Call {
9565+ _c.Call.Run(func(args mock.Arguments) {
9566+ run()
9567+ })
9568+ return _c
9569+}
9570+
9571+func (_c *MockImageWidget_Hide_Call) Return() *MockImageWidget_Hide_Call {
9572+ _c.Call.Return()
9573+ return _c
9574+}
9575+
9576+func (_c *MockImageWidget_Hide_Call) RunAndReturn(run func()) *MockImageWidget_Hide_Call {
9577+ _c.Run(run)
9578+ return _c
9579+}
9580+
9581+// IsVisible provides a mock function for the type MockImageWidget
9582+func (_mock *MockImageWidget) IsVisible() bool {
9583+ ret := _mock.Called()
9584+
9585+ if len(ret) == 0 {
9586+ panic("no return value specified for IsVisible")
9587+ }
9588+
9589+ var r0 bool
9590+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
9591+ r0 = returnFunc()
9592+ } else {
9593+ r0 = ret.Get(0).(bool)
9594+ }
9595+ return r0
9596+}
9597+
9598+// MockImageWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
9599+type MockImageWidget_IsVisible_Call struct {
9600+ *mock.Call
9601+}
9602+
9603+// IsVisible is a helper method to define mock.On call
9604+func (_e *MockImageWidget_Expecter) IsVisible() *MockImageWidget_IsVisible_Call {
9605+ return &MockImageWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
9606+}
9607+
9608+func (_c *MockImageWidget_IsVisible_Call) Run(run func()) *MockImageWidget_IsVisible_Call {
9609+ _c.Call.Run(func(args mock.Arguments) {
9610+ run()
9611+ })
9612+ return _c
9613+}
9614+
9615+func (_c *MockImageWidget_IsVisible_Call) Return(b bool) *MockImageWidget_IsVisible_Call {
9616+ _c.Call.Return(b)
9617+ return _c
9618+}
9619+
9620+func (_c *MockImageWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockImageWidget_IsVisible_Call {
9621+ _c.Call.Return(run)
9622+ return _c
9623+}
9624+
9625+// RemoveCssClass provides a mock function for the type MockImageWidget
9626+func (_mock *MockImageWidget) RemoveCssClass(cssClass string) {
9627+ _mock.Called(cssClass)
9628+ return
9629+}
9630+
9631+// MockImageWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
9632+type MockImageWidget_RemoveCssClass_Call struct {
9633+ *mock.Call
9634+}
9635+
9636+// RemoveCssClass is a helper method to define mock.On call
9637+// - cssClass string
9638+func (_e *MockImageWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockImageWidget_RemoveCssClass_Call {
9639+ return &MockImageWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
9640+}
9641+
9642+func (_c *MockImageWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockImageWidget_RemoveCssClass_Call {
9643+ _c.Call.Run(func(args mock.Arguments) {
9644+ var arg0 string
9645+ if args[0] != nil {
9646+ arg0 = args[0].(string)
9647+ }
9648+ run(
9649+ arg0,
9650+ )
9651+ })
9652+ return _c
9653+}
9654+
9655+func (_c *MockImageWidget_RemoveCssClass_Call) Return() *MockImageWidget_RemoveCssClass_Call {
9656+ _c.Call.Return()
9657+ return _c
9658+}
9659+
9660+func (_c *MockImageWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockImageWidget_RemoveCssClass_Call {
9661+ _c.Run(run)
9662+ return _c
9663+}
9664+
9665+// SetCanFocus provides a mock function for the type MockImageWidget
9666+func (_mock *MockImageWidget) SetCanFocus(canFocus bool) {
9667+ _mock.Called(canFocus)
9668+ return
9669+}
9670+
9671+// MockImageWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
9672+type MockImageWidget_SetCanFocus_Call struct {
9673+ *mock.Call
9674+}
9675+
9676+// SetCanFocus is a helper method to define mock.On call
9677+// - canFocus bool
9678+func (_e *MockImageWidget_Expecter) SetCanFocus(canFocus interface{}) *MockImageWidget_SetCanFocus_Call {
9679+ return &MockImageWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
9680+}
9681+
9682+func (_c *MockImageWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockImageWidget_SetCanFocus_Call {
9683+ _c.Call.Run(func(args mock.Arguments) {
9684+ var arg0 bool
9685+ if args[0] != nil {
9686+ arg0 = args[0].(bool)
9687+ }
9688+ run(
9689+ arg0,
9690+ )
9691+ })
9692+ return _c
9693+}
9694+
9695+func (_c *MockImageWidget_SetCanFocus_Call) Return() *MockImageWidget_SetCanFocus_Call {
9696+ _c.Call.Return()
9697+ return _c
9698+}
9699+
9700+func (_c *MockImageWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockImageWidget_SetCanFocus_Call {
9701+ _c.Run(run)
9702+ return _c
9703+}
9704+
9705+// SetCanTarget provides a mock function for the type MockImageWidget
9706+func (_mock *MockImageWidget) SetCanTarget(canTarget bool) {
9707+ _mock.Called(canTarget)
9708+ return
9709+}
9710+
9711+// MockImageWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
9712+type MockImageWidget_SetCanTarget_Call struct {
9713+ *mock.Call
9714+}
9715+
9716+// SetCanTarget is a helper method to define mock.On call
9717+// - canTarget bool
9718+func (_e *MockImageWidget_Expecter) SetCanTarget(canTarget interface{}) *MockImageWidget_SetCanTarget_Call {
9719+ return &MockImageWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
9720+}
9721+
9722+func (_c *MockImageWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockImageWidget_SetCanTarget_Call {
9723+ _c.Call.Run(func(args mock.Arguments) {
9724+ var arg0 bool
9725+ if args[0] != nil {
9726+ arg0 = args[0].(bool)
9727+ }
9728+ run(
9729+ arg0,
9730+ )
9731+ })
9732+ return _c
9733+}
9734+
9735+func (_c *MockImageWidget_SetCanTarget_Call) Return() *MockImageWidget_SetCanTarget_Call {
9736+ _c.Call.Return()
9737+ return _c
9738+}
9739+
9740+func (_c *MockImageWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockImageWidget_SetCanTarget_Call {
9741+ _c.Run(run)
9742+ return _c
9743+}
9744+
9745+// SetFocusOnClick provides a mock function for the type MockImageWidget
9746+func (_mock *MockImageWidget) SetFocusOnClick(focusOnClick bool) {
9747+ _mock.Called(focusOnClick)
9748+ return
9749+}
9750+
9751+// MockImageWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
9752+type MockImageWidget_SetFocusOnClick_Call struct {
9753+ *mock.Call
9754+}
9755+
9756+// SetFocusOnClick is a helper method to define mock.On call
9757+// - focusOnClick bool
9758+func (_e *MockImageWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockImageWidget_SetFocusOnClick_Call {
9759+ return &MockImageWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
9760+}
9761+
9762+func (_c *MockImageWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockImageWidget_SetFocusOnClick_Call {
9763+ _c.Call.Run(func(args mock.Arguments) {
9764+ var arg0 bool
9765+ if args[0] != nil {
9766+ arg0 = args[0].(bool)
9767+ }
9768+ run(
9769+ arg0,
9770+ )
9771+ })
9772+ return _c
9773+}
9774+
9775+func (_c *MockImageWidget_SetFocusOnClick_Call) Return() *MockImageWidget_SetFocusOnClick_Call {
9776+ _c.Call.Return()
9777+ return _c
9778+}
9779+
9780+func (_c *MockImageWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockImageWidget_SetFocusOnClick_Call {
9781+ _c.Run(run)
9782+ return _c
9783+}
9784+
9785+// SetFromFile provides a mock function for the type MockImageWidget
9786+func (_mock *MockImageWidget) SetFromFile(filename string) {
9787+ _mock.Called(filename)
9788+ return
9789+}
9790+
9791+// MockImageWidget_SetFromFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFromFile'
9792+type MockImageWidget_SetFromFile_Call struct {
9793+ *mock.Call
9794+}
9795+
9796+// SetFromFile is a helper method to define mock.On call
9797+// - filename string
9798+func (_e *MockImageWidget_Expecter) SetFromFile(filename interface{}) *MockImageWidget_SetFromFile_Call {
9799+ return &MockImageWidget_SetFromFile_Call{Call: _e.mock.On("SetFromFile", filename)}
9800+}
9801+
9802+func (_c *MockImageWidget_SetFromFile_Call) Run(run func(filename string)) *MockImageWidget_SetFromFile_Call {
9803+ _c.Call.Run(func(args mock.Arguments) {
9804+ var arg0 string
9805+ if args[0] != nil {
9806+ arg0 = args[0].(string)
9807+ }
9808+ run(
9809+ arg0,
9810+ )
9811+ })
9812+ return _c
9813+}
9814+
9815+func (_c *MockImageWidget_SetFromFile_Call) Return() *MockImageWidget_SetFromFile_Call {
9816+ _c.Call.Return()
9817+ return _c
9818+}
9819+
9820+func (_c *MockImageWidget_SetFromFile_Call) RunAndReturn(run func(filename string)) *MockImageWidget_SetFromFile_Call {
9821+ _c.Run(run)
9822+ return _c
9823+}
9824+
9825+// SetFromIconName provides a mock function for the type MockImageWidget
9826+func (_mock *MockImageWidget) SetFromIconName(iconName string) {
9827+ _mock.Called(iconName)
9828+ return
9829+}
9830+
9831+// MockImageWidget_SetFromIconName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFromIconName'
9832+type MockImageWidget_SetFromIconName_Call struct {
9833+ *mock.Call
9834+}
9835+
9836+// SetFromIconName is a helper method to define mock.On call
9837+// - iconName string
9838+func (_e *MockImageWidget_Expecter) SetFromIconName(iconName interface{}) *MockImageWidget_SetFromIconName_Call {
9839+ return &MockImageWidget_SetFromIconName_Call{Call: _e.mock.On("SetFromIconName", iconName)}
9840+}
9841+
9842+func (_c *MockImageWidget_SetFromIconName_Call) Run(run func(iconName string)) *MockImageWidget_SetFromIconName_Call {
9843+ _c.Call.Run(func(args mock.Arguments) {
9844+ var arg0 string
9845+ if args[0] != nil {
9846+ arg0 = args[0].(string)
9847+ }
9848+ run(
9849+ arg0,
9850+ )
9851+ })
9852+ return _c
9853+}
9854+
9855+func (_c *MockImageWidget_SetFromIconName_Call) Return() *MockImageWidget_SetFromIconName_Call {
9856+ _c.Call.Return()
9857+ return _c
9858+}
9859+
9860+func (_c *MockImageWidget_SetFromIconName_Call) RunAndReturn(run func(iconName string)) *MockImageWidget_SetFromIconName_Call {
9861+ _c.Run(run)
9862+ return _c
9863+}
9864+
9865+// SetFromPaintable provides a mock function for the type MockImageWidget
9866+func (_mock *MockImageWidget) SetFromPaintable(paintable layout.Paintable) {
9867+ _mock.Called(paintable)
9868+ return
9869+}
9870+
9871+// MockImageWidget_SetFromPaintable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFromPaintable'
9872+type MockImageWidget_SetFromPaintable_Call struct {
9873+ *mock.Call
9874+}
9875+
9876+// SetFromPaintable is a helper method to define mock.On call
9877+// - paintable layout.Paintable
9878+func (_e *MockImageWidget_Expecter) SetFromPaintable(paintable interface{}) *MockImageWidget_SetFromPaintable_Call {
9879+ return &MockImageWidget_SetFromPaintable_Call{Call: _e.mock.On("SetFromPaintable", paintable)}
9880+}
9881+
9882+func (_c *MockImageWidget_SetFromPaintable_Call) Run(run func(paintable layout.Paintable)) *MockImageWidget_SetFromPaintable_Call {
9883+ _c.Call.Run(func(args mock.Arguments) {
9884+ var arg0 layout.Paintable
9885+ if args[0] != nil {
9886+ arg0 = args[0].(layout.Paintable)
9887+ }
9888+ run(
9889+ arg0,
9890+ )
9891+ })
9892+ return _c
9893+}
9894+
9895+func (_c *MockImageWidget_SetFromPaintable_Call) Return() *MockImageWidget_SetFromPaintable_Call {
9896+ _c.Call.Return()
9897+ return _c
9898+}
9899+
9900+func (_c *MockImageWidget_SetFromPaintable_Call) RunAndReturn(run func(paintable layout.Paintable)) *MockImageWidget_SetFromPaintable_Call {
9901+ _c.Run(run)
9902+ return _c
9903+}
9904+
9905+// SetHalign provides a mock function for the type MockImageWidget
9906+func (_mock *MockImageWidget) SetHalign(align gtk.Align) {
9907+ _mock.Called(align)
9908+ return
9909+}
9910+
9911+// MockImageWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
9912+type MockImageWidget_SetHalign_Call struct {
9913+ *mock.Call
9914+}
9915+
9916+// SetHalign is a helper method to define mock.On call
9917+// - align gtk.Align
9918+func (_e *MockImageWidget_Expecter) SetHalign(align interface{}) *MockImageWidget_SetHalign_Call {
9919+ return &MockImageWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
9920+}
9921+
9922+func (_c *MockImageWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockImageWidget_SetHalign_Call {
9923+ _c.Call.Run(func(args mock.Arguments) {
9924+ var arg0 gtk.Align
9925+ if args[0] != nil {
9926+ arg0 = args[0].(gtk.Align)
9927+ }
9928+ run(
9929+ arg0,
9930+ )
9931+ })
9932+ return _c
9933+}
9934+
9935+func (_c *MockImageWidget_SetHalign_Call) Return() *MockImageWidget_SetHalign_Call {
9936+ _c.Call.Return()
9937+ return _c
9938+}
9939+
9940+func (_c *MockImageWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockImageWidget_SetHalign_Call {
9941+ _c.Run(run)
9942+ return _c
9943+}
9944+
9945+// SetHexpand provides a mock function for the type MockImageWidget
9946+func (_mock *MockImageWidget) SetHexpand(expand bool) {
9947+ _mock.Called(expand)
9948+ return
9949+}
9950+
9951+// MockImageWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
9952+type MockImageWidget_SetHexpand_Call struct {
9953+ *mock.Call
9954+}
9955+
9956+// SetHexpand is a helper method to define mock.On call
9957+// - expand bool
9958+func (_e *MockImageWidget_Expecter) SetHexpand(expand interface{}) *MockImageWidget_SetHexpand_Call {
9959+ return &MockImageWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
9960+}
9961+
9962+func (_c *MockImageWidget_SetHexpand_Call) Run(run func(expand bool)) *MockImageWidget_SetHexpand_Call {
9963+ _c.Call.Run(func(args mock.Arguments) {
9964+ var arg0 bool
9965+ if args[0] != nil {
9966+ arg0 = args[0].(bool)
9967+ }
9968+ run(
9969+ arg0,
9970+ )
9971+ })
9972+ return _c
9973+}
9974+
9975+func (_c *MockImageWidget_SetHexpand_Call) Return() *MockImageWidget_SetHexpand_Call {
9976+ _c.Call.Return()
9977+ return _c
9978+}
9979+
9980+func (_c *MockImageWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockImageWidget_SetHexpand_Call {
9981+ _c.Run(run)
9982+ return _c
9983+}
9984+
9985+// SetPixelSize provides a mock function for the type MockImageWidget
9986+func (_mock *MockImageWidget) SetPixelSize(pixelSize int) {
9987+ _mock.Called(pixelSize)
9988+ return
9989+}
9990+
9991+// MockImageWidget_SetPixelSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPixelSize'
9992+type MockImageWidget_SetPixelSize_Call struct {
9993+ *mock.Call
9994+}
9995+
9996+// SetPixelSize is a helper method to define mock.On call
9997+// - pixelSize int
9998+func (_e *MockImageWidget_Expecter) SetPixelSize(pixelSize interface{}) *MockImageWidget_SetPixelSize_Call {
9999+ return &MockImageWidget_SetPixelSize_Call{Call: _e.mock.On("SetPixelSize", pixelSize)}
10000+}
10001+
10002+func (_c *MockImageWidget_SetPixelSize_Call) Run(run func(pixelSize int)) *MockImageWidget_SetPixelSize_Call {
10003+ _c.Call.Run(func(args mock.Arguments) {
10004+ var arg0 int
10005+ if args[0] != nil {
10006+ arg0 = args[0].(int)
10007+ }
10008+ run(
10009+ arg0,
10010+ )
10011+ })
10012+ return _c
10013+}
10014+
10015+func (_c *MockImageWidget_SetPixelSize_Call) Return() *MockImageWidget_SetPixelSize_Call {
10016+ _c.Call.Return()
10017+ return _c
10018+}
10019+
10020+func (_c *MockImageWidget_SetPixelSize_Call) RunAndReturn(run func(pixelSize int)) *MockImageWidget_SetPixelSize_Call {
10021+ _c.Run(run)
10022+ return _c
10023+}
10024+
10025+// SetSizeRequest provides a mock function for the type MockImageWidget
10026+func (_mock *MockImageWidget) SetSizeRequest(width int, height int) {
10027+ _mock.Called(width, height)
10028+ return
10029+}
10030+
10031+// MockImageWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
10032+type MockImageWidget_SetSizeRequest_Call struct {
10033+ *mock.Call
10034+}
10035+
10036+// SetSizeRequest is a helper method to define mock.On call
10037+// - width int
10038+// - height int
10039+func (_e *MockImageWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockImageWidget_SetSizeRequest_Call {
10040+ return &MockImageWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
10041+}
10042+
10043+func (_c *MockImageWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockImageWidget_SetSizeRequest_Call {
10044+ _c.Call.Run(func(args mock.Arguments) {
10045+ var arg0 int
10046+ if args[0] != nil {
10047+ arg0 = args[0].(int)
10048+ }
10049+ var arg1 int
10050+ if args[1] != nil {
10051+ arg1 = args[1].(int)
10052+ }
10053+ run(
10054+ arg0,
10055+ arg1,
10056+ )
10057+ })
10058+ return _c
10059+}
10060+
10061+func (_c *MockImageWidget_SetSizeRequest_Call) Return() *MockImageWidget_SetSizeRequest_Call {
10062+ _c.Call.Return()
10063+ return _c
10064+}
10065+
10066+func (_c *MockImageWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockImageWidget_SetSizeRequest_Call {
10067+ _c.Run(run)
10068+ return _c
10069+}
10070+
10071+// SetValign provides a mock function for the type MockImageWidget
10072+func (_mock *MockImageWidget) SetValign(align gtk.Align) {
10073+ _mock.Called(align)
10074+ return
10075+}
10076+
10077+// MockImageWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
10078+type MockImageWidget_SetValign_Call struct {
10079+ *mock.Call
10080+}
10081+
10082+// SetValign is a helper method to define mock.On call
10083+// - align gtk.Align
10084+func (_e *MockImageWidget_Expecter) SetValign(align interface{}) *MockImageWidget_SetValign_Call {
10085+ return &MockImageWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
10086+}
10087+
10088+func (_c *MockImageWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockImageWidget_SetValign_Call {
10089+ _c.Call.Run(func(args mock.Arguments) {
10090+ var arg0 gtk.Align
10091+ if args[0] != nil {
10092+ arg0 = args[0].(gtk.Align)
10093+ }
10094+ run(
10095+ arg0,
10096+ )
10097+ })
10098+ return _c
10099+}
10100+
10101+func (_c *MockImageWidget_SetValign_Call) Return() *MockImageWidget_SetValign_Call {
10102+ _c.Call.Return()
10103+ return _c
10104+}
10105+
10106+func (_c *MockImageWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockImageWidget_SetValign_Call {
10107+ _c.Run(run)
10108+ return _c
10109+}
10110+
10111+// SetVexpand provides a mock function for the type MockImageWidget
10112+func (_mock *MockImageWidget) SetVexpand(expand bool) {
10113+ _mock.Called(expand)
10114+ return
10115+}
10116+
10117+// MockImageWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
10118+type MockImageWidget_SetVexpand_Call struct {
10119+ *mock.Call
10120+}
10121+
10122+// SetVexpand is a helper method to define mock.On call
10123+// - expand bool
10124+func (_e *MockImageWidget_Expecter) SetVexpand(expand interface{}) *MockImageWidget_SetVexpand_Call {
10125+ return &MockImageWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
10126+}
10127+
10128+func (_c *MockImageWidget_SetVexpand_Call) Run(run func(expand bool)) *MockImageWidget_SetVexpand_Call {
10129+ _c.Call.Run(func(args mock.Arguments) {
10130+ var arg0 bool
10131+ if args[0] != nil {
10132+ arg0 = args[0].(bool)
10133+ }
10134+ run(
10135+ arg0,
10136+ )
10137+ })
10138+ return _c
10139+}
10140+
10141+func (_c *MockImageWidget_SetVexpand_Call) Return() *MockImageWidget_SetVexpand_Call {
10142+ _c.Call.Return()
10143+ return _c
10144+}
10145+
10146+func (_c *MockImageWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockImageWidget_SetVexpand_Call {
10147+ _c.Run(run)
10148+ return _c
10149+}
10150+
10151+// SetVisible provides a mock function for the type MockImageWidget
10152+func (_mock *MockImageWidget) SetVisible(visible bool) {
10153+ _mock.Called(visible)
10154+ return
10155+}
10156+
10157+// MockImageWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
10158+type MockImageWidget_SetVisible_Call struct {
10159+ *mock.Call
10160+}
10161+
10162+// SetVisible is a helper method to define mock.On call
10163+// - visible bool
10164+func (_e *MockImageWidget_Expecter) SetVisible(visible interface{}) *MockImageWidget_SetVisible_Call {
10165+ return &MockImageWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
10166+}
10167+
10168+func (_c *MockImageWidget_SetVisible_Call) Run(run func(visible bool)) *MockImageWidget_SetVisible_Call {
10169+ _c.Call.Run(func(args mock.Arguments) {
10170+ var arg0 bool
10171+ if args[0] != nil {
10172+ arg0 = args[0].(bool)
10173+ }
10174+ run(
10175+ arg0,
10176+ )
10177+ })
10178+ return _c
10179+}
10180+
10181+func (_c *MockImageWidget_SetVisible_Call) Return() *MockImageWidget_SetVisible_Call {
10182+ _c.Call.Return()
10183+ return _c
10184+}
10185+
10186+func (_c *MockImageWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockImageWidget_SetVisible_Call {
10187+ _c.Run(run)
10188+ return _c
10189+}
10190+
10191+// Show provides a mock function for the type MockImageWidget
10192+func (_mock *MockImageWidget) Show() {
10193+ _mock.Called()
10194+ return
10195+}
10196+
10197+// MockImageWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
10198+type MockImageWidget_Show_Call struct {
10199+ *mock.Call
10200+}
10201+
10202+// Show is a helper method to define mock.On call
10203+func (_e *MockImageWidget_Expecter) Show() *MockImageWidget_Show_Call {
10204+ return &MockImageWidget_Show_Call{Call: _e.mock.On("Show")}
10205+}
10206+
10207+func (_c *MockImageWidget_Show_Call) Run(run func()) *MockImageWidget_Show_Call {
10208+ _c.Call.Run(func(args mock.Arguments) {
10209+ run()
10210+ })
10211+ return _c
10212+}
10213+
10214+func (_c *MockImageWidget_Show_Call) Return() *MockImageWidget_Show_Call {
10215+ _c.Call.Return()
10216+ return _c
10217+}
10218+
10219+func (_c *MockImageWidget_Show_Call) RunAndReturn(run func()) *MockImageWidget_Show_Call {
10220+ _c.Run(run)
10221+ return _c
10222+}
10223+
10224+// Unparent provides a mock function for the type MockImageWidget
10225+func (_mock *MockImageWidget) Unparent() {
10226+ _mock.Called()
10227+ return
10228+}
10229+
10230+// MockImageWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
10231+type MockImageWidget_Unparent_Call struct {
10232+ *mock.Call
10233+}
10234+
10235+// Unparent is a helper method to define mock.On call
10236+func (_e *MockImageWidget_Expecter) Unparent() *MockImageWidget_Unparent_Call {
10237+ return &MockImageWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
10238+}
10239+
10240+func (_c *MockImageWidget_Unparent_Call) Run(run func()) *MockImageWidget_Unparent_Call {
10241+ _c.Call.Run(func(args mock.Arguments) {
10242+ run()
10243+ })
10244+ return _c
10245+}
10246+
10247+func (_c *MockImageWidget_Unparent_Call) Return() *MockImageWidget_Unparent_Call {
10248+ _c.Call.Return()
10249+ return _c
10250+}
10251+
10252+func (_c *MockImageWidget_Unparent_Call) RunAndReturn(run func()) *MockImageWidget_Unparent_Call {
10253+ _c.Run(run)
10254+ return _c
10255+}
10256+
10257+// 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.
10258+// The first argument is typically a *testing.T value.
10259+func NewMockProgressBarWidget(t interface {
10260+ mock.TestingT
10261+ Cleanup(func())
10262+}) *MockProgressBarWidget {
10263+ mock := &MockProgressBarWidget{}
10264+ mock.Mock.Test(t)
10265+
10266+ t.Cleanup(func() { mock.AssertExpectations(t) })
10267+
10268+ return mock
10269+}
10270+
10271+// MockProgressBarWidget is an autogenerated mock type for the ProgressBarWidget type
10272+type MockProgressBarWidget struct {
10273+ mock.Mock
10274+}
10275+
10276+type MockProgressBarWidget_Expecter struct {
10277+ mock *mock.Mock
10278+}
10279+
10280+func (_m *MockProgressBarWidget) EXPECT() *MockProgressBarWidget_Expecter {
10281+ return &MockProgressBarWidget_Expecter{mock: &_m.Mock}
10282+}
10283+
10284+// AddController provides a mock function for the type MockProgressBarWidget
10285+func (_mock *MockProgressBarWidget) AddController(controller *gtk.EventController) {
10286+ _mock.Called(controller)
10287+ return
10288+}
10289+
10290+// MockProgressBarWidget_AddController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddController'
10291+type MockProgressBarWidget_AddController_Call struct {
10292+ *mock.Call
10293+}
10294+
10295+// AddController is a helper method to define mock.On call
10296+// - controller *gtk.EventController
10297+func (_e *MockProgressBarWidget_Expecter) AddController(controller interface{}) *MockProgressBarWidget_AddController_Call {
10298+ return &MockProgressBarWidget_AddController_Call{Call: _e.mock.On("AddController", controller)}
10299+}
10300+
10301+func (_c *MockProgressBarWidget_AddController_Call) Run(run func(controller *gtk.EventController)) *MockProgressBarWidget_AddController_Call {
10302+ _c.Call.Run(func(args mock.Arguments) {
10303+ var arg0 *gtk.EventController
10304+ if args[0] != nil {
10305+ arg0 = args[0].(*gtk.EventController)
10306+ }
10307+ run(
10308+ arg0,
10309+ )
10310+ })
10311+ return _c
10312+}
10313+
10314+func (_c *MockProgressBarWidget_AddController_Call) Return() *MockProgressBarWidget_AddController_Call {
10315+ _c.Call.Return()
10316+ return _c
10317+}
10318+
10319+func (_c *MockProgressBarWidget_AddController_Call) RunAndReturn(run func(controller *gtk.EventController)) *MockProgressBarWidget_AddController_Call {
10320+ _c.Run(run)
10321+ return _c
10322+}
10323+
10324+// AddCssClass provides a mock function for the type MockProgressBarWidget
10325+func (_mock *MockProgressBarWidget) AddCssClass(cssClass string) {
10326+ _mock.Called(cssClass)
10327+ return
10328+}
10329+
10330+// MockProgressBarWidget_AddCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCssClass'
10331+type MockProgressBarWidget_AddCssClass_Call struct {
10332+ *mock.Call
10333+}
10334+
10335+// AddCssClass is a helper method to define mock.On call
10336+// - cssClass string
10337+func (_e *MockProgressBarWidget_Expecter) AddCssClass(cssClass interface{}) *MockProgressBarWidget_AddCssClass_Call {
10338+ return &MockProgressBarWidget_AddCssClass_Call{Call: _e.mock.On("AddCssClass", cssClass)}
10339+}
10340+
10341+func (_c *MockProgressBarWidget_AddCssClass_Call) Run(run func(cssClass string)) *MockProgressBarWidget_AddCssClass_Call {
10342+ _c.Call.Run(func(args mock.Arguments) {
10343+ var arg0 string
10344+ if args[0] != nil {
10345+ arg0 = args[0].(string)
10346+ }
10347+ run(
10348+ arg0,
10349+ )
10350+ })
10351+ return _c
10352+}
10353+
10354+func (_c *MockProgressBarWidget_AddCssClass_Call) Return() *MockProgressBarWidget_AddCssClass_Call {
10355+ _c.Call.Return()
10356+ return _c
10357+}
10358+
10359+func (_c *MockProgressBarWidget_AddCssClass_Call) RunAndReturn(run func(cssClass string)) *MockProgressBarWidget_AddCssClass_Call {
10360+ _c.Run(run)
10361+ return _c
10362+}
10363+
10364+// ComputePoint provides a mock function for the type MockProgressBarWidget
10365+func (_mock *MockProgressBarWidget) ComputePoint(target layout.Widget) (float64, float64, bool) {
10366+ ret := _mock.Called(target)
10367+
10368+ if len(ret) == 0 {
10369+ panic("no return value specified for ComputePoint")
10370+ }
10371+
10372+ var r0 float64
10373+ var r1 float64
10374+ var r2 bool
10375+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) (float64, float64, bool)); ok {
10376+ return returnFunc(target)
10377+ }
10378+ if returnFunc, ok := ret.Get(0).(func(layout.Widget) float64); ok {
10379+ r0 = returnFunc(target)
10380+ } else {
10381+ r0 = ret.Get(0).(float64)
10382+ }
10383+ if returnFunc, ok := ret.Get(1).(func(layout.Widget) float64); ok {
10384+ r1 = returnFunc(target)
10385+ } else {
10386+ r1 = ret.Get(1).(float64)
10387+ }
10388+ if returnFunc, ok := ret.Get(2).(func(layout.Widget) bool); ok {
10389+ r2 = returnFunc(target)
10390+ } else {
10391+ r2 = ret.Get(2).(bool)
10392+ }
10393+ return r0, r1, r2
10394+}
10395+
10396+// MockProgressBarWidget_ComputePoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ComputePoint'
10397+type MockProgressBarWidget_ComputePoint_Call struct {
10398+ *mock.Call
10399+}
10400+
10401+// ComputePoint is a helper method to define mock.On call
10402+// - target layout.Widget
10403+func (_e *MockProgressBarWidget_Expecter) ComputePoint(target interface{}) *MockProgressBarWidget_ComputePoint_Call {
10404+ return &MockProgressBarWidget_ComputePoint_Call{Call: _e.mock.On("ComputePoint", target)}
10405+}
10406+
10407+func (_c *MockProgressBarWidget_ComputePoint_Call) Run(run func(target layout.Widget)) *MockProgressBarWidget_ComputePoint_Call {
10408+ _c.Call.Run(func(args mock.Arguments) {
10409+ var arg0 layout.Widget
10410+ if args[0] != nil {
10411+ arg0 = args[0].(layout.Widget)
10412+ }
10413+ run(
10414+ arg0,
10415+ )
10416+ })
10417+ return _c
10418+}
10419+
10420+func (_c *MockProgressBarWidget_ComputePoint_Call) Return(x float64, y float64, ok bool) *MockProgressBarWidget_ComputePoint_Call {
10421+ _c.Call.Return(x, y, ok)
10422+ return _c
10423+}
10424+
10425+func (_c *MockProgressBarWidget_ComputePoint_Call) RunAndReturn(run func(target layout.Widget) (float64, float64, bool)) *MockProgressBarWidget_ComputePoint_Call {
10426+ _c.Call.Return(run)
10427+ return _c
10428+}
10429+
10430+// GetAllocatedHeight provides a mock function for the type MockProgressBarWidget
10431+func (_mock *MockProgressBarWidget) GetAllocatedHeight() int {
10432+ ret := _mock.Called()
10433+
10434+ if len(ret) == 0 {
10435+ panic("no return value specified for GetAllocatedHeight")
10436+ }
10437+
10438+ var r0 int
10439+ if returnFunc, ok := ret.Get(0).(func() int); ok {
10440+ r0 = returnFunc()
10441+ } else {
10442+ r0 = ret.Get(0).(int)
10443+ }
10444+ return r0
10445+}
10446+
10447+// MockProgressBarWidget_GetAllocatedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedHeight'
10448+type MockProgressBarWidget_GetAllocatedHeight_Call struct {
10449+ *mock.Call
10450+}
10451+
10452+// GetAllocatedHeight is a helper method to define mock.On call
10453+func (_e *MockProgressBarWidget_Expecter) GetAllocatedHeight() *MockProgressBarWidget_GetAllocatedHeight_Call {
10454+ return &MockProgressBarWidget_GetAllocatedHeight_Call{Call: _e.mock.On("GetAllocatedHeight")}
10455+}
10456+
10457+func (_c *MockProgressBarWidget_GetAllocatedHeight_Call) Run(run func()) *MockProgressBarWidget_GetAllocatedHeight_Call {
10458+ _c.Call.Run(func(args mock.Arguments) {
10459+ run()
10460+ })
10461+ return _c
10462+}
10463+
10464+func (_c *MockProgressBarWidget_GetAllocatedHeight_Call) Return(n int) *MockProgressBarWidget_GetAllocatedHeight_Call {
10465+ _c.Call.Return(n)
10466+ return _c
10467+}
10468+
10469+func (_c *MockProgressBarWidget_GetAllocatedHeight_Call) RunAndReturn(run func() int) *MockProgressBarWidget_GetAllocatedHeight_Call {
10470+ _c.Call.Return(run)
10471+ return _c
10472+}
10473+
10474+// GetAllocatedWidth provides a mock function for the type MockProgressBarWidget
10475+func (_mock *MockProgressBarWidget) GetAllocatedWidth() int {
10476+ ret := _mock.Called()
10477+
10478+ if len(ret) == 0 {
10479+ panic("no return value specified for GetAllocatedWidth")
10480+ }
10481+
10482+ var r0 int
10483+ if returnFunc, ok := ret.Get(0).(func() int); ok {
10484+ r0 = returnFunc()
10485+ } else {
10486+ r0 = ret.Get(0).(int)
10487+ }
10488+ return r0
10489+}
10490+
10491+// MockProgressBarWidget_GetAllocatedWidth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllocatedWidth'
10492+type MockProgressBarWidget_GetAllocatedWidth_Call struct {
10493+ *mock.Call
10494+}
10495+
10496+// GetAllocatedWidth is a helper method to define mock.On call
10497+func (_e *MockProgressBarWidget_Expecter) GetAllocatedWidth() *MockProgressBarWidget_GetAllocatedWidth_Call {
10498+ return &MockProgressBarWidget_GetAllocatedWidth_Call{Call: _e.mock.On("GetAllocatedWidth")}
10499+}
10500+
10501+func (_c *MockProgressBarWidget_GetAllocatedWidth_Call) Run(run func()) *MockProgressBarWidget_GetAllocatedWidth_Call {
10502+ _c.Call.Run(func(args mock.Arguments) {
10503+ run()
10504+ })
10505+ return _c
10506+}
10507+
10508+func (_c *MockProgressBarWidget_GetAllocatedWidth_Call) Return(n int) *MockProgressBarWidget_GetAllocatedWidth_Call {
10509+ _c.Call.Return(n)
10510+ return _c
10511+}
10512+
10513+func (_c *MockProgressBarWidget_GetAllocatedWidth_Call) RunAndReturn(run func() int) *MockProgressBarWidget_GetAllocatedWidth_Call {
10514+ _c.Call.Return(run)
10515+ return _c
10516+}
10517+
10518+// GetFraction provides a mock function for the type MockProgressBarWidget
10519+func (_mock *MockProgressBarWidget) GetFraction() float64 {
10520+ ret := _mock.Called()
10521+
10522+ if len(ret) == 0 {
10523+ panic("no return value specified for GetFraction")
10524+ }
10525+
10526+ var r0 float64
10527+ if returnFunc, ok := ret.Get(0).(func() float64); ok {
10528+ r0 = returnFunc()
10529+ } else {
10530+ r0 = ret.Get(0).(float64)
10531+ }
10532+ return r0
10533+}
10534+
10535+// MockProgressBarWidget_GetFraction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFraction'
10536+type MockProgressBarWidget_GetFraction_Call struct {
10537+ *mock.Call
10538+}
10539+
10540+// GetFraction is a helper method to define mock.On call
10541+func (_e *MockProgressBarWidget_Expecter) GetFraction() *MockProgressBarWidget_GetFraction_Call {
10542+ return &MockProgressBarWidget_GetFraction_Call{Call: _e.mock.On("GetFraction")}
10543+}
10544+
10545+func (_c *MockProgressBarWidget_GetFraction_Call) Run(run func()) *MockProgressBarWidget_GetFraction_Call {
10546+ _c.Call.Run(func(args mock.Arguments) {
10547+ run()
10548+ })
10549+ return _c
10550+}
10551+
10552+func (_c *MockProgressBarWidget_GetFraction_Call) Return(f float64) *MockProgressBarWidget_GetFraction_Call {
10553+ _c.Call.Return(f)
10554+ return _c
10555+}
10556+
10557+func (_c *MockProgressBarWidget_GetFraction_Call) RunAndReturn(run func() float64) *MockProgressBarWidget_GetFraction_Call {
10558+ _c.Call.Return(run)
10559+ return _c
10560+}
10561+
10562+// GetHexpand provides a mock function for the type MockProgressBarWidget
10563+func (_mock *MockProgressBarWidget) GetHexpand() bool {
10564+ ret := _mock.Called()
10565+
10566+ if len(ret) == 0 {
10567+ panic("no return value specified for GetHexpand")
10568+ }
10569+
10570+ var r0 bool
10571+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
10572+ r0 = returnFunc()
10573+ } else {
10574+ r0 = ret.Get(0).(bool)
10575+ }
10576+ return r0
10577+}
10578+
10579+// MockProgressBarWidget_GetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHexpand'
10580+type MockProgressBarWidget_GetHexpand_Call struct {
10581+ *mock.Call
10582+}
10583+
10584+// GetHexpand is a helper method to define mock.On call
10585+func (_e *MockProgressBarWidget_Expecter) GetHexpand() *MockProgressBarWidget_GetHexpand_Call {
10586+ return &MockProgressBarWidget_GetHexpand_Call{Call: _e.mock.On("GetHexpand")}
10587+}
10588+
10589+func (_c *MockProgressBarWidget_GetHexpand_Call) Run(run func()) *MockProgressBarWidget_GetHexpand_Call {
10590+ _c.Call.Run(func(args mock.Arguments) {
10591+ run()
10592+ })
10593+ return _c
10594+}
10595+
10596+func (_c *MockProgressBarWidget_GetHexpand_Call) Return(b bool) *MockProgressBarWidget_GetHexpand_Call {
10597+ _c.Call.Return(b)
10598+ return _c
10599+}
10600+
10601+func (_c *MockProgressBarWidget_GetHexpand_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_GetHexpand_Call {
10602+ _c.Call.Return(run)
10603+ return _c
10604+}
10605+
10606+// GetParent provides a mock function for the type MockProgressBarWidget
10607+func (_mock *MockProgressBarWidget) GetParent() layout.Widget {
10608+ ret := _mock.Called()
10609+
10610+ if len(ret) == 0 {
10611+ panic("no return value specified for GetParent")
10612+ }
10613+
10614+ var r0 layout.Widget
10615+ if returnFunc, ok := ret.Get(0).(func() layout.Widget); ok {
10616+ r0 = returnFunc()
10617+ } else {
10618+ if ret.Get(0) != nil {
10619+ r0 = ret.Get(0).(layout.Widget)
10620+ }
10621+ }
10622+ return r0
10623+}
10624+
10625+// MockProgressBarWidget_GetParent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParent'
10626+type MockProgressBarWidget_GetParent_Call struct {
10627+ *mock.Call
10628+}
10629+
10630+// GetParent is a helper method to define mock.On call
10631+func (_e *MockProgressBarWidget_Expecter) GetParent() *MockProgressBarWidget_GetParent_Call {
10632+ return &MockProgressBarWidget_GetParent_Call{Call: _e.mock.On("GetParent")}
10633+}
10634+
10635+func (_c *MockProgressBarWidget_GetParent_Call) Run(run func()) *MockProgressBarWidget_GetParent_Call {
10636+ _c.Call.Run(func(args mock.Arguments) {
10637+ run()
10638+ })
10639+ return _c
10640+}
10641+
10642+func (_c *MockProgressBarWidget_GetParent_Call) Return(widget layout.Widget) *MockProgressBarWidget_GetParent_Call {
10643+ _c.Call.Return(widget)
10644+ return _c
10645+}
10646+
10647+func (_c *MockProgressBarWidget_GetParent_Call) RunAndReturn(run func() layout.Widget) *MockProgressBarWidget_GetParent_Call {
10648+ _c.Call.Return(run)
10649+ return _c
10650+}
10651+
10652+// GetVexpand provides a mock function for the type MockProgressBarWidget
10653+func (_mock *MockProgressBarWidget) GetVexpand() bool {
10654+ ret := _mock.Called()
10655+
10656+ if len(ret) == 0 {
10657+ panic("no return value specified for GetVexpand")
10658+ }
10659+
10660+ var r0 bool
10661+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
10662+ r0 = returnFunc()
10663+ } else {
10664+ r0 = ret.Get(0).(bool)
10665+ }
10666+ return r0
10667+}
10668+
10669+// MockProgressBarWidget_GetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVexpand'
10670+type MockProgressBarWidget_GetVexpand_Call struct {
10671+ *mock.Call
10672+}
10673+
10674+// GetVexpand is a helper method to define mock.On call
10675+func (_e *MockProgressBarWidget_Expecter) GetVexpand() *MockProgressBarWidget_GetVexpand_Call {
10676+ return &MockProgressBarWidget_GetVexpand_Call{Call: _e.mock.On("GetVexpand")}
10677+}
10678+
10679+func (_c *MockProgressBarWidget_GetVexpand_Call) Run(run func()) *MockProgressBarWidget_GetVexpand_Call {
10680+ _c.Call.Run(func(args mock.Arguments) {
10681+ run()
10682+ })
10683+ return _c
10684+}
10685+
10686+func (_c *MockProgressBarWidget_GetVexpand_Call) Return(b bool) *MockProgressBarWidget_GetVexpand_Call {
10687+ _c.Call.Return(b)
10688+ return _c
10689+}
10690+
10691+func (_c *MockProgressBarWidget_GetVexpand_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_GetVexpand_Call {
10692+ _c.Call.Return(run)
10693+ return _c
10694+}
10695+
10696+// GrabFocus provides a mock function for the type MockProgressBarWidget
10697+func (_mock *MockProgressBarWidget) GrabFocus() bool {
10698+ ret := _mock.Called()
10699+
10700+ if len(ret) == 0 {
10701+ panic("no return value specified for GrabFocus")
10702+ }
10703+
10704+ var r0 bool
10705+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
10706+ r0 = returnFunc()
10707+ } else {
10708+ r0 = ret.Get(0).(bool)
10709+ }
10710+ return r0
10711+}
10712+
10713+// MockProgressBarWidget_GrabFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrabFocus'
10714+type MockProgressBarWidget_GrabFocus_Call struct {
10715+ *mock.Call
10716+}
10717+
10718+// GrabFocus is a helper method to define mock.On call
10719+func (_e *MockProgressBarWidget_Expecter) GrabFocus() *MockProgressBarWidget_GrabFocus_Call {
10720+ return &MockProgressBarWidget_GrabFocus_Call{Call: _e.mock.On("GrabFocus")}
10721+}
10722+
10723+func (_c *MockProgressBarWidget_GrabFocus_Call) Run(run func()) *MockProgressBarWidget_GrabFocus_Call {
10724+ _c.Call.Run(func(args mock.Arguments) {
10725+ run()
10726+ })
10727+ return _c
10728+}
10729+
10730+func (_c *MockProgressBarWidget_GrabFocus_Call) Return(b bool) *MockProgressBarWidget_GrabFocus_Call {
10731+ _c.Call.Return(b)
10732+ return _c
10733+}
10734+
10735+func (_c *MockProgressBarWidget_GrabFocus_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_GrabFocus_Call {
10736+ _c.Call.Return(run)
10737+ return _c
10738+}
10739+
10740+// GtkWidget provides a mock function for the type MockProgressBarWidget
10741+func (_mock *MockProgressBarWidget) GtkWidget() *gtk.Widget {
10742+ ret := _mock.Called()
10743+
10744+ if len(ret) == 0 {
10745+ panic("no return value specified for GtkWidget")
10746+ }
10747+
10748+ var r0 *gtk.Widget
10749+ if returnFunc, ok := ret.Get(0).(func() *gtk.Widget); ok {
10750+ r0 = returnFunc()
10751+ } else {
10752+ if ret.Get(0) != nil {
10753+ r0 = ret.Get(0).(*gtk.Widget)
10754+ }
10755+ }
10756+ return r0
10757+}
10758+
10759+// MockProgressBarWidget_GtkWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GtkWidget'
10760+type MockProgressBarWidget_GtkWidget_Call struct {
10761+ *mock.Call
10762+}
10763+
10764+// GtkWidget is a helper method to define mock.On call
10765+func (_e *MockProgressBarWidget_Expecter) GtkWidget() *MockProgressBarWidget_GtkWidget_Call {
10766+ return &MockProgressBarWidget_GtkWidget_Call{Call: _e.mock.On("GtkWidget")}
10767+}
10768+
10769+func (_c *MockProgressBarWidget_GtkWidget_Call) Run(run func()) *MockProgressBarWidget_GtkWidget_Call {
10770+ _c.Call.Run(func(args mock.Arguments) {
10771+ run()
10772+ })
10773+ return _c
10774+}
10775+
10776+func (_c *MockProgressBarWidget_GtkWidget_Call) Return(widget *gtk.Widget) *MockProgressBarWidget_GtkWidget_Call {
10777+ _c.Call.Return(widget)
10778+ return _c
10779+}
10780+
10781+func (_c *MockProgressBarWidget_GtkWidget_Call) RunAndReturn(run func() *gtk.Widget) *MockProgressBarWidget_GtkWidget_Call {
10782+ _c.Call.Return(run)
10783+ return _c
10784+}
10785+
10786+// HasCssClass provides a mock function for the type MockProgressBarWidget
10787+func (_mock *MockProgressBarWidget) HasCssClass(cssClass string) bool {
10788+ ret := _mock.Called(cssClass)
10789+
10790+ if len(ret) == 0 {
10791+ panic("no return value specified for HasCssClass")
10792+ }
10793+
10794+ var r0 bool
10795+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
10796+ r0 = returnFunc(cssClass)
10797+ } else {
10798+ r0 = ret.Get(0).(bool)
10799+ }
10800+ return r0
10801+}
10802+
10803+// MockProgressBarWidget_HasCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCssClass'
10804+type MockProgressBarWidget_HasCssClass_Call struct {
10805+ *mock.Call
10806+}
10807+
10808+// HasCssClass is a helper method to define mock.On call
10809+// - cssClass string
10810+func (_e *MockProgressBarWidget_Expecter) HasCssClass(cssClass interface{}) *MockProgressBarWidget_HasCssClass_Call {
10811+ return &MockProgressBarWidget_HasCssClass_Call{Call: _e.mock.On("HasCssClass", cssClass)}
10812+}
10813+
10814+func (_c *MockProgressBarWidget_HasCssClass_Call) Run(run func(cssClass string)) *MockProgressBarWidget_HasCssClass_Call {
10815+ _c.Call.Run(func(args mock.Arguments) {
10816+ var arg0 string
10817+ if args[0] != nil {
10818+ arg0 = args[0].(string)
10819+ }
10820+ run(
10821+ arg0,
10822+ )
10823+ })
10824+ return _c
10825+}
10826+
10827+func (_c *MockProgressBarWidget_HasCssClass_Call) Return(b bool) *MockProgressBarWidget_HasCssClass_Call {
10828+ _c.Call.Return(b)
10829+ return _c
10830+}
10831+
10832+func (_c *MockProgressBarWidget_HasCssClass_Call) RunAndReturn(run func(cssClass string) bool) *MockProgressBarWidget_HasCssClass_Call {
10833+ _c.Call.Return(run)
10834+ return _c
10835+}
10836+
10837+// HasFocus provides a mock function for the type MockProgressBarWidget
10838+func (_mock *MockProgressBarWidget) HasFocus() bool {
10839+ ret := _mock.Called()
10840+
10841+ if len(ret) == 0 {
10842+ panic("no return value specified for HasFocus")
10843+ }
10844+
10845+ var r0 bool
10846+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
10847+ r0 = returnFunc()
10848+ } else {
10849+ r0 = ret.Get(0).(bool)
10850+ }
10851+ return r0
10852+}
10853+
10854+// MockProgressBarWidget_HasFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasFocus'
10855+type MockProgressBarWidget_HasFocus_Call struct {
10856+ *mock.Call
10857+}
10858+
10859+// HasFocus is a helper method to define mock.On call
10860+func (_e *MockProgressBarWidget_Expecter) HasFocus() *MockProgressBarWidget_HasFocus_Call {
10861+ return &MockProgressBarWidget_HasFocus_Call{Call: _e.mock.On("HasFocus")}
10862+}
10863+
10864+func (_c *MockProgressBarWidget_HasFocus_Call) Run(run func()) *MockProgressBarWidget_HasFocus_Call {
10865+ _c.Call.Run(func(args mock.Arguments) {
10866+ run()
10867+ })
10868+ return _c
10869+}
10870+
10871+func (_c *MockProgressBarWidget_HasFocus_Call) Return(b bool) *MockProgressBarWidget_HasFocus_Call {
10872+ _c.Call.Return(b)
10873+ return _c
10874+}
10875+
10876+func (_c *MockProgressBarWidget_HasFocus_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_HasFocus_Call {
10877+ _c.Call.Return(run)
10878+ return _c
10879+}
10880+
10881+// Hide provides a mock function for the type MockProgressBarWidget
10882+func (_mock *MockProgressBarWidget) Hide() {
10883+ _mock.Called()
10884+ return
10885+}
10886+
10887+// MockProgressBarWidget_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
10888+type MockProgressBarWidget_Hide_Call struct {
10889+ *mock.Call
10890+}
10891+
10892+// Hide is a helper method to define mock.On call
10893+func (_e *MockProgressBarWidget_Expecter) Hide() *MockProgressBarWidget_Hide_Call {
10894+ return &MockProgressBarWidget_Hide_Call{Call: _e.mock.On("Hide")}
10895+}
10896+
10897+func (_c *MockProgressBarWidget_Hide_Call) Run(run func()) *MockProgressBarWidget_Hide_Call {
10898+ _c.Call.Run(func(args mock.Arguments) {
10899+ run()
10900+ })
10901+ return _c
10902+}
10903+
10904+func (_c *MockProgressBarWidget_Hide_Call) Return() *MockProgressBarWidget_Hide_Call {
10905+ _c.Call.Return()
10906+ return _c
10907+}
10908+
10909+func (_c *MockProgressBarWidget_Hide_Call) RunAndReturn(run func()) *MockProgressBarWidget_Hide_Call {
10910+ _c.Run(run)
10911+ return _c
10912+}
10913+
10914+// IsVisible provides a mock function for the type MockProgressBarWidget
10915+func (_mock *MockProgressBarWidget) IsVisible() bool {
10916+ ret := _mock.Called()
10917+
10918+ if len(ret) == 0 {
10919+ panic("no return value specified for IsVisible")
10920+ }
10921+
10922+ var r0 bool
10923+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
10924+ r0 = returnFunc()
10925+ } else {
10926+ r0 = ret.Get(0).(bool)
10927+ }
10928+ return r0
10929+}
10930+
10931+// MockProgressBarWidget_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
10932+type MockProgressBarWidget_IsVisible_Call struct {
10933+ *mock.Call
10934+}
10935+
10936+// IsVisible is a helper method to define mock.On call
10937+func (_e *MockProgressBarWidget_Expecter) IsVisible() *MockProgressBarWidget_IsVisible_Call {
10938+ return &MockProgressBarWidget_IsVisible_Call{Call: _e.mock.On("IsVisible")}
10939+}
10940+
10941+func (_c *MockProgressBarWidget_IsVisible_Call) Run(run func()) *MockProgressBarWidget_IsVisible_Call {
10942+ _c.Call.Run(func(args mock.Arguments) {
10943+ run()
10944+ })
10945+ return _c
10946+}
10947+
10948+func (_c *MockProgressBarWidget_IsVisible_Call) Return(b bool) *MockProgressBarWidget_IsVisible_Call {
10949+ _c.Call.Return(b)
10950+ return _c
10951+}
10952+
10953+func (_c *MockProgressBarWidget_IsVisible_Call) RunAndReturn(run func() bool) *MockProgressBarWidget_IsVisible_Call {
10954+ _c.Call.Return(run)
10955+ return _c
10956+}
10957+
10958+// RemoveCssClass provides a mock function for the type MockProgressBarWidget
10959+func (_mock *MockProgressBarWidget) RemoveCssClass(cssClass string) {
10960+ _mock.Called(cssClass)
10961+ return
10962+}
10963+
10964+// MockProgressBarWidget_RemoveCssClass_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCssClass'
10965+type MockProgressBarWidget_RemoveCssClass_Call struct {
10966+ *mock.Call
10967+}
10968+
10969+// RemoveCssClass is a helper method to define mock.On call
10970+// - cssClass string
10971+func (_e *MockProgressBarWidget_Expecter) RemoveCssClass(cssClass interface{}) *MockProgressBarWidget_RemoveCssClass_Call {
10972+ return &MockProgressBarWidget_RemoveCssClass_Call{Call: _e.mock.On("RemoveCssClass", cssClass)}
10973+}
10974+
10975+func (_c *MockProgressBarWidget_RemoveCssClass_Call) Run(run func(cssClass string)) *MockProgressBarWidget_RemoveCssClass_Call {
10976+ _c.Call.Run(func(args mock.Arguments) {
10977+ var arg0 string
10978+ if args[0] != nil {
10979+ arg0 = args[0].(string)
10980+ }
10981+ run(
10982+ arg0,
10983+ )
10984+ })
10985+ return _c
10986+}
10987+
10988+func (_c *MockProgressBarWidget_RemoveCssClass_Call) Return() *MockProgressBarWidget_RemoveCssClass_Call {
10989+ _c.Call.Return()
10990+ return _c
10991+}
10992+
10993+func (_c *MockProgressBarWidget_RemoveCssClass_Call) RunAndReturn(run func(cssClass string)) *MockProgressBarWidget_RemoveCssClass_Call {
10994+ _c.Run(run)
10995+ return _c
10996+}
10997+
10998+// SetCanFocus provides a mock function for the type MockProgressBarWidget
10999+func (_mock *MockProgressBarWidget) SetCanFocus(canFocus bool) {
11000+ _mock.Called(canFocus)
11001+ return
11002+}
11003+
11004+// MockProgressBarWidget_SetCanFocus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanFocus'
11005+type MockProgressBarWidget_SetCanFocus_Call struct {
11006+ *mock.Call
11007+}
11008+
11009+// SetCanFocus is a helper method to define mock.On call
11010+// - canFocus bool
11011+func (_e *MockProgressBarWidget_Expecter) SetCanFocus(canFocus interface{}) *MockProgressBarWidget_SetCanFocus_Call {
11012+ return &MockProgressBarWidget_SetCanFocus_Call{Call: _e.mock.On("SetCanFocus", canFocus)}
11013+}
11014+
11015+func (_c *MockProgressBarWidget_SetCanFocus_Call) Run(run func(canFocus bool)) *MockProgressBarWidget_SetCanFocus_Call {
11016+ _c.Call.Run(func(args mock.Arguments) {
11017+ var arg0 bool
11018+ if args[0] != nil {
11019+ arg0 = args[0].(bool)
11020+ }
11021+ run(
11022+ arg0,
11023+ )
11024+ })
11025+ return _c
11026+}
11027+
11028+func (_c *MockProgressBarWidget_SetCanFocus_Call) Return() *MockProgressBarWidget_SetCanFocus_Call {
11029+ _c.Call.Return()
11030+ return _c
11031+}
11032+
11033+func (_c *MockProgressBarWidget_SetCanFocus_Call) RunAndReturn(run func(canFocus bool)) *MockProgressBarWidget_SetCanFocus_Call {
11034+ _c.Run(run)
11035+ return _c
11036+}
11037+
11038+// SetCanTarget provides a mock function for the type MockProgressBarWidget
11039+func (_mock *MockProgressBarWidget) SetCanTarget(canTarget bool) {
11040+ _mock.Called(canTarget)
11041+ return
11042+}
11043+
11044+// MockProgressBarWidget_SetCanTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCanTarget'
11045+type MockProgressBarWidget_SetCanTarget_Call struct {
11046+ *mock.Call
11047+}
11048+
11049+// SetCanTarget is a helper method to define mock.On call
11050+// - canTarget bool
11051+func (_e *MockProgressBarWidget_Expecter) SetCanTarget(canTarget interface{}) *MockProgressBarWidget_SetCanTarget_Call {
11052+ return &MockProgressBarWidget_SetCanTarget_Call{Call: _e.mock.On("SetCanTarget", canTarget)}
11053+}
11054+
11055+func (_c *MockProgressBarWidget_SetCanTarget_Call) Run(run func(canTarget bool)) *MockProgressBarWidget_SetCanTarget_Call {
11056+ _c.Call.Run(func(args mock.Arguments) {
11057+ var arg0 bool
11058+ if args[0] != nil {
11059+ arg0 = args[0].(bool)
11060+ }
11061+ run(
11062+ arg0,
11063+ )
11064+ })
11065+ return _c
11066+}
11067+
11068+func (_c *MockProgressBarWidget_SetCanTarget_Call) Return() *MockProgressBarWidget_SetCanTarget_Call {
11069+ _c.Call.Return()
11070+ return _c
11071+}
11072+
11073+func (_c *MockProgressBarWidget_SetCanTarget_Call) RunAndReturn(run func(canTarget bool)) *MockProgressBarWidget_SetCanTarget_Call {
11074+ _c.Run(run)
11075+ return _c
11076+}
11077+
11078+// SetFocusOnClick provides a mock function for the type MockProgressBarWidget
11079+func (_mock *MockProgressBarWidget) SetFocusOnClick(focusOnClick bool) {
11080+ _mock.Called(focusOnClick)
11081+ return
11082+}
11083+
11084+// MockProgressBarWidget_SetFocusOnClick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusOnClick'
11085+type MockProgressBarWidget_SetFocusOnClick_Call struct {
11086+ *mock.Call
11087+}
11088+
11089+// SetFocusOnClick is a helper method to define mock.On call
11090+// - focusOnClick bool
11091+func (_e *MockProgressBarWidget_Expecter) SetFocusOnClick(focusOnClick interface{}) *MockProgressBarWidget_SetFocusOnClick_Call {
11092+ return &MockProgressBarWidget_SetFocusOnClick_Call{Call: _e.mock.On("SetFocusOnClick", focusOnClick)}
11093+}
11094+
11095+func (_c *MockProgressBarWidget_SetFocusOnClick_Call) Run(run func(focusOnClick bool)) *MockProgressBarWidget_SetFocusOnClick_Call {
11096+ _c.Call.Run(func(args mock.Arguments) {
11097+ var arg0 bool
11098+ if args[0] != nil {
11099+ arg0 = args[0].(bool)
11100+ }
11101+ run(
11102+ arg0,
11103+ )
11104+ })
11105+ return _c
11106+}
11107+
11108+func (_c *MockProgressBarWidget_SetFocusOnClick_Call) Return() *MockProgressBarWidget_SetFocusOnClick_Call {
11109+ _c.Call.Return()
11110+ return _c
11111+}
11112+
11113+func (_c *MockProgressBarWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bool)) *MockProgressBarWidget_SetFocusOnClick_Call {
11114+ _c.Run(run)
11115+ return _c
11116+}
11117+
11118+// SetFraction provides a mock function for the type MockProgressBarWidget
11119+func (_mock *MockProgressBarWidget) SetFraction(fraction float64) {
11120+ _mock.Called(fraction)
11121+ return
11122+}
11123+
11124+// MockProgressBarWidget_SetFraction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFraction'
11125+type MockProgressBarWidget_SetFraction_Call struct {
11126+ *mock.Call
11127+}
11128+
11129+// SetFraction is a helper method to define mock.On call
11130+// - fraction float64
11131+func (_e *MockProgressBarWidget_Expecter) SetFraction(fraction interface{}) *MockProgressBarWidget_SetFraction_Call {
11132+ return &MockProgressBarWidget_SetFraction_Call{Call: _e.mock.On("SetFraction", fraction)}
11133+}
11134+
11135+func (_c *MockProgressBarWidget_SetFraction_Call) Run(run func(fraction float64)) *MockProgressBarWidget_SetFraction_Call {
11136+ _c.Call.Run(func(args mock.Arguments) {
11137+ var arg0 float64
11138+ if args[0] != nil {
11139+ arg0 = args[0].(float64)
11140+ }
11141+ run(
11142+ arg0,
11143+ )
11144+ })
11145+ return _c
11146+}
11147+
11148+func (_c *MockProgressBarWidget_SetFraction_Call) Return() *MockProgressBarWidget_SetFraction_Call {
11149+ _c.Call.Return()
11150+ return _c
11151+}
11152+
11153+func (_c *MockProgressBarWidget_SetFraction_Call) RunAndReturn(run func(fraction float64)) *MockProgressBarWidget_SetFraction_Call {
11154+ _c.Run(run)
11155+ return _c
11156+}
11157+
11158+// SetHalign provides a mock function for the type MockProgressBarWidget
11159+func (_mock *MockProgressBarWidget) SetHalign(align gtk.Align) {
11160+ _mock.Called(align)
11161+ return
11162+}
11163+
11164+// MockProgressBarWidget_SetHalign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHalign'
11165+type MockProgressBarWidget_SetHalign_Call struct {
11166+ *mock.Call
11167+}
11168+
11169+// SetHalign is a helper method to define mock.On call
11170+// - align gtk.Align
11171+func (_e *MockProgressBarWidget_Expecter) SetHalign(align interface{}) *MockProgressBarWidget_SetHalign_Call {
11172+ return &MockProgressBarWidget_SetHalign_Call{Call: _e.mock.On("SetHalign", align)}
11173+}
11174+
11175+func (_c *MockProgressBarWidget_SetHalign_Call) Run(run func(align gtk.Align)) *MockProgressBarWidget_SetHalign_Call {
11176+ _c.Call.Run(func(args mock.Arguments) {
11177+ var arg0 gtk.Align
11178+ if args[0] != nil {
11179+ arg0 = args[0].(gtk.Align)
11180+ }
11181+ run(
11182+ arg0,
11183+ )
11184+ })
11185+ return _c
11186+}
11187+
11188+func (_c *MockProgressBarWidget_SetHalign_Call) Return() *MockProgressBarWidget_SetHalign_Call {
11189+ _c.Call.Return()
11190+ return _c
11191+}
11192+
11193+func (_c *MockProgressBarWidget_SetHalign_Call) RunAndReturn(run func(align gtk.Align)) *MockProgressBarWidget_SetHalign_Call {
11194+ _c.Run(run)
11195+ return _c
11196+}
11197+
11198+// SetHexpand provides a mock function for the type MockProgressBarWidget
11199+func (_mock *MockProgressBarWidget) SetHexpand(expand bool) {
11200+ _mock.Called(expand)
11201+ return
11202+}
11203+
11204+// MockProgressBarWidget_SetHexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHexpand'
11205+type MockProgressBarWidget_SetHexpand_Call struct {
11206+ *mock.Call
11207+}
11208+
11209+// SetHexpand is a helper method to define mock.On call
11210+// - expand bool
11211+func (_e *MockProgressBarWidget_Expecter) SetHexpand(expand interface{}) *MockProgressBarWidget_SetHexpand_Call {
11212+ return &MockProgressBarWidget_SetHexpand_Call{Call: _e.mock.On("SetHexpand", expand)}
11213+}
11214+
11215+func (_c *MockProgressBarWidget_SetHexpand_Call) Run(run func(expand bool)) *MockProgressBarWidget_SetHexpand_Call {
11216+ _c.Call.Run(func(args mock.Arguments) {
11217+ var arg0 bool
11218+ if args[0] != nil {
11219+ arg0 = args[0].(bool)
11220+ }
11221+ run(
11222+ arg0,
11223+ )
11224+ })
11225+ return _c
11226+}
11227+
11228+func (_c *MockProgressBarWidget_SetHexpand_Call) Return() *MockProgressBarWidget_SetHexpand_Call {
11229+ _c.Call.Return()
11230+ return _c
11231+}
11232+
11233+func (_c *MockProgressBarWidget_SetHexpand_Call) RunAndReturn(run func(expand bool)) *MockProgressBarWidget_SetHexpand_Call {
11234+ _c.Run(run)
11235+ return _c
11236+}
11237+
11238+// SetSizeRequest provides a mock function for the type MockProgressBarWidget
11239+func (_mock *MockProgressBarWidget) SetSizeRequest(width int, height int) {
11240+ _mock.Called(width, height)
11241+ return
11242+}
11243+
11244+// MockProgressBarWidget_SetSizeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSizeRequest'
11245+type MockProgressBarWidget_SetSizeRequest_Call struct {
11246+ *mock.Call
11247+}
11248+
11249+// SetSizeRequest is a helper method to define mock.On call
11250+// - width int
11251+// - height int
11252+func (_e *MockProgressBarWidget_Expecter) SetSizeRequest(width interface{}, height interface{}) *MockProgressBarWidget_SetSizeRequest_Call {
11253+ return &MockProgressBarWidget_SetSizeRequest_Call{Call: _e.mock.On("SetSizeRequest", width, height)}
11254+}
11255+
11256+func (_c *MockProgressBarWidget_SetSizeRequest_Call) Run(run func(width int, height int)) *MockProgressBarWidget_SetSizeRequest_Call {
11257+ _c.Call.Run(func(args mock.Arguments) {
11258+ var arg0 int
11259+ if args[0] != nil {
11260+ arg0 = args[0].(int)
11261+ }
11262+ var arg1 int
11263+ if args[1] != nil {
11264+ arg1 = args[1].(int)
11265+ }
11266+ run(
11267+ arg0,
11268+ arg1,
11269+ )
11270+ })
11271+ return _c
11272+}
11273+
11274+func (_c *MockProgressBarWidget_SetSizeRequest_Call) Return() *MockProgressBarWidget_SetSizeRequest_Call {
11275+ _c.Call.Return()
11276+ return _c
11277+}
11278+
11279+func (_c *MockProgressBarWidget_SetSizeRequest_Call) RunAndReturn(run func(width int, height int)) *MockProgressBarWidget_SetSizeRequest_Call {
11280+ _c.Run(run)
11281+ return _c
11282+}
11283+
11284+// SetValign provides a mock function for the type MockProgressBarWidget
11285+func (_mock *MockProgressBarWidget) SetValign(align gtk.Align) {
11286+ _mock.Called(align)
11287+ return
11288+}
11289+
11290+// MockProgressBarWidget_SetValign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetValign'
11291+type MockProgressBarWidget_SetValign_Call struct {
11292+ *mock.Call
11293+}
11294+
11295+// SetValign is a helper method to define mock.On call
11296+// - align gtk.Align
11297+func (_e *MockProgressBarWidget_Expecter) SetValign(align interface{}) *MockProgressBarWidget_SetValign_Call {
11298+ return &MockProgressBarWidget_SetValign_Call{Call: _e.mock.On("SetValign", align)}
11299+}
11300+
11301+func (_c *MockProgressBarWidget_SetValign_Call) Run(run func(align gtk.Align)) *MockProgressBarWidget_SetValign_Call {
11302+ _c.Call.Run(func(args mock.Arguments) {
11303+ var arg0 gtk.Align
11304+ if args[0] != nil {
11305+ arg0 = args[0].(gtk.Align)
11306+ }
11307+ run(
11308+ arg0,
11309+ )
11310+ })
11311+ return _c
11312+}
11313+
11314+func (_c *MockProgressBarWidget_SetValign_Call) Return() *MockProgressBarWidget_SetValign_Call {
11315+ _c.Call.Return()
11316+ return _c
11317+}
11318+
11319+func (_c *MockProgressBarWidget_SetValign_Call) RunAndReturn(run func(align gtk.Align)) *MockProgressBarWidget_SetValign_Call {
11320+ _c.Run(run)
11321+ return _c
11322+}
11323+
11324+// SetVexpand provides a mock function for the type MockProgressBarWidget
11325+func (_mock *MockProgressBarWidget) SetVexpand(expand bool) {
11326+ _mock.Called(expand)
11327+ return
11328+}
11329+
11330+// MockProgressBarWidget_SetVexpand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVexpand'
11331+type MockProgressBarWidget_SetVexpand_Call struct {
11332+ *mock.Call
11333+}
11334+
11335+// SetVexpand is a helper method to define mock.On call
11336+// - expand bool
11337+func (_e *MockProgressBarWidget_Expecter) SetVexpand(expand interface{}) *MockProgressBarWidget_SetVexpand_Call {
11338+ return &MockProgressBarWidget_SetVexpand_Call{Call: _e.mock.On("SetVexpand", expand)}
11339+}
11340+
11341+func (_c *MockProgressBarWidget_SetVexpand_Call) Run(run func(expand bool)) *MockProgressBarWidget_SetVexpand_Call {
11342+ _c.Call.Run(func(args mock.Arguments) {
11343+ var arg0 bool
11344+ if args[0] != nil {
11345+ arg0 = args[0].(bool)
11346+ }
11347+ run(
11348+ arg0,
11349+ )
11350+ })
11351+ return _c
11352+}
11353+
11354+func (_c *MockProgressBarWidget_SetVexpand_Call) Return() *MockProgressBarWidget_SetVexpand_Call {
11355+ _c.Call.Return()
11356+ return _c
11357+}
11358+
11359+func (_c *MockProgressBarWidget_SetVexpand_Call) RunAndReturn(run func(expand bool)) *MockProgressBarWidget_SetVexpand_Call {
11360+ _c.Run(run)
11361+ return _c
11362+}
11363+
11364+// SetVisible provides a mock function for the type MockProgressBarWidget
11365+func (_mock *MockProgressBarWidget) SetVisible(visible bool) {
11366+ _mock.Called(visible)
11367+ return
11368+}
11369+
11370+// MockProgressBarWidget_SetVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetVisible'
11371+type MockProgressBarWidget_SetVisible_Call struct {
11372+ *mock.Call
11373+}
11374+
11375+// SetVisible is a helper method to define mock.On call
11376+// - visible bool
11377+func (_e *MockProgressBarWidget_Expecter) SetVisible(visible interface{}) *MockProgressBarWidget_SetVisible_Call {
11378+ return &MockProgressBarWidget_SetVisible_Call{Call: _e.mock.On("SetVisible", visible)}
11379+}
11380+
11381+func (_c *MockProgressBarWidget_SetVisible_Call) Run(run func(visible bool)) *MockProgressBarWidget_SetVisible_Call {
11382+ _c.Call.Run(func(args mock.Arguments) {
11383+ var arg0 bool
11384+ if args[0] != nil {
11385+ arg0 = args[0].(bool)
11386+ }
11387+ run(
11388+ arg0,
11389+ )
11390+ })
11391+ return _c
11392+}
11393+
11394+func (_c *MockProgressBarWidget_SetVisible_Call) Return() *MockProgressBarWidget_SetVisible_Call {
11395+ _c.Call.Return()
11396+ return _c
11397+}
11398+
11399+func (_c *MockProgressBarWidget_SetVisible_Call) RunAndReturn(run func(visible bool)) *MockProgressBarWidget_SetVisible_Call {
11400+ _c.Run(run)
11401+ return _c
11402+}
11403+
11404+// Show provides a mock function for the type MockProgressBarWidget
11405+func (_mock *MockProgressBarWidget) Show() {
11406+ _mock.Called()
11407+ return
11408+}
11409+
11410+// MockProgressBarWidget_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
11411+type MockProgressBarWidget_Show_Call struct {
11412+ *mock.Call
11413+}
11414+
11415+// Show is a helper method to define mock.On call
11416+func (_e *MockProgressBarWidget_Expecter) Show() *MockProgressBarWidget_Show_Call {
11417+ return &MockProgressBarWidget_Show_Call{Call: _e.mock.On("Show")}
11418+}
11419+
11420+func (_c *MockProgressBarWidget_Show_Call) Run(run func()) *MockProgressBarWidget_Show_Call {
11421+ _c.Call.Run(func(args mock.Arguments) {
11422+ run()
11423+ })
11424+ return _c
11425+}
11426+
11427+func (_c *MockProgressBarWidget_Show_Call) Return() *MockProgressBarWidget_Show_Call {
11428+ _c.Call.Return()
11429+ return _c
11430+}
11431+
11432+func (_c *MockProgressBarWidget_Show_Call) RunAndReturn(run func()) *MockProgressBarWidget_Show_Call {
11433+ _c.Run(run)
11434+ return _c
11435+}
11436+
11437+// Unparent provides a mock function for the type MockProgressBarWidget
11438+func (_mock *MockProgressBarWidget) Unparent() {
11439+ _mock.Called()
11440+ return
11441+}
11442+
11443+// MockProgressBarWidget_Unparent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unparent'
11444+type MockProgressBarWidget_Unparent_Call struct {
11445+ *mock.Call
11446+}
11447+
11448+// Unparent is a helper method to define mock.On call
11449+func (_e *MockProgressBarWidget_Expecter) Unparent() *MockProgressBarWidget_Unparent_Call {
11450+ return &MockProgressBarWidget_Unparent_Call{Call: _e.mock.On("Unparent")}
11451+}
11452+
11453+func (_c *MockProgressBarWidget_Unparent_Call) Run(run func()) *MockProgressBarWidget_Unparent_Call {
11454+ _c.Call.Run(func(args mock.Arguments) {
11455+ run()
11456+ })
11457+ return _c
11458+}
11459+
11460+func (_c *MockProgressBarWidget_Unparent_Call) Return() *MockProgressBarWidget_Unparent_Call {
11461+ _c.Call.Return()
11462+ return _c
11463+}
11464+
11465+func (_c *MockProgressBarWidget_Unparent_Call) RunAndReturn(run func()) *MockProgressBarWidget_Unparent_Call {
11466+ _c.Run(run)
11467+ return _c
11468+}
11469+
11470+// 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.
11471+// The first argument is typically a *testing.T value.
11472+func NewMockWidgetFactory(t interface {
11473+ mock.TestingT
11474+ Cleanup(func())
11475+}) *MockWidgetFactory {
11476+ mock := &MockWidgetFactory{}
11477+ mock.Mock.Test(t)
11478+
11479+ t.Cleanup(func() { mock.AssertExpectations(t) })
11480+
11481+ return mock
11482+}
11483+
11484+// MockWidgetFactory is an autogenerated mock type for the WidgetFactory type
11485+type MockWidgetFactory struct {
11486+ mock.Mock
11487+}
11488+
11489+type MockWidgetFactory_Expecter struct {
11490+ mock *mock.Mock
11491+}
11492+
11493+func (_m *MockWidgetFactory) EXPECT() *MockWidgetFactory_Expecter {
11494+ return &MockWidgetFactory_Expecter{mock: &_m.Mock}
11495+}
11496+
11497+// NewBox provides a mock function for the type MockWidgetFactory
11498+func (_mock *MockWidgetFactory) NewBox(orientation layout.Orientation, spacing int) layout.BoxWidget {
11499+ ret := _mock.Called(orientation, spacing)
11500+
11501+ if len(ret) == 0 {
11502+ panic("no return value specified for NewBox")
11503+ }
11504+
11505+ var r0 layout.BoxWidget
11506+ if returnFunc, ok := ret.Get(0).(func(layout.Orientation, int) layout.BoxWidget); ok {
11507+ r0 = returnFunc(orientation, spacing)
11508+ } else {
11509+ if ret.Get(0) != nil {
11510+ r0 = ret.Get(0).(layout.BoxWidget)
11511+ }
11512+ }
11513+ return r0
11514+}
11515+
11516+// MockWidgetFactory_NewBox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewBox'
11517+type MockWidgetFactory_NewBox_Call struct {
11518+ *mock.Call
11519+}
11520+
11521+// NewBox is a helper method to define mock.On call
11522+// - orientation layout.Orientation
11523+// - spacing int
11524+func (_e *MockWidgetFactory_Expecter) NewBox(orientation interface{}, spacing interface{}) *MockWidgetFactory_NewBox_Call {
11525+ return &MockWidgetFactory_NewBox_Call{Call: _e.mock.On("NewBox", orientation, spacing)}
11526+}
11527+
11528+func (_c *MockWidgetFactory_NewBox_Call) Run(run func(orientation layout.Orientation, spacing int)) *MockWidgetFactory_NewBox_Call {
11529+ _c.Call.Run(func(args mock.Arguments) {
11530+ var arg0 layout.Orientation
11531+ if args[0] != nil {
11532+ arg0 = args[0].(layout.Orientation)
11533+ }
11534+ var arg1 int
11535+ if args[1] != nil {
11536+ arg1 = args[1].(int)
11537+ }
11538+ run(
11539+ arg0,
11540+ arg1,
11541+ )
11542+ })
11543+ return _c
11544+}
11545+
11546+func (_c *MockWidgetFactory_NewBox_Call) Return(boxWidget layout.BoxWidget) *MockWidgetFactory_NewBox_Call {
11547+ _c.Call.Return(boxWidget)
11548+ return _c
11549+}
11550+
11551+func (_c *MockWidgetFactory_NewBox_Call) RunAndReturn(run func(orientation layout.Orientation, spacing int) layout.BoxWidget) *MockWidgetFactory_NewBox_Call {
11552+ _c.Call.Return(run)
11553+ return _c
11554+}
11555+
11556+// NewButton provides a mock function for the type MockWidgetFactory
11557+func (_mock *MockWidgetFactory) NewButton() layout.ButtonWidget {
11558+ ret := _mock.Called()
11559+
11560+ if len(ret) == 0 {
11561+ panic("no return value specified for NewButton")
11562+ }
11563+
11564+ var r0 layout.ButtonWidget
11565+ if returnFunc, ok := ret.Get(0).(func() layout.ButtonWidget); ok {
11566+ r0 = returnFunc()
11567+ } else {
11568+ if ret.Get(0) != nil {
11569+ r0 = ret.Get(0).(layout.ButtonWidget)
11570+ }
11571+ }
11572+ return r0
11573+}
11574+
11575+// MockWidgetFactory_NewButton_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewButton'
11576+type MockWidgetFactory_NewButton_Call struct {
11577+ *mock.Call
11578+}
11579+
11580+// NewButton is a helper method to define mock.On call
11581+func (_e *MockWidgetFactory_Expecter) NewButton() *MockWidgetFactory_NewButton_Call {
11582+ return &MockWidgetFactory_NewButton_Call{Call: _e.mock.On("NewButton")}
11583+}
11584+
11585+func (_c *MockWidgetFactory_NewButton_Call) Run(run func()) *MockWidgetFactory_NewButton_Call {
11586+ _c.Call.Run(func(args mock.Arguments) {
11587+ run()
11588+ })
11589+ return _c
11590+}
11591+
11592+func (_c *MockWidgetFactory_NewButton_Call) Return(buttonWidget layout.ButtonWidget) *MockWidgetFactory_NewButton_Call {
11593+ _c.Call.Return(buttonWidget)
11594+ return _c
11595+}
11596+
11597+func (_c *MockWidgetFactory_NewButton_Call) RunAndReturn(run func() layout.ButtonWidget) *MockWidgetFactory_NewButton_Call {
11598+ _c.Call.Return(run)
11599+ return _c
11600+}
11601+
11602+// NewImage provides a mock function for the type MockWidgetFactory
11603+func (_mock *MockWidgetFactory) NewImage() layout.ImageWidget {
11604+ ret := _mock.Called()
11605+
11606+ if len(ret) == 0 {
11607+ panic("no return value specified for NewImage")
11608+ }
11609+
11610+ var r0 layout.ImageWidget
11611+ if returnFunc, ok := ret.Get(0).(func() layout.ImageWidget); ok {
11612+ r0 = returnFunc()
11613+ } else {
11614+ if ret.Get(0) != nil {
11615+ r0 = ret.Get(0).(layout.ImageWidget)
11616+ }
11617+ }
11618+ return r0
11619+}
11620+
11621+// MockWidgetFactory_NewImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewImage'
11622+type MockWidgetFactory_NewImage_Call struct {
11623+ *mock.Call
11624+}
11625+
11626+// NewImage is a helper method to define mock.On call
11627+func (_e *MockWidgetFactory_Expecter) NewImage() *MockWidgetFactory_NewImage_Call {
11628+ return &MockWidgetFactory_NewImage_Call{Call: _e.mock.On("NewImage")}
11629+}
11630+
11631+func (_c *MockWidgetFactory_NewImage_Call) Run(run func()) *MockWidgetFactory_NewImage_Call {
11632+ _c.Call.Run(func(args mock.Arguments) {
11633+ run()
11634+ })
11635+ return _c
11636+}
11637+
11638+func (_c *MockWidgetFactory_NewImage_Call) Return(imageWidget layout.ImageWidget) *MockWidgetFactory_NewImage_Call {
11639+ _c.Call.Return(imageWidget)
11640+ return _c
11641+}
11642+
11643+func (_c *MockWidgetFactory_NewImage_Call) RunAndReturn(run func() layout.ImageWidget) *MockWidgetFactory_NewImage_Call {
11644+ _c.Call.Return(run)
11645+ return _c
11646+}
11647+
11648+// NewLabel provides a mock function for the type MockWidgetFactory
11649+func (_mock *MockWidgetFactory) NewLabel(text string) layout.LabelWidget {
11650+ ret := _mock.Called(text)
11651+
11652+ if len(ret) == 0 {
11653+ panic("no return value specified for NewLabel")
11654+ }
11655+
11656+ var r0 layout.LabelWidget
11657+ if returnFunc, ok := ret.Get(0).(func(string) layout.LabelWidget); ok {
11658+ r0 = returnFunc(text)
11659+ } else {
11660+ if ret.Get(0) != nil {
11661+ r0 = ret.Get(0).(layout.LabelWidget)
11662+ }
11663+ }
11664+ return r0
11665+}
11666+
11667+// MockWidgetFactory_NewLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewLabel'
11668+type MockWidgetFactory_NewLabel_Call struct {
11669+ *mock.Call
11670+}
11671+
11672+// NewLabel is a helper method to define mock.On call
11673+// - text string
11674+func (_e *MockWidgetFactory_Expecter) NewLabel(text interface{}) *MockWidgetFactory_NewLabel_Call {
11675+ return &MockWidgetFactory_NewLabel_Call{Call: _e.mock.On("NewLabel", text)}
11676+}
11677+
11678+func (_c *MockWidgetFactory_NewLabel_Call) Run(run func(text string)) *MockWidgetFactory_NewLabel_Call {
11679+ _c.Call.Run(func(args mock.Arguments) {
11680+ var arg0 string
11681+ if args[0] != nil {
11682+ arg0 = args[0].(string)
11683+ }
11684+ run(
11685+ arg0,
11686+ )
11687+ })
11688+ return _c
11689+}
11690+
11691+func (_c *MockWidgetFactory_NewLabel_Call) Return(labelWidget layout.LabelWidget) *MockWidgetFactory_NewLabel_Call {
11692+ _c.Call.Return(labelWidget)
11693+ return _c
11694+}
11695+
11696+func (_c *MockWidgetFactory_NewLabel_Call) RunAndReturn(run func(text string) layout.LabelWidget) *MockWidgetFactory_NewLabel_Call {
11697+ _c.Call.Return(run)
11698+ return _c
11699+}
11700+
11701+// NewOverlay provides a mock function for the type MockWidgetFactory
11702+func (_mock *MockWidgetFactory) NewOverlay() layout.OverlayWidget {
11703+ ret := _mock.Called()
11704+
11705+ if len(ret) == 0 {
11706+ panic("no return value specified for NewOverlay")
11707+ }
11708+
11709+ var r0 layout.OverlayWidget
11710+ if returnFunc, ok := ret.Get(0).(func() layout.OverlayWidget); ok {
11711+ r0 = returnFunc()
11712+ } else {
11713+ if ret.Get(0) != nil {
11714+ r0 = ret.Get(0).(layout.OverlayWidget)
11715+ }
11716+ }
11717+ return r0
11718+}
11719+
11720+// MockWidgetFactory_NewOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewOverlay'
11721+type MockWidgetFactory_NewOverlay_Call struct {
11722+ *mock.Call
11723+}
11724+
11725+// NewOverlay is a helper method to define mock.On call
11726+func (_e *MockWidgetFactory_Expecter) NewOverlay() *MockWidgetFactory_NewOverlay_Call {
11727+ return &MockWidgetFactory_NewOverlay_Call{Call: _e.mock.On("NewOverlay")}
11728+}
11729+
11730+func (_c *MockWidgetFactory_NewOverlay_Call) Run(run func()) *MockWidgetFactory_NewOverlay_Call {
11731+ _c.Call.Run(func(args mock.Arguments) {
11732+ run()
11733+ })
11734+ return _c
11735+}
11736+
11737+func (_c *MockWidgetFactory_NewOverlay_Call) Return(overlayWidget layout.OverlayWidget) *MockWidgetFactory_NewOverlay_Call {
11738+ _c.Call.Return(overlayWidget)
11739+ return _c
11740+}
11741+
11742+func (_c *MockWidgetFactory_NewOverlay_Call) RunAndReturn(run func() layout.OverlayWidget) *MockWidgetFactory_NewOverlay_Call {
11743+ _c.Call.Return(run)
11744+ return _c
11745+}
11746+
11747+// NewPaned provides a mock function for the type MockWidgetFactory
11748+func (_mock *MockWidgetFactory) NewPaned(orientation layout.Orientation) layout.PanedWidget {
11749+ ret := _mock.Called(orientation)
11750+
11751+ if len(ret) == 0 {
11752+ panic("no return value specified for NewPaned")
11753+ }
11754+
11755+ var r0 layout.PanedWidget
11756+ if returnFunc, ok := ret.Get(0).(func(layout.Orientation) layout.PanedWidget); ok {
11757+ r0 = returnFunc(orientation)
11758+ } else {
11759+ if ret.Get(0) != nil {
11760+ r0 = ret.Get(0).(layout.PanedWidget)
11761+ }
11762+ }
11763+ return r0
11764+}
11765+
11766+// MockWidgetFactory_NewPaned_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewPaned'
11767+type MockWidgetFactory_NewPaned_Call struct {
11768+ *mock.Call
11769+}
11770+
11771+// NewPaned is a helper method to define mock.On call
11772+// - orientation layout.Orientation
11773+func (_e *MockWidgetFactory_Expecter) NewPaned(orientation interface{}) *MockWidgetFactory_NewPaned_Call {
11774+ return &MockWidgetFactory_NewPaned_Call{Call: _e.mock.On("NewPaned", orientation)}
11775+}
11776+
11777+func (_c *MockWidgetFactory_NewPaned_Call) Run(run func(orientation layout.Orientation)) *MockWidgetFactory_NewPaned_Call {
11778+ _c.Call.Run(func(args mock.Arguments) {
11779+ var arg0 layout.Orientation
11780+ if args[0] != nil {
11781+ arg0 = args[0].(layout.Orientation)
11782+ }
11783+ run(
11784+ arg0,
11785+ )
11786+ })
11787+ return _c
11788+}
11789+
11790+func (_c *MockWidgetFactory_NewPaned_Call) Return(panedWidget layout.PanedWidget) *MockWidgetFactory_NewPaned_Call {
11791+ _c.Call.Return(panedWidget)
11792+ return _c
11793+}
11794+
11795+func (_c *MockWidgetFactory_NewPaned_Call) RunAndReturn(run func(orientation layout.Orientation) layout.PanedWidget) *MockWidgetFactory_NewPaned_Call {
11796+ _c.Call.Return(run)
11797+ return _c
11798+}
11799+
11800+// NewProgressBar provides a mock function for the type MockWidgetFactory
11801+func (_mock *MockWidgetFactory) NewProgressBar() layout.ProgressBarWidget {
11802+ ret := _mock.Called()
11803+
11804+ if len(ret) == 0 {
11805+ panic("no return value specified for NewProgressBar")
11806+ }
11807+
11808+ var r0 layout.ProgressBarWidget
11809+ if returnFunc, ok := ret.Get(0).(func() layout.ProgressBarWidget); ok {
11810+ r0 = returnFunc()
11811+ } else {
11812+ if ret.Get(0) != nil {
11813+ r0 = ret.Get(0).(layout.ProgressBarWidget)
11814+ }
11815+ }
11816+ return r0
11817+}
11818+
11819+// MockWidgetFactory_NewProgressBar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewProgressBar'
11820+type MockWidgetFactory_NewProgressBar_Call struct {
11821+ *mock.Call
11822+}
11823+
11824+// NewProgressBar is a helper method to define mock.On call
11825+func (_e *MockWidgetFactory_Expecter) NewProgressBar() *MockWidgetFactory_NewProgressBar_Call {
11826+ return &MockWidgetFactory_NewProgressBar_Call{Call: _e.mock.On("NewProgressBar")}
11827+}
11828+
11829+func (_c *MockWidgetFactory_NewProgressBar_Call) Run(run func()) *MockWidgetFactory_NewProgressBar_Call {
11830+ _c.Call.Run(func(args mock.Arguments) {
11831+ run()
11832+ })
11833+ return _c
11834+}
11835+
11836+func (_c *MockWidgetFactory_NewProgressBar_Call) Return(progressBarWidget layout.ProgressBarWidget) *MockWidgetFactory_NewProgressBar_Call {
11837+ _c.Call.Return(progressBarWidget)
11838+ return _c
11839+}
11840+
11841+func (_c *MockWidgetFactory_NewProgressBar_Call) RunAndReturn(run func() layout.ProgressBarWidget) *MockWidgetFactory_NewProgressBar_Call {
11842+ _c.Call.Return(run)
11843+ return _c
11844+}
11845+
11846+// WrapWidget provides a mock function for the type MockWidgetFactory
11847+func (_mock *MockWidgetFactory) WrapWidget(w *gtk.Widget) layout.Widget {
11848+ ret := _mock.Called(w)
11849+
11850+ if len(ret) == 0 {
11851+ panic("no return value specified for WrapWidget")
11852+ }
11853+
11854+ var r0 layout.Widget
11855+ if returnFunc, ok := ret.Get(0).(func(*gtk.Widget) layout.Widget); ok {
11856+ r0 = returnFunc(w)
11857+ } else {
11858+ if ret.Get(0) != nil {
11859+ r0 = ret.Get(0).(layout.Widget)
11860+ }
11861+ }
11862+ return r0
11863+}
11864+
11865+// MockWidgetFactory_WrapWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WrapWidget'
11866+type MockWidgetFactory_WrapWidget_Call struct {
11867+ *mock.Call
11868+}
11869+
11870+// WrapWidget is a helper method to define mock.On call
11871+// - w *gtk.Widget
11872+func (_e *MockWidgetFactory_Expecter) WrapWidget(w interface{}) *MockWidgetFactory_WrapWidget_Call {
11873+ return &MockWidgetFactory_WrapWidget_Call{Call: _e.mock.On("WrapWidget", w)}
11874+}
11875+
11876+func (_c *MockWidgetFactory_WrapWidget_Call) Run(run func(w *gtk.Widget)) *MockWidgetFactory_WrapWidget_Call {
11877+ _c.Call.Run(func(args mock.Arguments) {
11878+ var arg0 *gtk.Widget
11879+ if args[0] != nil {
11880+ arg0 = args[0].(*gtk.Widget)
11881+ }
11882+ run(
11883+ arg0,
11884+ )
11885+ })
11886+ return _c
11887+}
11888+
11889+func (_c *MockWidgetFactory_WrapWidget_Call) Return(widget layout.Widget) *MockWidgetFactory_WrapWidget_Call {
11890+ _c.Call.Return(widget)
11891+ return _c
11892+}
11893+
11894+func (_c *MockWidgetFactory_WrapWidget_Call) RunAndReturn(run func(w *gtk.Widget) layout.Widget) *MockWidgetFactory_WrapWidget_Call {
11895+ _c.Call.Return(run)
11896+ return _c
11897+}
11898+
11899+// 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.
11900+// The first argument is typically a *testing.T value.
11901+func NewMockPaneRenderer(t interface {
11902+ mock.TestingT
11903+ Cleanup(func())
11904+}) *MockPaneRenderer {
11905+ mock := &MockPaneRenderer{}
11906+ mock.Mock.Test(t)
11907+
11908+ t.Cleanup(func() { mock.AssertExpectations(t) })
11909+
11910+ return mock
11911+}
11912+
11913+// MockPaneRenderer is an autogenerated mock type for the PaneRenderer type
11914+type MockPaneRenderer struct {
11915+ mock.Mock
11916+}
11917+
11918+type MockPaneRenderer_Expecter struct {
11919+ mock *mock.Mock
11920+}
11921+
11922+func (_m *MockPaneRenderer) EXPECT() *MockPaneRenderer_Expecter {
11923+ return &MockPaneRenderer_Expecter{mock: &_m.Mock}
11924+}
11925+
11926+// RenderPane provides a mock function for the type MockPaneRenderer
11927+func (_mock *MockPaneRenderer) RenderPane(paneID string, webViewWidget layout.Widget) layout.Widget {
11928+ ret := _mock.Called(paneID, webViewWidget)
11929+
11930+ if len(ret) == 0 {
11931+ panic("no return value specified for RenderPane")
11932+ }
11933+
11934+ var r0 layout.Widget
11935+ if returnFunc, ok := ret.Get(0).(func(string, layout.Widget) layout.Widget); ok {
11936+ r0 = returnFunc(paneID, webViewWidget)
11937+ } else {
11938+ if ret.Get(0) != nil {
11939+ r0 = ret.Get(0).(layout.Widget)
11940+ }
11941+ }
11942+ return r0
11943+}
11944+
11945+// MockPaneRenderer_RenderPane_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenderPane'
11946+type MockPaneRenderer_RenderPane_Call struct {
11947+ *mock.Call
11948+}
11949+
11950+// RenderPane is a helper method to define mock.On call
11951+// - paneID string
11952+// - webViewWidget layout.Widget
11953+func (_e *MockPaneRenderer_Expecter) RenderPane(paneID interface{}, webViewWidget interface{}) *MockPaneRenderer_RenderPane_Call {
11954+ return &MockPaneRenderer_RenderPane_Call{Call: _e.mock.On("RenderPane", paneID, webViewWidget)}
11955+}
11956+
11957+func (_c *MockPaneRenderer_RenderPane_Call) Run(run func(paneID string, webViewWidget layout.Widget)) *MockPaneRenderer_RenderPane_Call {
11958+ _c.Call.Run(func(args mock.Arguments) {
11959+ var arg0 string
11960+ if args[0] != nil {
11961+ arg0 = args[0].(string)
11962+ }
11963+ var arg1 layout.Widget
11964+ if args[1] != nil {
11965+ arg1 = args[1].(layout.Widget)
11966+ }
11967+ run(
11968+ arg0,
11969+ arg1,
11970+ )
11971+ })
11972+ return _c
11973+}
11974+
11975+func (_c *MockPaneRenderer_RenderPane_Call) Return(widget layout.Widget) *MockPaneRenderer_RenderPane_Call {
11976+ _c.Call.Return(widget)
11977+ return _c
11978+}
11979+
11980+func (_c *MockPaneRenderer_RenderPane_Call) RunAndReturn(run func(paneID string, webViewWidget layout.Widget) layout.Widget) *MockPaneRenderer_RenderPane_Call {
11981+ _c.Call.Return(run)
11982+ return _c
11983+}

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