chore(mocks): regenerate mocks with mockery v3.8.1
- commit
- fc13113aa15f609b6af5d5a7b93e469804ddb000
- author
- brice · · 2026-10-14 18:40 UTC
- parent
- cef008d
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· 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 { | |||
| 16 | 16 | mock.TestingT | |
| 17 | 17 | Cleanup(func()) | |
| 18 | 18 | }) *MockCAPI { | |
| 19 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 20 | + | helper.Helper() | |
| 21 | + | } | |
| 22 | + | ||
| 19 | 23 | mock := &MockCAPI{} | |
| 20 | 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 | 33 | return mock | |
| 25 | 34 | } | |
| @@ -84,7 +93,7 @@ type MockCAPI_PWInit_Call struct { | |||
| 84 | 93 | // PWInit is a helper method to define mock.On call | |
| 85 | 94 | // - argc *int32 | |
| 86 | 95 | // - 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 | 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 | 139 | // PWMainLoopDestroy is a helper method to define mock.On call | |
| 131 | 140 | // - 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 | 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 | 190 | // PWMainLoopGetLoop is a helper method to define mock.On call | |
| 182 | 191 | // - 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 | 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 | 241 | // PWMainLoopNew is a helper method to define mock.On call | |
| 233 | 242 | // - 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 | 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 | 292 | // PWMainLoopQuit is a helper method to define mock.On call | |
| 284 | 293 | // - 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 | 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 | 343 | // PWMainLoopRun is a helper method to define mock.On call | |
| 335 | 344 | // - 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 | 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 | 396 | // - listener unsafe.Pointer | |
| 388 | 397 | // - events unsafe.Pointer | |
| 389 | 398 | // - 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 | 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 | 467 | // - flags uint32 | |
| 459 | 468 | // - ports unsafe.Pointer | |
| 460 | 469 | // - 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 | 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 | 544 | // PWStreamDequeueBuffer is a helper method to define mock.On call | |
| 536 | 545 | // - 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 | 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 | 584 | // PWStreamDestroy is a helper method to define mock.On call | |
| 576 | 585 | // - 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 | 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 | 635 | // PWStreamDisconnect is a helper method to define mock.On call | |
| 627 | 636 | // - 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 | 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 | 689 | // - props unsafe.Pointer | |
| 681 | 690 | // - events unsafe.Pointer | |
| 682 | 691 | // - 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 | 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 | 761 | // PWStreamQueueBuffer is a helper method to define mock.On call | |
| 753 | 762 | // - stream unsafe.Pointer | |
| 754 | 763 | // - 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 | 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 | 818 | // PWStreamSetActive is a helper method to define mock.On call | |
| 810 | 819 | // - stream unsafe.Pointer | |
| 811 | 820 | // - 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 | 822 | return &MockCAPI_PWStreamSetActive_Call{Call: _e.mock.On("PWStreamSetActive", stream, active)} | |
| 814 | 823 | } | |
| 815 | 824 | ||
| @@ -16,10 +16,19 @@ func NewMockCAPI(t interface { | |||||
| 16 | mock.TestingT | 16 | 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 mock | 33 | return mock | ||
| 25 | } | 34 | } | ||
| @@ -84,7 +93,7 @@ type MockCAPI_PWInit_Call struct { | |||||
| 84 | // PWInit is a helper method to define mock.On call | 93 | // PWInit is a helper method to define mock.On call | ||
| 85 | // - argc *int32 | 94 | // - argc *int32 | ||
| 86 | // - argv ***byte | 95 | // - 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 call | 139 | // PWMainLoopDestroy is a helper method to define mock.On call | ||
| 131 | // - loop unsafe.Pointer | 140 | // - 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 call | 190 | // PWMainLoopGetLoop is a helper method to define mock.On call | ||
| 182 | // - loop unsafe.Pointer | 191 | // - 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 call | 241 | // PWMainLoopNew is a helper method to define mock.On call | ||
| 233 | // - props unsafe.Pointer | 242 | // - 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 call | 292 | // PWMainLoopQuit is a helper method to define mock.On call | ||
| 284 | // - loop unsafe.Pointer | 293 | // - 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 call | 343 | // PWMainLoopRun is a helper method to define mock.On call | ||
| 335 | // - loop unsafe.Pointer | 344 | // - 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.Pointer | 396 | // - listener unsafe.Pointer | ||
| 388 | // - events unsafe.Pointer | 397 | // - events unsafe.Pointer | ||
| 389 | // - data unsafe.Pointer | 398 | // - 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 uint32 | 467 | // - flags uint32 | ||
| 459 | // - ports unsafe.Pointer | 468 | // - ports unsafe.Pointer | ||
| 460 | // - n_ports uint32 | 469 | // - 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 call | 544 | // PWStreamDequeueBuffer is a helper method to define mock.On call | ||
| 536 | // - stream unsafe.Pointer | 545 | // - 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 call | 584 | // PWStreamDestroy is a helper method to define mock.On call | ||
| 576 | // - stream unsafe.Pointer | 585 | // - 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 call | 635 | // PWStreamDisconnect is a helper method to define mock.On call | ||
| 627 | // - stream unsafe.Pointer | 636 | // - 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.Pointer | 689 | // - props unsafe.Pointer | ||
| 681 | // - events unsafe.Pointer | 690 | // - events unsafe.Pointer | ||
| 682 | // - data unsafe.Pointer | 691 | // - 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 call | 761 | // PWStreamQueueBuffer is a helper method to define mock.On call | ||
| 753 | // - stream unsafe.Pointer | 762 | // - stream unsafe.Pointer | ||
| 754 | // - buffer unsafe.Pointer | 763 | // - 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 call | 818 | // PWStreamSetActive is a helper method to define mock.On call | ||
| 810 | // - stream unsafe.Pointer | 819 | // - stream unsafe.Pointer | ||
| 811 | // - active bool | 820 | // - 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 { | |||
| 14 | 14 | mock.TestingT | |
| 15 | 15 | Cleanup(func()) | |
| 16 | 16 | }) *MockInitAPI { | |
| 17 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 18 | + | helper.Helper() | |
| 19 | + | } | |
| 20 | + | ||
| 17 | 21 | mock := &MockInitAPI{} | |
| 18 | 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 | 31 | return mock | |
| 23 | 32 | } | |
| @@ -82,7 +91,7 @@ type MockInitAPI_PWInit_Call struct { | |||
| 82 | 91 | // PWInit is a helper method to define mock.On call | |
| 83 | 92 | // - argc *int32 | |
| 84 | 93 | // - 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 | 95 | return &MockInitAPI_PWInit_Call{Call: _e.mock.On("PWInit", argc, argv)} | |
| 87 | 96 | } | |
| 88 | 97 | ||
| @@ -14,10 +14,19 @@ func NewMockInitAPI(t interface { | |||||
| 14 | mock.TestingT | 14 | 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 mock | 31 | return mock | ||
| 23 | } | 32 | } | ||
| @@ -82,7 +91,7 @@ type MockInitAPI_PWInit_Call struct { | |||||
| 82 | // PWInit is a helper method to define mock.On call | 91 | // PWInit is a helper method to define mock.On call | ||
| 83 | // - argc *int32 | 92 | // - argc *int32 | ||
| 84 | // - argv ***byte | 93 | // - 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 { | |||
| 16 | 16 | mock.TestingT | |
| 17 | 17 | Cleanup(func()) | |
| 18 | 18 | }) *MockLoopAPI { | |
| 19 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 20 | + | helper.Helper() | |
| 21 | + | } | |
| 22 | + | ||
| 19 | 23 | mock := &MockLoopAPI{} | |
| 20 | 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 | 33 | return mock | |
| 25 | 34 | } | |
| @@ -50,7 +59,7 @@ type MockLoopAPI_PWMainLoopDestroy_Call struct { | |||
| 50 | 59 | ||
| 51 | 60 | // PWMainLoopDestroy is a helper method to define mock.On call | |
| 52 | 61 | // - 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 | 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 | 111 | // PWMainLoopGetLoop is a helper method to define mock.On call | |
| 103 | 112 | // - 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 | 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 | 162 | // PWMainLoopNew is a helper method to define mock.On call | |
| 154 | 163 | // - 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 | 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 | 213 | // PWMainLoopQuit is a helper method to define mock.On call | |
| 205 | 214 | // - 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 | 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 | 264 | // PWMainLoopRun is a helper method to define mock.On call | |
| 256 | 265 | // - 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 | 267 | return &MockLoopAPI_PWMainLoopRun_Call{Call: _e.mock.On("PWMainLoopRun", loop)} | |
| 259 | 268 | } | |
| 260 | 269 | ||
| @@ -16,10 +16,19 @@ func NewMockLoopAPI(t interface { | |||||
| 16 | mock.TestingT | 16 | 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 mock | 33 | 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 call | 60 | // PWMainLoopDestroy is a helper method to define mock.On call | ||
| 52 | // - loop unsafe.Pointer | 61 | // - 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 call | 111 | // PWMainLoopGetLoop is a helper method to define mock.On call | ||
| 103 | // - loop unsafe.Pointer | 112 | // - 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 call | 162 | // PWMainLoopNew is a helper method to define mock.On call | ||
| 154 | // - props unsafe.Pointer | 163 | // - 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 call | 213 | // PWMainLoopQuit is a helper method to define mock.On call | ||
| 205 | // - loop unsafe.Pointer | 214 | // - 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 call | 264 | // PWMainLoopRun is a helper method to define mock.On call | ||
| 256 | // - loop unsafe.Pointer | 265 | // - 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 { | |||
| 17 | 17 | mock.TestingT | |
| 18 | 18 | Cleanup(func()) | |
| 19 | 19 | }) *MockStreamOps { | |
| 20 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 21 | + | helper.Helper() | |
| 22 | + | } | |
| 23 | + | ||
| 20 | 24 | mock := &MockStreamOps{} | |
| 21 | 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 | 34 | return mock | |
| 26 | 35 | } | |
| @@ -63,7 +72,7 @@ type MockStreamOps_ConnectPlaybackStream_Call struct { | |||
| 63 | 72 | // ConnectPlaybackStream is a helper method to define mock.On call | |
| 64 | 73 | // - streamPtr unsafe.Pointer | |
| 65 | 74 | // - 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 | 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 | 192 | // - loopPtr unsafe.Pointer | |
| 184 | 193 | // - name string | |
| 185 | 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 | 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 | 254 | // DequeueBuffer is a helper method to define mock.On call | |
| 246 | 255 | // - 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 | 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 | 294 | // DestroyMainLoop is a helper method to define mock.On call | |
| 286 | 295 | // - 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 | 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 | 334 | // DestroyStream is a helper method to define mock.On call | |
| 326 | 335 | // - 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 | 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 | 385 | // DisconnectStream is a helper method to define mock.On call | |
| 377 | 386 | // - 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 | 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 | 436 | // QueueBuffer is a helper method to define mock.On call | |
| 428 | 437 | // - streamPtr unsafe.Pointer | |
| 429 | 438 | // - 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 | 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 | 482 | // QuitMainLoop is a helper method to define mock.On call | |
| 474 | 483 | // - 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 | 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 | 533 | // RunMainLoop is a helper method to define mock.On call | |
| 525 | 534 | // - 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 | 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 | 584 | // SetStreamActive is a helper method to define mock.On call | |
| 576 | 585 | // - streamPtr unsafe.Pointer | |
| 577 | 586 | // - 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 | 588 | return &MockStreamOps_SetStreamActive_Call{Call: _e.mock.On("SetStreamActive", streamPtr, active)} | |
| 580 | 589 | } | |
| 581 | 590 | ||
| @@ -17,10 +17,19 @@ func NewMockStreamOps(t interface { | |||||
| 17 | mock.TestingT | 17 | 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 mock | 34 | return mock | ||
| 26 | } | 35 | } | ||
| @@ -63,7 +72,7 @@ type MockStreamOps_ConnectPlaybackStream_Call struct { | |||||
| 63 | // ConnectPlaybackStream is a helper method to define mock.On call | 72 | // ConnectPlaybackStream is a helper method to define mock.On call | ||
| 64 | // - streamPtr unsafe.Pointer | 73 | // - streamPtr unsafe.Pointer | ||
| 65 | // - format out.PlaybackFormat | 74 | // - 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.Pointer | 192 | // - loopPtr unsafe.Pointer | ||
| 184 | // - name string | 193 | // - 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 call | 254 | // DequeueBuffer is a helper method to define mock.On call | ||
| 246 | // - streamPtr unsafe.Pointer | 255 | // - 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 call | 294 | // DestroyMainLoop is a helper method to define mock.On call | ||
| 286 | // - loopPtr unsafe.Pointer | 295 | // - 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 call | 334 | // DestroyStream is a helper method to define mock.On call | ||
| 326 | // - streamPtr unsafe.Pointer | 335 | // - 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 call | 385 | // DisconnectStream is a helper method to define mock.On call | ||
| 377 | // - streamPtr unsafe.Pointer | 386 | // - 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 call | 436 | // QueueBuffer is a helper method to define mock.On call | ||
| 428 | // - streamPtr unsafe.Pointer | 437 | // - streamPtr unsafe.Pointer | ||
| 429 | // - bufPtr unsafe.Pointer | 438 | // - 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 call | 482 | // QuitMainLoop is a helper method to define mock.On call | ||
| 474 | // - loopPtr unsafe.Pointer | 483 | // - 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 call | 533 | // RunMainLoop is a helper method to define mock.On call | ||
| 525 | // - loopPtr unsafe.Pointer | 534 | // - 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 call | 584 | // SetStreamActive is a helper method to define mock.On call | ||
| 576 | // - streamPtr unsafe.Pointer | 585 | // - streamPtr unsafe.Pointer | ||
| 577 | // - active bool | 586 | // - 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 { | |||
| 14 | 14 | mock.TestingT | |
| 15 | 15 | Cleanup(func()) | |
| 16 | 16 | }) *MockMainLoop { | |
| 17 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 18 | + | helper.Helper() | |
| 19 | + | } | |
| 20 | + | ||
| 17 | 21 | mock := &MockMainLoop{} | |
| 18 | 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 | 31 | return mock | |
| 23 | 32 | } | |
| @@ -14,10 +14,19 @@ func NewMockMainLoop(t interface { | |||||
| 14 | mock.TestingT | 14 | 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 mock | 31 | return mock | ||
| 23 | } | 32 | } | ||
M pipewire/mocks/mock_Player.go +10 -1
| @@ -15,10 +15,19 @@ func NewMockPlayer(t interface { | |||
| 15 | 15 | mock.TestingT | |
| 16 | 16 | Cleanup(func()) | |
| 17 | 17 | }) *MockPlayer { | |
| 18 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 19 | + | helper.Helper() | |
| 20 | + | } | |
| 21 | + | ||
| 18 | 22 | mock := &MockPlayer{} | |
| 19 | 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 | 32 | return mock | |
| 24 | 33 | } | |
| @@ -15,10 +15,19 @@ func NewMockPlayer(t interface { | |||||
| 15 | mock.TestingT | 15 | 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 mock | 32 | return mock | ||
| 24 | } | 33 | } | ||
M pipewire/mocks/mock_Runtime.go +10 -1
| @@ -15,10 +15,19 @@ func NewMockRuntime(t interface { | |||
| 15 | 15 | mock.TestingT | |
| 16 | 16 | Cleanup(func()) | |
| 17 | 17 | }) *MockRuntime { | |
| 18 | + | if helper, ok := t.(interface{ Helper() }); ok { | |
| 19 | + | helper.Helper() | |
| 20 | + | } | |
| 21 | + | ||
| 18 | 22 | mock := &MockRuntime{} | |
| 19 | 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 | 32 | return mock | |
| 24 | 33 | } | |
| @@ -15,10 +15,19 @@ func NewMockRuntime(t interface { | |||||
| 15 | mock.TestingT | 15 | 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 mock | 32 | return mock | ||
| 24 | } | 33 | } | ||