detached fc13113

chore(mocks): regenerate mocks with mockery v3.8.1

commit
fc13113aa15f609b6af5d5a7b93e469804ddb000
author
brice · · 2026-10-14 18:40 UTC
parent
cef008d
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
7 files · +100 -37
M internal/ports/out/mocks/mock_CAPI.go +24 -15
@@ -16,10 +16,19 @@ func NewMockCAPI(t interface {
1616 mock.TestingT
1717 Cleanup(func())
1818 }) *MockCAPI {
19+ if helper, ok := t.(interface{ Helper() }); ok {
20+ helper.Helper()
21+ }
22+
1923 mock := &MockCAPI{}
2024 mock.Mock.Test(t)
2125
22- t.Cleanup(func() { mock.AssertExpectations(t) })
26+ t.Cleanup(func() {
27+ if helper, ok := t.(interface{ Helper() }); ok {
28+ helper.Helper()
29+ }
30+ mock.AssertExpectations(t)
31+ })
2332
2433 return mock
2534 }
@@ -84,7 +93,7 @@ type MockCAPI_PWInit_Call struct {
8493 // PWInit is a helper method to define mock.On call
8594 // - argc *int32
8695 // - argv ***byte
87-func (_e *MockCAPI_Expecter) PWInit(argc interface{}, argv interface{}) *MockCAPI_PWInit_Call {
96+func (_e *MockCAPI_Expecter) PWInit(argc any, argv any) *MockCAPI_PWInit_Call {
8897 return &MockCAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)}
8998 }
9099
@@ -129,7 +138,7 @@ type MockCAPI_PWMainLoopDestroy_Call struct {
129138
130139 // PWMainLoopDestroy is a helper method to define mock.On call
131140 // - loop unsafe.Pointer
132-func (_e *MockCAPI_Expecter) PWMainLoopDestroy(loop interface{}) *MockCAPI_PWMainLoopDestroy_Call {
141+func (_e *MockCAPI_Expecter) PWMainLoopDestroy(loop any) *MockCAPI_PWMainLoopDestroy_Call {
133142 return &MockCAPI_PWMainLoopDestroy_Call{Call: _e.mock.On("PWMainLoopDestroy", loop)}
134143 }
135144
@@ -180,7 +189,7 @@ type MockCAPI_PWMainLoopGetLoop_Call struct {
180189
181190 // PWMainLoopGetLoop is a helper method to define mock.On call
182191 // - loop unsafe.Pointer
183-func (_e *MockCAPI_Expecter) PWMainLoopGetLoop(loop interface{}) *MockCAPI_PWMainLoopGetLoop_Call {
192+func (_e *MockCAPI_Expecter) PWMainLoopGetLoop(loop any) *MockCAPI_PWMainLoopGetLoop_Call {
184193 return &MockCAPI_PWMainLoopGetLoop_Call{Call: _e.mock.On("PWMainLoopGetLoop", loop)}
185194 }
186195
@@ -231,7 +240,7 @@ type MockCAPI_PWMainLoopNew_Call struct {
231240
232241 // PWMainLoopNew is a helper method to define mock.On call
233242 // - props unsafe.Pointer
234-func (_e *MockCAPI_Expecter) PWMainLoopNew(props interface{}) *MockCAPI_PWMainLoopNew_Call {
243+func (_e *MockCAPI_Expecter) PWMainLoopNew(props any) *MockCAPI_PWMainLoopNew_Call {
235244 return &MockCAPI_PWMainLoopNew_Call{Call: _e.mock.On("PWMainLoopNew", props)}
236245 }
237246
@@ -282,7 +291,7 @@ type MockCAPI_PWMainLoopQuit_Call struct {
282291
283292 // PWMainLoopQuit is a helper method to define mock.On call
284293 // - loop unsafe.Pointer
285-func (_e *MockCAPI_Expecter) PWMainLoopQuit(loop interface{}) *MockCAPI_PWMainLoopQuit_Call {
294+func (_e *MockCAPI_Expecter) PWMainLoopQuit(loop any) *MockCAPI_PWMainLoopQuit_Call {
286295 return &MockCAPI_PWMainLoopQuit_Call{Call: _e.mock.On("PWMainLoopQuit", loop)}
287296 }
288297
@@ -333,7 +342,7 @@ type MockCAPI_PWMainLoopRun_Call struct {
333342
334343 // PWMainLoopRun is a helper method to define mock.On call
335344 // - loop unsafe.Pointer
336-func (_e *MockCAPI_Expecter) PWMainLoopRun(loop interface{}) *MockCAPI_PWMainLoopRun_Call {
345+func (_e *MockCAPI_Expecter) PWMainLoopRun(loop any) *MockCAPI_PWMainLoopRun_Call {
337346 return &MockCAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)}
338347 }
339348
@@ -387,7 +396,7 @@ type MockCAPI_PWStreamAddListener_Call struct {
387396 // - listener unsafe.Pointer
388397 // - events unsafe.Pointer
389398 // - data unsafe.Pointer
390-func (_e *MockCAPI_Expecter) PWStreamAddListener(stream interface{}, listener interface{}, events interface{}, data interface{}) *MockCAPI_PWStreamAddListener_Call {
399+func (_e *MockCAPI_Expecter) PWStreamAddListener(stream any, listener any, events any, data any) *MockCAPI_PWStreamAddListener_Call {
391400 return &MockCAPI_PWStreamAddListener_Call{Call: _e.mock.On("PWStreamAddListener", stream, listener, events, data)}
392401 }
393402
@@ -458,7 +467,7 @@ type MockCAPI_PWStreamConnect_Call struct {
458467 // - flags uint32
459468 // - ports unsafe.Pointer
460469 // - n_ports uint32
461-func (_e *MockCAPI_Expecter) PWStreamConnect(stream interface{}, direction interface{}, id interface{}, flags interface{}, ports interface{}, n_ports interface{}) *MockCAPI_PWStreamConnect_Call {
470+func (_e *MockCAPI_Expecter) PWStreamConnect(stream any, direction any, id any, flags any, ports any, n_ports any) *MockCAPI_PWStreamConnect_Call {
462471 return &MockCAPI_PWStreamConnect_Call{Call: _e.mock.On("PWStreamConnect", stream, direction, id, flags, ports, n_ports)}
463472 }
464473
@@ -534,7 +543,7 @@ type MockCAPI_PWStreamDequeueBuffer_Call struct {
534543
535544 // PWStreamDequeueBuffer is a helper method to define mock.On call
536545 // - stream unsafe.Pointer
537-func (_e *MockCAPI_Expecter) PWStreamDequeueBuffer(stream interface{}) *MockCAPI_PWStreamDequeueBuffer_Call {
546+func (_e *MockCAPI_Expecter) PWStreamDequeueBuffer(stream any) *MockCAPI_PWStreamDequeueBuffer_Call {
538547 return &MockCAPI_PWStreamDequeueBuffer_Call{Call: _e.mock.On("PWStreamDequeueBuffer", stream)}
539548 }
540549
@@ -574,7 +583,7 @@ type MockCAPI_PWStreamDestroy_Call struct {
574583
575584 // PWStreamDestroy is a helper method to define mock.On call
576585 // - stream unsafe.Pointer
577-func (_e *MockCAPI_Expecter) PWStreamDestroy(stream interface{}) *MockCAPI_PWStreamDestroy_Call {
586+func (_e *MockCAPI_Expecter) PWStreamDestroy(stream any) *MockCAPI_PWStreamDestroy_Call {
578587 return &MockCAPI_PWStreamDestroy_Call{Call: _e.mock.On("PWStreamDestroy", stream)}
579588 }
580589
@@ -625,7 +634,7 @@ type MockCAPI_PWStreamDisconnect_Call struct {
625634
626635 // PWStreamDisconnect is a helper method to define mock.On call
627636 // - stream unsafe.Pointer
628-func (_e *MockCAPI_Expecter) PWStreamDisconnect(stream interface{}) *MockCAPI_PWStreamDisconnect_Call {
637+func (_e *MockCAPI_Expecter) PWStreamDisconnect(stream any) *MockCAPI_PWStreamDisconnect_Call {
629638 return &MockCAPI_PWStreamDisconnect_Call{Call: _e.mock.On("PWStreamDisconnect", stream)}
630639 }
631640
@@ -680,7 +689,7 @@ type MockCAPI_PWStreamNewSimple_Call struct {
680689 // - props unsafe.Pointer
681690 // - events unsafe.Pointer
682691 // - data unsafe.Pointer
683-func (_e *MockCAPI_Expecter) PWStreamNewSimple(context interface{}, name interface{}, props interface{}, events interface{}, data interface{}) *MockCAPI_PWStreamNewSimple_Call {
692+func (_e *MockCAPI_Expecter) PWStreamNewSimple(context any, name any, props any, events any, data any) *MockCAPI_PWStreamNewSimple_Call {
684693 return &MockCAPI_PWStreamNewSimple_Call{Call: _e.mock.On("PWStreamNewSimple", context, name, props, events, data)}
685694 }
686695
@@ -752,7 +761,7 @@ type MockCAPI_PWStreamQueueBuffer_Call struct {
752761 // PWStreamQueueBuffer is a helper method to define mock.On call
753762 // - stream unsafe.Pointer
754763 // - buffer unsafe.Pointer
755-func (_e *MockCAPI_Expecter) PWStreamQueueBuffer(stream interface{}, buffer interface{}) *MockCAPI_PWStreamQueueBuffer_Call {
764+func (_e *MockCAPI_Expecter) PWStreamQueueBuffer(stream any, buffer any) *MockCAPI_PWStreamQueueBuffer_Call {
756765 return &MockCAPI_PWStreamQueueBuffer_Call{Call: _e.mock.On("PWStreamQueueBuffer", stream, buffer)}
757766 }
758767
@@ -809,7 +818,7 @@ type MockCAPI_PWStreamSetActive_Call struct {
809818 // PWStreamSetActive is a helper method to define mock.On call
810819 // - stream unsafe.Pointer
811820 // - active bool
812-func (_e *MockCAPI_Expecter) PWStreamSetActive(stream interface{}, active interface{}) *MockCAPI_PWStreamSetActive_Call {
821+func (_e *MockCAPI_Expecter) PWStreamSetActive(stream any, active any) *MockCAPI_PWStreamSetActive_Call {
813822 return &MockCAPI_PWStreamSetActive_Call{Call: _e.mock.On("PWStreamSetActive", stream, active)}
814823 }
815824
@@ -16,10 +16,19 @@ func NewMockCAPI(t interface {
16 mock.TestingT16 mock.TestingT
17 Cleanup(func())17 Cleanup(func())
18 }) *MockCAPI {18 }) *MockCAPI {
19+ if helper, ok := t.(interface{ Helper() }); ok {
20+ helper.Helper()
21+ }
22+
19 mock := &MockCAPI{}23 mock := &MockCAPI{}
20 mock.Mock.Test(t)24 mock.Mock.Test(t)
21 25
22- t.Cleanup(func() { mock.AssertExpectations(t) })26+ t.Cleanup(func() {
27+ if helper, ok := t.(interface{ Helper() }); ok {
28+ helper.Helper()
29+ }
30+ mock.AssertExpectations(t)
31+ })
23 32
24 return mock33 return mock
25 }34 }
@@ -84,7 +93,7 @@ type MockCAPI_PWInit_Call struct {
84 // PWInit is a helper method to define mock.On call93 // PWInit is a helper method to define mock.On call
85 // - argc *int3294 // - argc *int32
86 // - argv ***byte95 // - argv ***byte
87-func (_e *MockCAPI_Expecter) PWInit(argc interface{}, argv interface{}) *MockCAPI_PWInit_Call {96+func (_e *MockCAPI_Expecter) PWInit(argc any, argv any) *MockCAPI_PWInit_Call {
88 return &MockCAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)}97 return &MockCAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)}
89 }98 }
90 99
@@ -129,7 +138,7 @@ type MockCAPI_PWMainLoopDestroy_Call struct {
129 138
130 // PWMainLoopDestroy is a helper method to define mock.On call139 // PWMainLoopDestroy is a helper method to define mock.On call
131 // - loop unsafe.Pointer140 // - loop unsafe.Pointer
132-func (_e *MockCAPI_Expecter) PWMainLoopDestroy(loop interface{}) *MockCAPI_PWMainLoopDestroy_Call {141+func (_e *MockCAPI_Expecter) PWMainLoopDestroy(loop any) *MockCAPI_PWMainLoopDestroy_Call {
133 return &MockCAPI_PWMainLoopDestroy_Call{Call: _e.mock.On("PWMainLoopDestroy", loop)}142 return &MockCAPI_PWMainLoopDestroy_Call{Call: _e.mock.On("PWMainLoopDestroy", loop)}
134 }143 }
135 144
@@ -180,7 +189,7 @@ type MockCAPI_PWMainLoopGetLoop_Call struct {
180 189
181 // PWMainLoopGetLoop is a helper method to define mock.On call190 // PWMainLoopGetLoop is a helper method to define mock.On call
182 // - loop unsafe.Pointer191 // - loop unsafe.Pointer
183-func (_e *MockCAPI_Expecter) PWMainLoopGetLoop(loop interface{}) *MockCAPI_PWMainLoopGetLoop_Call {192+func (_e *MockCAPI_Expecter) PWMainLoopGetLoop(loop any) *MockCAPI_PWMainLoopGetLoop_Call {
184 return &MockCAPI_PWMainLoopGetLoop_Call{Call: _e.mock.On("PWMainLoopGetLoop", loop)}193 return &MockCAPI_PWMainLoopGetLoop_Call{Call: _e.mock.On("PWMainLoopGetLoop", loop)}
185 }194 }
186 195
@@ -231,7 +240,7 @@ type MockCAPI_PWMainLoopNew_Call struct {
231 240
232 // PWMainLoopNew is a helper method to define mock.On call241 // PWMainLoopNew is a helper method to define mock.On call
233 // - props unsafe.Pointer242 // - props unsafe.Pointer
234-func (_e *MockCAPI_Expecter) PWMainLoopNew(props interface{}) *MockCAPI_PWMainLoopNew_Call {243+func (_e *MockCAPI_Expecter) PWMainLoopNew(props any) *MockCAPI_PWMainLoopNew_Call {
235 return &MockCAPI_PWMainLoopNew_Call{Call: _e.mock.On("PWMainLoopNew", props)}244 return &MockCAPI_PWMainLoopNew_Call{Call: _e.mock.On("PWMainLoopNew", props)}
236 }245 }
237 246
@@ -282,7 +291,7 @@ type MockCAPI_PWMainLoopQuit_Call struct {
282 291
283 // PWMainLoopQuit is a helper method to define mock.On call292 // PWMainLoopQuit is a helper method to define mock.On call
284 // - loop unsafe.Pointer293 // - loop unsafe.Pointer
285-func (_e *MockCAPI_Expecter) PWMainLoopQuit(loop interface{}) *MockCAPI_PWMainLoopQuit_Call {294+func (_e *MockCAPI_Expecter) PWMainLoopQuit(loop any) *MockCAPI_PWMainLoopQuit_Call {
286 return &MockCAPI_PWMainLoopQuit_Call{Call: _e.mock.On("PWMainLoopQuit", loop)}295 return &MockCAPI_PWMainLoopQuit_Call{Call: _e.mock.On("PWMainLoopQuit", loop)}
287 }296 }
288 297
@@ -333,7 +342,7 @@ type MockCAPI_PWMainLoopRun_Call struct {
333 342
334 // PWMainLoopRun is a helper method to define mock.On call343 // PWMainLoopRun is a helper method to define mock.On call
335 // - loop unsafe.Pointer344 // - loop unsafe.Pointer
336-func (_e *MockCAPI_Expecter) PWMainLoopRun(loop interface{}) *MockCAPI_PWMainLoopRun_Call {345+func (_e *MockCAPI_Expecter) PWMainLoopRun(loop any) *MockCAPI_PWMainLoopRun_Call {
337 return &MockCAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)}346 return &MockCAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)}
338 }347 }
339 348
@@ -387,7 +396,7 @@ type MockCAPI_PWStreamAddListener_Call struct {
387 // - listener unsafe.Pointer396 // - listener unsafe.Pointer
388 // - events unsafe.Pointer397 // - events unsafe.Pointer
389 // - data unsafe.Pointer398 // - data unsafe.Pointer
390-func (_e *MockCAPI_Expecter) PWStreamAddListener(stream interface{}, listener interface{}, events interface{}, data interface{}) *MockCAPI_PWStreamAddListener_Call {399+func (_e *MockCAPI_Expecter) PWStreamAddListener(stream any, listener any, events any, data any) *MockCAPI_PWStreamAddListener_Call {
391 return &MockCAPI_PWStreamAddListener_Call{Call: _e.mock.On("PWStreamAddListener", stream, listener, events, data)}400 return &MockCAPI_PWStreamAddListener_Call{Call: _e.mock.On("PWStreamAddListener", stream, listener, events, data)}
392 }401 }
393 402
@@ -458,7 +467,7 @@ type MockCAPI_PWStreamConnect_Call struct {
458 // - flags uint32467 // - flags uint32
459 // - ports unsafe.Pointer468 // - ports unsafe.Pointer
460 // - n_ports uint32469 // - n_ports uint32
461-func (_e *MockCAPI_Expecter) PWStreamConnect(stream interface{}, direction interface{}, id interface{}, flags interface{}, ports interface{}, n_ports interface{}) *MockCAPI_PWStreamConnect_Call {470+func (_e *MockCAPI_Expecter) PWStreamConnect(stream any, direction any, id any, flags any, ports any, n_ports any) *MockCAPI_PWStreamConnect_Call {
462 return &MockCAPI_PWStreamConnect_Call{Call: _e.mock.On("PWStreamConnect", stream, direction, id, flags, ports, n_ports)}471 return &MockCAPI_PWStreamConnect_Call{Call: _e.mock.On("PWStreamConnect", stream, direction, id, flags, ports, n_ports)}
463 }472 }
464 473
@@ -534,7 +543,7 @@ type MockCAPI_PWStreamDequeueBuffer_Call struct {
534 543
535 // PWStreamDequeueBuffer is a helper method to define mock.On call544 // PWStreamDequeueBuffer is a helper method to define mock.On call
536 // - stream unsafe.Pointer545 // - stream unsafe.Pointer
537-func (_e *MockCAPI_Expecter) PWStreamDequeueBuffer(stream interface{}) *MockCAPI_PWStreamDequeueBuffer_Call {546+func (_e *MockCAPI_Expecter) PWStreamDequeueBuffer(stream any) *MockCAPI_PWStreamDequeueBuffer_Call {
538 return &MockCAPI_PWStreamDequeueBuffer_Call{Call: _e.mock.On("PWStreamDequeueBuffer", stream)}547 return &MockCAPI_PWStreamDequeueBuffer_Call{Call: _e.mock.On("PWStreamDequeueBuffer", stream)}
539 }548 }
540 549
@@ -574,7 +583,7 @@ type MockCAPI_PWStreamDestroy_Call struct {
574 583
575 // PWStreamDestroy is a helper method to define mock.On call584 // PWStreamDestroy is a helper method to define mock.On call
576 // - stream unsafe.Pointer585 // - stream unsafe.Pointer
577-func (_e *MockCAPI_Expecter) PWStreamDestroy(stream interface{}) *MockCAPI_PWStreamDestroy_Call {586+func (_e *MockCAPI_Expecter) PWStreamDestroy(stream any) *MockCAPI_PWStreamDestroy_Call {
578 return &MockCAPI_PWStreamDestroy_Call{Call: _e.mock.On("PWStreamDestroy", stream)}587 return &MockCAPI_PWStreamDestroy_Call{Call: _e.mock.On("PWStreamDestroy", stream)}
579 }588 }
580 589
@@ -625,7 +634,7 @@ type MockCAPI_PWStreamDisconnect_Call struct {
625 634
626 // PWStreamDisconnect is a helper method to define mock.On call635 // PWStreamDisconnect is a helper method to define mock.On call
627 // - stream unsafe.Pointer636 // - stream unsafe.Pointer
628-func (_e *MockCAPI_Expecter) PWStreamDisconnect(stream interface{}) *MockCAPI_PWStreamDisconnect_Call {637+func (_e *MockCAPI_Expecter) PWStreamDisconnect(stream any) *MockCAPI_PWStreamDisconnect_Call {
629 return &MockCAPI_PWStreamDisconnect_Call{Call: _e.mock.On("PWStreamDisconnect", stream)}638 return &MockCAPI_PWStreamDisconnect_Call{Call: _e.mock.On("PWStreamDisconnect", stream)}
630 }639 }
631 640
@@ -680,7 +689,7 @@ type MockCAPI_PWStreamNewSimple_Call struct {
680 // - props unsafe.Pointer689 // - props unsafe.Pointer
681 // - events unsafe.Pointer690 // - events unsafe.Pointer
682 // - data unsafe.Pointer691 // - data unsafe.Pointer
683-func (_e *MockCAPI_Expecter) PWStreamNewSimple(context interface{}, name interface{}, props interface{}, events interface{}, data interface{}) *MockCAPI_PWStreamNewSimple_Call {692+func (_e *MockCAPI_Expecter) PWStreamNewSimple(context any, name any, props any, events any, data any) *MockCAPI_PWStreamNewSimple_Call {
684 return &MockCAPI_PWStreamNewSimple_Call{Call: _e.mock.On("PWStreamNewSimple", context, name, props, events, data)}693 return &MockCAPI_PWStreamNewSimple_Call{Call: _e.mock.On("PWStreamNewSimple", context, name, props, events, data)}
685 }694 }
686 695
@@ -752,7 +761,7 @@ type MockCAPI_PWStreamQueueBuffer_Call struct {
752 // PWStreamQueueBuffer is a helper method to define mock.On call761 // PWStreamQueueBuffer is a helper method to define mock.On call
753 // - stream unsafe.Pointer762 // - stream unsafe.Pointer
754 // - buffer unsafe.Pointer763 // - buffer unsafe.Pointer
755-func (_e *MockCAPI_Expecter) PWStreamQueueBuffer(stream interface{}, buffer interface{}) *MockCAPI_PWStreamQueueBuffer_Call {764+func (_e *MockCAPI_Expecter) PWStreamQueueBuffer(stream any, buffer any) *MockCAPI_PWStreamQueueBuffer_Call {
756 return &MockCAPI_PWStreamQueueBuffer_Call{Call: _e.mock.On("PWStreamQueueBuffer", stream, buffer)}765 return &MockCAPI_PWStreamQueueBuffer_Call{Call: _e.mock.On("PWStreamQueueBuffer", stream, buffer)}
757 }766 }
758 767
@@ -809,7 +818,7 @@ type MockCAPI_PWStreamSetActive_Call struct {
809 // PWStreamSetActive is a helper method to define mock.On call818 // PWStreamSetActive is a helper method to define mock.On call
810 // - stream unsafe.Pointer819 // - stream unsafe.Pointer
811 // - active bool820 // - active bool
812-func (_e *MockCAPI_Expecter) PWStreamSetActive(stream interface{}, active interface{}) *MockCAPI_PWStreamSetActive_Call {821+func (_e *MockCAPI_Expecter) PWStreamSetActive(stream any, active any) *MockCAPI_PWStreamSetActive_Call {
813 return &MockCAPI_PWStreamSetActive_Call{Call: _e.mock.On("PWStreamSetActive", stream, active)}822 return &MockCAPI_PWStreamSetActive_Call{Call: _e.mock.On("PWStreamSetActive", stream, active)}
814 }823 }
815 824
M internal/ports/out/mocks/mock_InitAPI.go +11 -2
@@ -14,10 +14,19 @@ func NewMockInitAPI(t interface {
1414 mock.TestingT
1515 Cleanup(func())
1616 }) *MockInitAPI {
17+ if helper, ok := t.(interface{ Helper() }); ok {
18+ helper.Helper()
19+ }
20+
1721 mock := &MockInitAPI{}
1822 mock.Mock.Test(t)
1923
20- t.Cleanup(func() { mock.AssertExpectations(t) })
24+ t.Cleanup(func() {
25+ if helper, ok := t.(interface{ Helper() }); ok {
26+ helper.Helper()
27+ }
28+ mock.AssertExpectations(t)
29+ })
2130
2231 return mock
2332 }
@@ -82,7 +91,7 @@ type MockInitAPI_PWInit_Call struct {
8291 // PWInit is a helper method to define mock.On call
8392 // - argc *int32
8493 // - argv ***byte
85-func (_e *MockInitAPI_Expecter) PWInit(argc interface{}, argv interface{}) *MockInitAPI_PWInit_Call {
94+func (_e *MockInitAPI_Expecter) PWInit(argc any, argv any) *MockInitAPI_PWInit_Call {
8695 return &MockInitAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)}
8796 }
8897
@@ -14,10 +14,19 @@ func NewMockInitAPI(t interface {
14 mock.TestingT14 mock.TestingT
15 Cleanup(func())15 Cleanup(func())
16 }) *MockInitAPI {16 }) *MockInitAPI {
17+ if helper, ok := t.(interface{ Helper() }); ok {
18+ helper.Helper()
19+ }
20+
17 mock := &MockInitAPI{}21 mock := &MockInitAPI{}
18 mock.Mock.Test(t)22 mock.Mock.Test(t)
19 23
20- t.Cleanup(func() { mock.AssertExpectations(t) })24+ t.Cleanup(func() {
25+ if helper, ok := t.(interface{ Helper() }); ok {
26+ helper.Helper()
27+ }
28+ mock.AssertExpectations(t)
29+ })
21 30
22 return mock31 return mock
23 }32 }
@@ -82,7 +91,7 @@ type MockInitAPI_PWInit_Call struct {
82 // PWInit is a helper method to define mock.On call91 // PWInit is a helper method to define mock.On call
83 // - argc *int3292 // - argc *int32
84 // - argv ***byte93 // - argv ***byte
85-func (_e *MockInitAPI_Expecter) PWInit(argc interface{}, argv interface{}) *MockInitAPI_PWInit_Call {94+func (_e *MockInitAPI_Expecter) PWInit(argc any, argv any) *MockInitAPI_PWInit_Call {
86 return &MockInitAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)}95 return &MockInitAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)}
87 }96 }
88 97
M internal/ports/out/mocks/mock_LoopAPI.go +15 -6
@@ -16,10 +16,19 @@ func NewMockLoopAPI(t interface {
1616 mock.TestingT
1717 Cleanup(func())
1818 }) *MockLoopAPI {
19+ if helper, ok := t.(interface{ Helper() }); ok {
20+ helper.Helper()
21+ }
22+
1923 mock := &MockLoopAPI{}
2024 mock.Mock.Test(t)
2125
22- t.Cleanup(func() { mock.AssertExpectations(t) })
26+ t.Cleanup(func() {
27+ if helper, ok := t.(interface{ Helper() }); ok {
28+ helper.Helper()
29+ }
30+ mock.AssertExpectations(t)
31+ })
2332
2433 return mock
2534 }
@@ -50,7 +59,7 @@ type MockLoopAPI_PWMainLoopDestroy_Call struct {
5059
5160 // PWMainLoopDestroy is a helper method to define mock.On call
5261 // - loop unsafe.Pointer
53-func (_e *MockLoopAPI_Expecter) PWMainLoopDestroy(loop interface{}) *MockLoopAPI_PWMainLoopDestroy_Call {
62+func (_e *MockLoopAPI_Expecter) PWMainLoopDestroy(loop any) *MockLoopAPI_PWMainLoopDestroy_Call {
5463 return &MockLoopAPI_PWMainLoopDestroy_Call{Call: _e.mock.On("PWMainLoopDestroy", loop)}
5564 }
5665
@@ -101,7 +110,7 @@ type MockLoopAPI_PWMainLoopGetLoop_Call struct {
101110
102111 // PWMainLoopGetLoop is a helper method to define mock.On call
103112 // - loop unsafe.Pointer
104-func (_e *MockLoopAPI_Expecter) PWMainLoopGetLoop(loop interface{}) *MockLoopAPI_PWMainLoopGetLoop_Call {
113+func (_e *MockLoopAPI_Expecter) PWMainLoopGetLoop(loop any) *MockLoopAPI_PWMainLoopGetLoop_Call {
105114 return &MockLoopAPI_PWMainLoopGetLoop_Call{Call: _e.mock.On("PWMainLoopGetLoop", loop)}
106115 }
107116
@@ -152,7 +161,7 @@ type MockLoopAPI_PWMainLoopNew_Call struct {
152161
153162 // PWMainLoopNew is a helper method to define mock.On call
154163 // - props unsafe.Pointer
155-func (_e *MockLoopAPI_Expecter) PWMainLoopNew(props interface{}) *MockLoopAPI_PWMainLoopNew_Call {
164+func (_e *MockLoopAPI_Expecter) PWMainLoopNew(props any) *MockLoopAPI_PWMainLoopNew_Call {
156165 return &MockLoopAPI_PWMainLoopNew_Call{Call: _e.mock.On("PWMainLoopNew", props)}
157166 }
158167
@@ -203,7 +212,7 @@ type MockLoopAPI_PWMainLoopQuit_Call struct {
203212
204213 // PWMainLoopQuit is a helper method to define mock.On call
205214 // - loop unsafe.Pointer
206-func (_e *MockLoopAPI_Expecter) PWMainLoopQuit(loop interface{}) *MockLoopAPI_PWMainLoopQuit_Call {
215+func (_e *MockLoopAPI_Expecter) PWMainLoopQuit(loop any) *MockLoopAPI_PWMainLoopQuit_Call {
207216 return &MockLoopAPI_PWMainLoopQuit_Call{Call: _e.mock.On("PWMainLoopQuit", loop)}
208217 }
209218
@@ -254,7 +263,7 @@ type MockLoopAPI_PWMainLoopRun_Call struct {
254263
255264 // PWMainLoopRun is a helper method to define mock.On call
256265 // - loop unsafe.Pointer
257-func (_e *MockLoopAPI_Expecter) PWMainLoopRun(loop interface{}) *MockLoopAPI_PWMainLoopRun_Call {
266+func (_e *MockLoopAPI_Expecter) PWMainLoopRun(loop any) *MockLoopAPI_PWMainLoopRun_Call {
258267 return &MockLoopAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)}
259268 }
260269
@@ -16,10 +16,19 @@ func NewMockLoopAPI(t interface {
16 mock.TestingT16 mock.TestingT
17 Cleanup(func())17 Cleanup(func())
18 }) *MockLoopAPI {18 }) *MockLoopAPI {
19+ if helper, ok := t.(interface{ Helper() }); ok {
20+ helper.Helper()
21+ }
22+
19 mock := &MockLoopAPI{}23 mock := &MockLoopAPI{}
20 mock.Mock.Test(t)24 mock.Mock.Test(t)
21 25
22- t.Cleanup(func() { mock.AssertExpectations(t) })26+ t.Cleanup(func() {
27+ if helper, ok := t.(interface{ Helper() }); ok {
28+ helper.Helper()
29+ }
30+ mock.AssertExpectations(t)
31+ })
23 32
24 return mock33 return mock
25 }34 }
@@ -50,7 +59,7 @@ type MockLoopAPI_PWMainLoopDestroy_Call struct {
50 59
51 // PWMainLoopDestroy is a helper method to define mock.On call60 // PWMainLoopDestroy is a helper method to define mock.On call
52 // - loop unsafe.Pointer61 // - loop unsafe.Pointer
53-func (_e *MockLoopAPI_Expecter) PWMainLoopDestroy(loop interface{}) *MockLoopAPI_PWMainLoopDestroy_Call {62+func (_e *MockLoopAPI_Expecter) PWMainLoopDestroy(loop any) *MockLoopAPI_PWMainLoopDestroy_Call {
54 return &MockLoopAPI_PWMainLoopDestroy_Call{Call: _e.mock.On("PWMainLoopDestroy", loop)}63 return &MockLoopAPI_PWMainLoopDestroy_Call{Call: _e.mock.On("PWMainLoopDestroy", loop)}
55 }64 }
56 65
@@ -101,7 +110,7 @@ type MockLoopAPI_PWMainLoopGetLoop_Call struct {
101 110
102 // PWMainLoopGetLoop is a helper method to define mock.On call111 // PWMainLoopGetLoop is a helper method to define mock.On call
103 // - loop unsafe.Pointer112 // - loop unsafe.Pointer
104-func (_e *MockLoopAPI_Expecter) PWMainLoopGetLoop(loop interface{}) *MockLoopAPI_PWMainLoopGetLoop_Call {113+func (_e *MockLoopAPI_Expecter) PWMainLoopGetLoop(loop any) *MockLoopAPI_PWMainLoopGetLoop_Call {
105 return &MockLoopAPI_PWMainLoopGetLoop_Call{Call: _e.mock.On("PWMainLoopGetLoop", loop)}114 return &MockLoopAPI_PWMainLoopGetLoop_Call{Call: _e.mock.On("PWMainLoopGetLoop", loop)}
106 }115 }
107 116
@@ -152,7 +161,7 @@ type MockLoopAPI_PWMainLoopNew_Call struct {
152 161
153 // PWMainLoopNew is a helper method to define mock.On call162 // PWMainLoopNew is a helper method to define mock.On call
154 // - props unsafe.Pointer163 // - props unsafe.Pointer
155-func (_e *MockLoopAPI_Expecter) PWMainLoopNew(props interface{}) *MockLoopAPI_PWMainLoopNew_Call {164+func (_e *MockLoopAPI_Expecter) PWMainLoopNew(props any) *MockLoopAPI_PWMainLoopNew_Call {
156 return &MockLoopAPI_PWMainLoopNew_Call{Call: _e.mock.On("PWMainLoopNew", props)}165 return &MockLoopAPI_PWMainLoopNew_Call{Call: _e.mock.On("PWMainLoopNew", props)}
157 }166 }
158 167
@@ -203,7 +212,7 @@ type MockLoopAPI_PWMainLoopQuit_Call struct {
203 212
204 // PWMainLoopQuit is a helper method to define mock.On call213 // PWMainLoopQuit is a helper method to define mock.On call
205 // - loop unsafe.Pointer214 // - loop unsafe.Pointer
206-func (_e *MockLoopAPI_Expecter) PWMainLoopQuit(loop interface{}) *MockLoopAPI_PWMainLoopQuit_Call {215+func (_e *MockLoopAPI_Expecter) PWMainLoopQuit(loop any) *MockLoopAPI_PWMainLoopQuit_Call {
207 return &MockLoopAPI_PWMainLoopQuit_Call{Call: _e.mock.On("PWMainLoopQuit", loop)}216 return &MockLoopAPI_PWMainLoopQuit_Call{Call: _e.mock.On("PWMainLoopQuit", loop)}
208 }217 }
209 218
@@ -254,7 +263,7 @@ type MockLoopAPI_PWMainLoopRun_Call struct {
254 263
255 // PWMainLoopRun is a helper method to define mock.On call264 // PWMainLoopRun is a helper method to define mock.On call
256 // - loop unsafe.Pointer265 // - loop unsafe.Pointer
257-func (_e *MockLoopAPI_Expecter) PWMainLoopRun(loop interface{}) *MockLoopAPI_PWMainLoopRun_Call {266+func (_e *MockLoopAPI_Expecter) PWMainLoopRun(loop any) *MockLoopAPI_PWMainLoopRun_Call {
258 return &MockLoopAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)}267 return &MockLoopAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)}
259 }268 }
260 269
M internal/ports/out/mocks/mock_StreamOps.go +20 -11
@@ -17,10 +17,19 @@ func NewMockStreamOps(t interface {
1717 mock.TestingT
1818 Cleanup(func())
1919 }) *MockStreamOps {
20+ if helper, ok := t.(interface{ Helper() }); ok {
21+ helper.Helper()
22+ }
23+
2024 mock := &MockStreamOps{}
2125 mock.Mock.Test(t)
2226
23- t.Cleanup(func() { mock.AssertExpectations(t) })
27+ t.Cleanup(func() {
28+ if helper, ok := t.(interface{ Helper() }); ok {
29+ helper.Helper()
30+ }
31+ mock.AssertExpectations(t)
32+ })
2433
2534 return mock
2635 }
@@ -63,7 +72,7 @@ type MockStreamOps_ConnectPlaybackStream_Call struct {
6372 // ConnectPlaybackStream is a helper method to define mock.On call
6473 // - streamPtr unsafe.Pointer
6574 // - format out.PlaybackFormat
66-func (_e *MockStreamOps_Expecter) ConnectPlaybackStream(streamPtr interface{}, format interface{}) *MockStreamOps_ConnectPlaybackStream_Call {
75+func (_e *MockStreamOps_Expecter) ConnectPlaybackStream(streamPtr any, format any) *MockStreamOps_ConnectPlaybackStream_Call {
6776 return &MockStreamOps_ConnectPlaybackStream_Call{Call: _e.mock.On("ConnectPlaybackStream", streamPtr, format)}
6877 }
6978
@@ -183,7 +192,7 @@ type MockStreamOps_CreatePlaybackStream_Call struct {
183192 // - loopPtr unsafe.Pointer
184193 // - name string
185194 // - onProcess func()
186-func (_e *MockStreamOps_Expecter) CreatePlaybackStream(loopPtr interface{}, name interface{}, onProcess interface{}) *MockStreamOps_CreatePlaybackStream_Call {
195+func (_e *MockStreamOps_Expecter) CreatePlaybackStream(loopPtr any, name any, onProcess any) *MockStreamOps_CreatePlaybackStream_Call {
187196 return &MockStreamOps_CreatePlaybackStream_Call{Call: _e.mock.On("CreatePlaybackStream", loopPtr, name, onProcess)}
188197 }
189198
@@ -244,7 +253,7 @@ type MockStreamOps_DequeueBuffer_Call struct {
244253
245254 // DequeueBuffer is a helper method to define mock.On call
246255 // - streamPtr unsafe.Pointer
247-func (_e *MockStreamOps_Expecter) DequeueBuffer(streamPtr interface{}) *MockStreamOps_DequeueBuffer_Call {
256+func (_e *MockStreamOps_Expecter) DequeueBuffer(streamPtr any) *MockStreamOps_DequeueBuffer_Call {
248257 return &MockStreamOps_DequeueBuffer_Call{Call: _e.mock.On("DequeueBuffer", streamPtr)}
249258 }
250259
@@ -284,7 +293,7 @@ type MockStreamOps_DestroyMainLoop_Call struct {
284293
285294 // DestroyMainLoop is a helper method to define mock.On call
286295 // - loopPtr unsafe.Pointer
287-func (_e *MockStreamOps_Expecter) DestroyMainLoop(loopPtr interface{}) *MockStreamOps_DestroyMainLoop_Call {
296+func (_e *MockStreamOps_Expecter) DestroyMainLoop(loopPtr any) *MockStreamOps_DestroyMainLoop_Call {
288297 return &MockStreamOps_DestroyMainLoop_Call{Call: _e.mock.On("DestroyMainLoop", loopPtr)}
289298 }
290299
@@ -324,7 +333,7 @@ type MockStreamOps_DestroyStream_Call struct {
324333
325334 // DestroyStream is a helper method to define mock.On call
326335 // - streamPtr unsafe.Pointer
327-func (_e *MockStreamOps_Expecter) DestroyStream(streamPtr interface{}) *MockStreamOps_DestroyStream_Call {
336+func (_e *MockStreamOps_Expecter) DestroyStream(streamPtr any) *MockStreamOps_DestroyStream_Call {
328337 return &MockStreamOps_DestroyStream_Call{Call: _e.mock.On("DestroyStream", streamPtr)}
329338 }
330339
@@ -375,7 +384,7 @@ type MockStreamOps_DisconnectStream_Call struct {
375384
376385 // DisconnectStream is a helper method to define mock.On call
377386 // - streamPtr unsafe.Pointer
378-func (_e *MockStreamOps_Expecter) DisconnectStream(streamPtr interface{}) *MockStreamOps_DisconnectStream_Call {
387+func (_e *MockStreamOps_Expecter) DisconnectStream(streamPtr any) *MockStreamOps_DisconnectStream_Call {
379388 return &MockStreamOps_DisconnectStream_Call{Call: _e.mock.On("DisconnectStream", streamPtr)}
380389 }
381390
@@ -427,7 +436,7 @@ type MockStreamOps_QueueBuffer_Call struct {
427436 // QueueBuffer is a helper method to define mock.On call
428437 // - streamPtr unsafe.Pointer
429438 // - bufPtr unsafe.Pointer
430-func (_e *MockStreamOps_Expecter) QueueBuffer(streamPtr interface{}, bufPtr interface{}) *MockStreamOps_QueueBuffer_Call {
439+func (_e *MockStreamOps_Expecter) QueueBuffer(streamPtr any, bufPtr any) *MockStreamOps_QueueBuffer_Call {
431440 return &MockStreamOps_QueueBuffer_Call{Call: _e.mock.On("QueueBuffer", streamPtr, bufPtr)}
432441 }
433442
@@ -472,7 +481,7 @@ type MockStreamOps_QuitMainLoop_Call struct {
472481
473482 // QuitMainLoop is a helper method to define mock.On call
474483 // - loopPtr unsafe.Pointer
475-func (_e *MockStreamOps_Expecter) QuitMainLoop(loopPtr interface{}) *MockStreamOps_QuitMainLoop_Call {
484+func (_e *MockStreamOps_Expecter) QuitMainLoop(loopPtr any) *MockStreamOps_QuitMainLoop_Call {
476485 return &MockStreamOps_QuitMainLoop_Call{Call: _e.mock.On("QuitMainLoop", loopPtr)}
477486 }
478487
@@ -523,7 +532,7 @@ type MockStreamOps_RunMainLoop_Call struct {
523532
524533 // RunMainLoop is a helper method to define mock.On call
525534 // - loopPtr unsafe.Pointer
526-func (_e *MockStreamOps_Expecter) RunMainLoop(loopPtr interface{}) *MockStreamOps_RunMainLoop_Call {
535+func (_e *MockStreamOps_Expecter) RunMainLoop(loopPtr any) *MockStreamOps_RunMainLoop_Call {
527536 return &MockStreamOps_RunMainLoop_Call{Call: _e.mock.On("RunMainLoop", loopPtr)}
528537 }
529538
@@ -575,7 +584,7 @@ type MockStreamOps_SetStreamActive_Call struct {
575584 // SetStreamActive is a helper method to define mock.On call
576585 // - streamPtr unsafe.Pointer
577586 // - active bool
578-func (_e *MockStreamOps_Expecter) SetStreamActive(streamPtr interface{}, active interface{}) *MockStreamOps_SetStreamActive_Call {
587+func (_e *MockStreamOps_Expecter) SetStreamActive(streamPtr any, active any) *MockStreamOps_SetStreamActive_Call {
579588 return &MockStreamOps_SetStreamActive_Call{Call: _e.mock.On("SetStreamActive", streamPtr, active)}
580589 }
581590
@@ -17,10 +17,19 @@ func NewMockStreamOps(t interface {
17 mock.TestingT17 mock.TestingT
18 Cleanup(func())18 Cleanup(func())
19 }) *MockStreamOps {19 }) *MockStreamOps {
20+ if helper, ok := t.(interface{ Helper() }); ok {
21+ helper.Helper()
22+ }
23+
20 mock := &MockStreamOps{}24 mock := &MockStreamOps{}
21 mock.Mock.Test(t)25 mock.Mock.Test(t)
22 26
23- t.Cleanup(func() { mock.AssertExpectations(t) })27+ t.Cleanup(func() {
28+ if helper, ok := t.(interface{ Helper() }); ok {
29+ helper.Helper()
30+ }
31+ mock.AssertExpectations(t)
32+ })
24 33
25 return mock34 return mock
26 }35 }
@@ -63,7 +72,7 @@ type MockStreamOps_ConnectPlaybackStream_Call struct {
63 // ConnectPlaybackStream is a helper method to define mock.On call72 // ConnectPlaybackStream is a helper method to define mock.On call
64 // - streamPtr unsafe.Pointer73 // - streamPtr unsafe.Pointer
65 // - format out.PlaybackFormat74 // - format out.PlaybackFormat
66-func (_e *MockStreamOps_Expecter) ConnectPlaybackStream(streamPtr interface{}, format interface{}) *MockStreamOps_ConnectPlaybackStream_Call {75+func (_e *MockStreamOps_Expecter) ConnectPlaybackStream(streamPtr any, format any) *MockStreamOps_ConnectPlaybackStream_Call {
67 return &MockStreamOps_ConnectPlaybackStream_Call{Call: _e.mock.On("ConnectPlaybackStream", streamPtr, format)}76 return &MockStreamOps_ConnectPlaybackStream_Call{Call: _e.mock.On("ConnectPlaybackStream", streamPtr, format)}
68 }77 }
69 78
@@ -183,7 +192,7 @@ type MockStreamOps_CreatePlaybackStream_Call struct {
183 // - loopPtr unsafe.Pointer192 // - loopPtr unsafe.Pointer
184 // - name string193 // - name string
185 // - onProcess func()194 // - onProcess func()
186-func (_e *MockStreamOps_Expecter) CreatePlaybackStream(loopPtr interface{}, name interface{}, onProcess interface{}) *MockStreamOps_CreatePlaybackStream_Call {195+func (_e *MockStreamOps_Expecter) CreatePlaybackStream(loopPtr any, name any, onProcess any) *MockStreamOps_CreatePlaybackStream_Call {
187 return &MockStreamOps_CreatePlaybackStream_Call{Call: _e.mock.On("CreatePlaybackStream", loopPtr, name, onProcess)}196 return &MockStreamOps_CreatePlaybackStream_Call{Call: _e.mock.On("CreatePlaybackStream", loopPtr, name, onProcess)}
188 }197 }
189 198
@@ -244,7 +253,7 @@ type MockStreamOps_DequeueBuffer_Call struct {
244 253
245 // DequeueBuffer is a helper method to define mock.On call254 // DequeueBuffer is a helper method to define mock.On call
246 // - streamPtr unsafe.Pointer255 // - streamPtr unsafe.Pointer
247-func (_e *MockStreamOps_Expecter) DequeueBuffer(streamPtr interface{}) *MockStreamOps_DequeueBuffer_Call {256+func (_e *MockStreamOps_Expecter) DequeueBuffer(streamPtr any) *MockStreamOps_DequeueBuffer_Call {
248 return &MockStreamOps_DequeueBuffer_Call{Call: _e.mock.On("DequeueBuffer", streamPtr)}257 return &MockStreamOps_DequeueBuffer_Call{Call: _e.mock.On("DequeueBuffer", streamPtr)}
249 }258 }
250 259
@@ -284,7 +293,7 @@ type MockStreamOps_DestroyMainLoop_Call struct {
284 293
285 // DestroyMainLoop is a helper method to define mock.On call294 // DestroyMainLoop is a helper method to define mock.On call
286 // - loopPtr unsafe.Pointer295 // - loopPtr unsafe.Pointer
287-func (_e *MockStreamOps_Expecter) DestroyMainLoop(loopPtr interface{}) *MockStreamOps_DestroyMainLoop_Call {296+func (_e *MockStreamOps_Expecter) DestroyMainLoop(loopPtr any) *MockStreamOps_DestroyMainLoop_Call {
288 return &MockStreamOps_DestroyMainLoop_Call{Call: _e.mock.On("DestroyMainLoop", loopPtr)}297 return &MockStreamOps_DestroyMainLoop_Call{Call: _e.mock.On("DestroyMainLoop", loopPtr)}
289 }298 }
290 299
@@ -324,7 +333,7 @@ type MockStreamOps_DestroyStream_Call struct {
324 333
325 // DestroyStream is a helper method to define mock.On call334 // DestroyStream is a helper method to define mock.On call
326 // - streamPtr unsafe.Pointer335 // - streamPtr unsafe.Pointer
327-func (_e *MockStreamOps_Expecter) DestroyStream(streamPtr interface{}) *MockStreamOps_DestroyStream_Call {336+func (_e *MockStreamOps_Expecter) DestroyStream(streamPtr any) *MockStreamOps_DestroyStream_Call {
328 return &MockStreamOps_DestroyStream_Call{Call: _e.mock.On("DestroyStream", streamPtr)}337 return &MockStreamOps_DestroyStream_Call{Call: _e.mock.On("DestroyStream", streamPtr)}
329 }338 }
330 339
@@ -375,7 +384,7 @@ type MockStreamOps_DisconnectStream_Call struct {
375 384
376 // DisconnectStream is a helper method to define mock.On call385 // DisconnectStream is a helper method to define mock.On call
377 // - streamPtr unsafe.Pointer386 // - streamPtr unsafe.Pointer
378-func (_e *MockStreamOps_Expecter) DisconnectStream(streamPtr interface{}) *MockStreamOps_DisconnectStream_Call {387+func (_e *MockStreamOps_Expecter) DisconnectStream(streamPtr any) *MockStreamOps_DisconnectStream_Call {
379 return &MockStreamOps_DisconnectStream_Call{Call: _e.mock.On("DisconnectStream", streamPtr)}388 return &MockStreamOps_DisconnectStream_Call{Call: _e.mock.On("DisconnectStream", streamPtr)}
380 }389 }
381 390
@@ -427,7 +436,7 @@ type MockStreamOps_QueueBuffer_Call struct {
427 // QueueBuffer is a helper method to define mock.On call436 // QueueBuffer is a helper method to define mock.On call
428 // - streamPtr unsafe.Pointer437 // - streamPtr unsafe.Pointer
429 // - bufPtr unsafe.Pointer438 // - bufPtr unsafe.Pointer
430-func (_e *MockStreamOps_Expecter) QueueBuffer(streamPtr interface{}, bufPtr interface{}) *MockStreamOps_QueueBuffer_Call {439+func (_e *MockStreamOps_Expecter) QueueBuffer(streamPtr any, bufPtr any) *MockStreamOps_QueueBuffer_Call {
431 return &MockStreamOps_QueueBuffer_Call{Call: _e.mock.On("QueueBuffer", streamPtr, bufPtr)}440 return &MockStreamOps_QueueBuffer_Call{Call: _e.mock.On("QueueBuffer", streamPtr, bufPtr)}
432 }441 }
433 442
@@ -472,7 +481,7 @@ type MockStreamOps_QuitMainLoop_Call struct {
472 481
473 // QuitMainLoop is a helper method to define mock.On call482 // QuitMainLoop is a helper method to define mock.On call
474 // - loopPtr unsafe.Pointer483 // - loopPtr unsafe.Pointer
475-func (_e *MockStreamOps_Expecter) QuitMainLoop(loopPtr interface{}) *MockStreamOps_QuitMainLoop_Call {484+func (_e *MockStreamOps_Expecter) QuitMainLoop(loopPtr any) *MockStreamOps_QuitMainLoop_Call {
476 return &MockStreamOps_QuitMainLoop_Call{Call: _e.mock.On("QuitMainLoop", loopPtr)}485 return &MockStreamOps_QuitMainLoop_Call{Call: _e.mock.On("QuitMainLoop", loopPtr)}
477 }486 }
478 487
@@ -523,7 +532,7 @@ type MockStreamOps_RunMainLoop_Call struct {
523 532
524 // RunMainLoop is a helper method to define mock.On call533 // RunMainLoop is a helper method to define mock.On call
525 // - loopPtr unsafe.Pointer534 // - loopPtr unsafe.Pointer
526-func (_e *MockStreamOps_Expecter) RunMainLoop(loopPtr interface{}) *MockStreamOps_RunMainLoop_Call {535+func (_e *MockStreamOps_Expecter) RunMainLoop(loopPtr any) *MockStreamOps_RunMainLoop_Call {
527 return &MockStreamOps_RunMainLoop_Call{Call: _e.mock.On("RunMainLoop", loopPtr)}536 return &MockStreamOps_RunMainLoop_Call{Call: _e.mock.On("RunMainLoop", loopPtr)}
528 }537 }
529 538
@@ -575,7 +584,7 @@ type MockStreamOps_SetStreamActive_Call struct {
575 // SetStreamActive is a helper method to define mock.On call584 // SetStreamActive is a helper method to define mock.On call
576 // - streamPtr unsafe.Pointer585 // - streamPtr unsafe.Pointer
577 // - active bool586 // - active bool
578-func (_e *MockStreamOps_Expecter) SetStreamActive(streamPtr interface{}, active interface{}) *MockStreamOps_SetStreamActive_Call {587+func (_e *MockStreamOps_Expecter) SetStreamActive(streamPtr any, active any) *MockStreamOps_SetStreamActive_Call {
579 return &MockStreamOps_SetStreamActive_Call{Call: _e.mock.On("SetStreamActive", streamPtr, active)}588 return &MockStreamOps_SetStreamActive_Call{Call: _e.mock.On("SetStreamActive", streamPtr, active)}
580 }589 }
581 590
M pipewire/mocks/mock_MainLoop.go +10 -1
@@ -14,10 +14,19 @@ func NewMockMainLoop(t interface {
1414 mock.TestingT
1515 Cleanup(func())
1616 }) *MockMainLoop {
17+ if helper, ok := t.(interface{ Helper() }); ok {
18+ helper.Helper()
19+ }
20+
1721 mock := &MockMainLoop{}
1822 mock.Mock.Test(t)
1923
20- t.Cleanup(func() { mock.AssertExpectations(t) })
24+ t.Cleanup(func() {
25+ if helper, ok := t.(interface{ Helper() }); ok {
26+ helper.Helper()
27+ }
28+ mock.AssertExpectations(t)
29+ })
2130
2231 return mock
2332 }
@@ -14,10 +14,19 @@ func NewMockMainLoop(t interface {
14 mock.TestingT14 mock.TestingT
15 Cleanup(func())15 Cleanup(func())
16 }) *MockMainLoop {16 }) *MockMainLoop {
17+ if helper, ok := t.(interface{ Helper() }); ok {
18+ helper.Helper()
19+ }
20+
17 mock := &MockMainLoop{}21 mock := &MockMainLoop{}
18 mock.Mock.Test(t)22 mock.Mock.Test(t)
19 23
20- t.Cleanup(func() { mock.AssertExpectations(t) })24+ t.Cleanup(func() {
25+ if helper, ok := t.(interface{ Helper() }); ok {
26+ helper.Helper()
27+ }
28+ mock.AssertExpectations(t)
29+ })
21 30
22 return mock31 return mock
23 }32 }
M pipewire/mocks/mock_Player.go +10 -1
@@ -15,10 +15,19 @@ func NewMockPlayer(t interface {
1515 mock.TestingT
1616 Cleanup(func())
1717 }) *MockPlayer {
18+ if helper, ok := t.(interface{ Helper() }); ok {
19+ helper.Helper()
20+ }
21+
1822 mock := &MockPlayer{}
1923 mock.Mock.Test(t)
2024
21- t.Cleanup(func() { mock.AssertExpectations(t) })
25+ t.Cleanup(func() {
26+ if helper, ok := t.(interface{ Helper() }); ok {
27+ helper.Helper()
28+ }
29+ mock.AssertExpectations(t)
30+ })
2231
2332 return mock
2433 }
@@ -15,10 +15,19 @@ func NewMockPlayer(t interface {
15 mock.TestingT15 mock.TestingT
16 Cleanup(func())16 Cleanup(func())
17 }) *MockPlayer {17 }) *MockPlayer {
18+ if helper, ok := t.(interface{ Helper() }); ok {
19+ helper.Helper()
20+ }
21+
18 mock := &MockPlayer{}22 mock := &MockPlayer{}
19 mock.Mock.Test(t)23 mock.Mock.Test(t)
20 24
21- t.Cleanup(func() { mock.AssertExpectations(t) })25+ t.Cleanup(func() {
26+ if helper, ok := t.(interface{ Helper() }); ok {
27+ helper.Helper()
28+ }
29+ mock.AssertExpectations(t)
30+ })
22 31
23 return mock32 return mock
24 }33 }
M pipewire/mocks/mock_Runtime.go +10 -1
@@ -15,10 +15,19 @@ func NewMockRuntime(t interface {
1515 mock.TestingT
1616 Cleanup(func())
1717 }) *MockRuntime {
18+ if helper, ok := t.(interface{ Helper() }); ok {
19+ helper.Helper()
20+ }
21+
1822 mock := &MockRuntime{}
1923 mock.Mock.Test(t)
2024
21- t.Cleanup(func() { mock.AssertExpectations(t) })
25+ t.Cleanup(func() {
26+ if helper, ok := t.(interface{ Helper() }); ok {
27+ helper.Helper()
28+ }
29+ mock.AssertExpectations(t)
30+ })
2231
2332 return mock
2433 }
@@ -15,10 +15,19 @@ func NewMockRuntime(t interface {
15 mock.TestingT15 mock.TestingT
16 Cleanup(func())16 Cleanup(func())
17 }) *MockRuntime {17 }) *MockRuntime {
18+ if helper, ok := t.(interface{ Helper() }); ok {
19+ helper.Helper()
20+ }
21+
18 mock := &MockRuntime{}22 mock := &MockRuntime{}
19 mock.Mock.Test(t)23 mock.Mock.Test(t)
20 24
21- t.Cleanup(func() { mock.AssertExpectations(t) })25+ t.Cleanup(func() {
26+ if helper, ok := t.(interface{ Helper() }); ok {
27+ helper.Helper()
28+ }
29+ mock.AssertExpectations(t)
30+ })
22 31
23 return mock32 return mock
24 }33 }

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 1

Tags 8

↑↓ moveenter openesc close