chore: regenerate mocks to add PrewarmAsync to MockWebViewPool
- commit
- e98349c9ea4237cacfcb7ce0632c2407c8ef9635
- author
- brice · · 2026-03-18 05:19 UTC
- parent
- ad1fde7
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +46 -0
M internal/application/port/mocks/mocks.go +46 -0
| @@ -12745,6 +12745,52 @@ func (_c *MockWebViewPool_Prewarm_Call) RunAndReturn(run func(count int)) *MockW | |||
| 12745 | 12745 | return _c | |
| 12746 | 12746 | } | |
| 12747 | 12747 | ||
| 12748 | + | // PrewarmAsync provides a mock function for the type MockWebViewPool | |
| 12749 | + | func (_mock *MockWebViewPool) PrewarmAsync(ctx context.Context, count int) { | |
| 12750 | + | _mock.Called(ctx, count) | |
| 12751 | + | return | |
| 12752 | + | } | |
| 12753 | + | ||
| 12754 | + | // MockWebViewPool_PrewarmAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrewarmAsync' | |
| 12755 | + | type MockWebViewPool_PrewarmAsync_Call struct { | |
| 12756 | + | *mock.Call | |
| 12757 | + | } | |
| 12758 | + | ||
| 12759 | + | // PrewarmAsync is a helper method to define mock.On call | |
| 12760 | + | // - ctx context.Context | |
| 12761 | + | // - count int | |
| 12762 | + | func (_e *MockWebViewPool_Expecter) PrewarmAsync(ctx interface{}, count interface{}) *MockWebViewPool_PrewarmAsync_Call { | |
| 12763 | + | return &MockWebViewPool_PrewarmAsync_Call{Call: _e.mock.On("PrewarmAsync", ctx, count)} | |
| 12764 | + | } | |
| 12765 | + | ||
| 12766 | + | func (_c *MockWebViewPool_PrewarmAsync_Call) Run(run func(ctx context.Context, count int)) *MockWebViewPool_PrewarmAsync_Call { | |
| 12767 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 12768 | + | var arg0 context.Context | |
| 12769 | + | if args[0] != nil { | |
| 12770 | + | arg0 = args[0].(context.Context) | |
| 12771 | + | } | |
| 12772 | + | var arg1 int | |
| 12773 | + | if args[1] != nil { | |
| 12774 | + | arg1 = args[1].(int) | |
| 12775 | + | } | |
| 12776 | + | run( | |
| 12777 | + | arg0, | |
| 12778 | + | arg1, | |
| 12779 | + | ) | |
| 12780 | + | }) | |
| 12781 | + | return _c | |
| 12782 | + | } | |
| 12783 | + | ||
| 12784 | + | func (_c *MockWebViewPool_PrewarmAsync_Call) Return() *MockWebViewPool_PrewarmAsync_Call { | |
| 12785 | + | _c.Call.Return() | |
| 12786 | + | return _c | |
| 12787 | + | } | |
| 12788 | + | ||
| 12789 | + | func (_c *MockWebViewPool_PrewarmAsync_Call) RunAndReturn(run func(ctx context.Context, count int)) *MockWebViewPool_PrewarmAsync_Call { | |
| 12790 | + | _c.Run(run) | |
| 12791 | + | return _c | |
| 12792 | + | } | |
| 12793 | + | ||
| 12748 | 12794 | // Release provides a mock function for the type MockWebViewPool | |
| 12749 | 12795 | func (_mock *MockWebViewPool) Release(wv port.WebView) { | |
| 12750 | 12796 | _mock.Called(wv) | |
| @@ -12745,6 +12745,52 @@ func (_c *MockWebViewPool_Prewarm_Call) RunAndReturn(run func(count int)) *MockW | |||||
| 12745 | return _c | 12745 | return _c | ||
| 12746 | } | 12746 | } | ||
| 12747 | 12747 | ||||
| 12748 | + | // PrewarmAsync provides a mock function for the type MockWebViewPool | |||
| 12749 | + | func (_mock *MockWebViewPool) PrewarmAsync(ctx context.Context, count int) { | |||
| 12750 | + | _mock.Called(ctx, count) | |||
| 12751 | + | return | |||
| 12752 | + | } | |||
| 12753 | + | ||||
| 12754 | + | // MockWebViewPool_PrewarmAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrewarmAsync' | |||
| 12755 | + | type MockWebViewPool_PrewarmAsync_Call struct { | |||
| 12756 | + | *mock.Call | |||
| 12757 | + | } | |||
| 12758 | + | ||||
| 12759 | + | // PrewarmAsync is a helper method to define mock.On call | |||
| 12760 | + | // - ctx context.Context | |||
| 12761 | + | // - count int | |||
| 12762 | + | func (_e *MockWebViewPool_Expecter) PrewarmAsync(ctx interface{}, count interface{}) *MockWebViewPool_PrewarmAsync_Call { | |||
| 12763 | + | return &MockWebViewPool_PrewarmAsync_Call{Call: _e.mock.On("PrewarmAsync", ctx, count)} | |||
| 12764 | + | } | |||
| 12765 | + | ||||
| 12766 | + | func (_c *MockWebViewPool_PrewarmAsync_Call) Run(run func(ctx context.Context, count int)) *MockWebViewPool_PrewarmAsync_Call { | |||
| 12767 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 12768 | + | var arg0 context.Context | |||
| 12769 | + | if args[0] != nil { | |||
| 12770 | + | arg0 = args[0].(context.Context) | |||
| 12771 | + | } | |||
| 12772 | + | var arg1 int | |||
| 12773 | + | if args[1] != nil { | |||
| 12774 | + | arg1 = args[1].(int) | |||
| 12775 | + | } | |||
| 12776 | + | run( | |||
| 12777 | + | arg0, | |||
| 12778 | + | arg1, | |||
| 12779 | + | ) | |||
| 12780 | + | }) | |||
| 12781 | + | return _c | |||
| 12782 | + | } | |||
| 12783 | + | ||||
| 12784 | + | func (_c *MockWebViewPool_PrewarmAsync_Call) Return() *MockWebViewPool_PrewarmAsync_Call { | |||
| 12785 | + | _c.Call.Return() | |||
| 12786 | + | return _c | |||
| 12787 | + | } | |||
| 12788 | + | ||||
| 12789 | + | func (_c *MockWebViewPool_PrewarmAsync_Call) RunAndReturn(run func(ctx context.Context, count int)) *MockWebViewPool_PrewarmAsync_Call { | |||
| 12790 | + | _c.Run(run) | |||
| 12791 | + | return _c | |||
| 12792 | + | } | |||
| 12793 | + | ||||
| 12748 | // Release provides a mock function for the type MockWebViewPool | 12794 | // Release provides a mock function for the type MockWebViewPool | ||
| 12749 | func (_mock *MockWebViewPool) Release(wv port.WebView) { | 12795 | func (_mock *MockWebViewPool) Release(wv port.WebView) { | ||
| 12750 | _mock.Called(wv) | 12796 | _mock.Called(wv) | ||