chore(mocks): regenerate runtime observer mock
- commit
- eea5da5e15935bcb731861cba7abdec96f595042
- author
- brice · · 2026-07-13 03:44 UTC
- parent
- 7d099f2
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +67 -0
M internal/ports/mocks/mocks.go +67 -0
| @@ -3129,3 +3129,70 @@ func (_c *MockRemoteDialerFactory_DialerForRemote_Call) RunAndReturn(run func(ta | |||
| 3129 | 3129 | _c.Call.Return(run) | |
| 3130 | 3130 | return _c | |
| 3131 | 3131 | } | |
| 3132 | + | ||
| 3133 | + | // NewMockRuntimeObserver creates a new instance of MockRuntimeObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |
| 3134 | + | // The first argument is typically a *testing.T value. | |
| 3135 | + | func NewMockRuntimeObserver(t interface { | |
| 3136 | + | mock.TestingT | |
| 3137 | + | Cleanup(func()) | |
| 3138 | + | }) *MockRuntimeObserver { | |
| 3139 | + | mock := &MockRuntimeObserver{} | |
| 3140 | + | mock.Mock.Test(t) | |
| 3141 | + | ||
| 3142 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |
| 3143 | + | ||
| 3144 | + | return mock | |
| 3145 | + | } | |
| 3146 | + | ||
| 3147 | + | // MockRuntimeObserver is an autogenerated mock type for the RuntimeObserver type | |
| 3148 | + | type MockRuntimeObserver struct { | |
| 3149 | + | mock.Mock | |
| 3150 | + | } | |
| 3151 | + | ||
| 3152 | + | type MockRuntimeObserver_Expecter struct { | |
| 3153 | + | mock *mock.Mock | |
| 3154 | + | } | |
| 3155 | + | ||
| 3156 | + | func (_m *MockRuntimeObserver) EXPECT() *MockRuntimeObserver_Expecter { | |
| 3157 | + | return &MockRuntimeObserver_Expecter{mock: &_m.Mock} | |
| 3158 | + | } | |
| 3159 | + | ||
| 3160 | + | // ObserveRuntime provides a mock function for the type MockRuntimeObserver | |
| 3161 | + | func (_mock *MockRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) { | |
| 3162 | + | _mock.Called(runtimeMark) | |
| 3163 | + | return | |
| 3164 | + | } | |
| 3165 | + | ||
| 3166 | + | // MockRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime' | |
| 3167 | + | type MockRuntimeObserver_ObserveRuntime_Call struct { | |
| 3168 | + | *mock.Call | |
| 3169 | + | } | |
| 3170 | + | ||
| 3171 | + | // ObserveRuntime is a helper method to define mock.On call | |
| 3172 | + | // - runtimeMark ports.RuntimeMark | |
| 3173 | + | func (_e *MockRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockRuntimeObserver_ObserveRuntime_Call { | |
| 3174 | + | return &MockRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)} | |
| 3175 | + | } | |
| 3176 | + | ||
| 3177 | + | func (_c *MockRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call { | |
| 3178 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 3179 | + | var arg0 ports.RuntimeMark | |
| 3180 | + | if args[0] != nil { | |
| 3181 | + | arg0 = args[0].(ports.RuntimeMark) | |
| 3182 | + | } | |
| 3183 | + | run( | |
| 3184 | + | arg0, | |
| 3185 | + | ) | |
| 3186 | + | }) | |
| 3187 | + | return _c | |
| 3188 | + | } | |
| 3189 | + | ||
| 3190 | + | func (_c *MockRuntimeObserver_ObserveRuntime_Call) Return() *MockRuntimeObserver_ObserveRuntime_Call { | |
| 3191 | + | _c.Call.Return() | |
| 3192 | + | return _c | |
| 3193 | + | } | |
| 3194 | + | ||
| 3195 | + | func (_c *MockRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call { | |
| 3196 | + | _c.Run(run) | |
| 3197 | + | return _c | |
| 3198 | + | } | |
| @@ -3129,3 +3129,70 @@ func (_c *MockRemoteDialerFactory_DialerForRemote_Call) RunAndReturn(run func(ta | |||||
| 3129 | _c.Call.Return(run) | 3129 | _c.Call.Return(run) | ||
| 3130 | return _c | 3130 | return _c | ||
| 3131 | } | 3131 | } | ||
| 3132 | + | ||||
| 3133 | + | // NewMockRuntimeObserver creates a new instance of MockRuntimeObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |||
| 3134 | + | // The first argument is typically a *testing.T value. | |||
| 3135 | + | func NewMockRuntimeObserver(t interface { | |||
| 3136 | + | mock.TestingT | |||
| 3137 | + | Cleanup(func()) | |||
| 3138 | + | }) *MockRuntimeObserver { | |||
| 3139 | + | mock := &MockRuntimeObserver{} | |||
| 3140 | + | mock.Mock.Test(t) | |||
| 3141 | + | ||||
| 3142 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |||
| 3143 | + | ||||
| 3144 | + | return mock | |||
| 3145 | + | } | |||
| 3146 | + | ||||
| 3147 | + | // MockRuntimeObserver is an autogenerated mock type for the RuntimeObserver type | |||
| 3148 | + | type MockRuntimeObserver struct { | |||
| 3149 | + | mock.Mock | |||
| 3150 | + | } | |||
| 3151 | + | ||||
| 3152 | + | type MockRuntimeObserver_Expecter struct { | |||
| 3153 | + | mock *mock.Mock | |||
| 3154 | + | } | |||
| 3155 | + | ||||
| 3156 | + | func (_m *MockRuntimeObserver) EXPECT() *MockRuntimeObserver_Expecter { | |||
| 3157 | + | return &MockRuntimeObserver_Expecter{mock: &_m.Mock} | |||
| 3158 | + | } | |||
| 3159 | + | ||||
| 3160 | + | // ObserveRuntime provides a mock function for the type MockRuntimeObserver | |||
| 3161 | + | func (_mock *MockRuntimeObserver) ObserveRuntime(runtimeMark ports.RuntimeMark) { | |||
| 3162 | + | _mock.Called(runtimeMark) | |||
| 3163 | + | return | |||
| 3164 | + | } | |||
| 3165 | + | ||||
| 3166 | + | // MockRuntimeObserver_ObserveRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObserveRuntime' | |||
| 3167 | + | type MockRuntimeObserver_ObserveRuntime_Call struct { | |||
| 3168 | + | *mock.Call | |||
| 3169 | + | } | |||
| 3170 | + | ||||
| 3171 | + | // ObserveRuntime is a helper method to define mock.On call | |||
| 3172 | + | // - runtimeMark ports.RuntimeMark | |||
| 3173 | + | func (_e *MockRuntimeObserver_Expecter) ObserveRuntime(runtimeMark any) *MockRuntimeObserver_ObserveRuntime_Call { | |||
| 3174 | + | return &MockRuntimeObserver_ObserveRuntime_Call{Call: _e.mock.On("ObserveRuntime", runtimeMark)} | |||
| 3175 | + | } | |||
| 3176 | + | ||||
| 3177 | + | func (_c *MockRuntimeObserver_ObserveRuntime_Call) Run(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call { | |||
| 3178 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 3179 | + | var arg0 ports.RuntimeMark | |||
| 3180 | + | if args[0] != nil { | |||
| 3181 | + | arg0 = args[0].(ports.RuntimeMark) | |||
| 3182 | + | } | |||
| 3183 | + | run( | |||
| 3184 | + | arg0, | |||
| 3185 | + | ) | |||
| 3186 | + | }) | |||
| 3187 | + | return _c | |||
| 3188 | + | } | |||
| 3189 | + | ||||
| 3190 | + | func (_c *MockRuntimeObserver_ObserveRuntime_Call) Return() *MockRuntimeObserver_ObserveRuntime_Call { | |||
| 3191 | + | _c.Call.Return() | |||
| 3192 | + | return _c | |||
| 3193 | + | } | |||
| 3194 | + | ||||
| 3195 | + | func (_c *MockRuntimeObserver_ObserveRuntime_Call) RunAndReturn(run func(runtimeMark ports.RuntimeMark)) *MockRuntimeObserver_ObserveRuntime_Call { | |||
| 3196 | + | _c.Run(run) | |||
| 3197 | + | return _c | |||
| 3198 | + | } | |||