detached eea5da5

chore(mocks): regenerate runtime observer mock

commit
eea5da5e15935bcb731861cba7abdec96f595042
author
brice · · 2026-07-13 03:44 UTC
parent
7d099f2
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · 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
31293129 _c.Call.Return(run)
31303130 return _c
31313131 }
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 _c3130 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+}

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 12

Tags 11

↑↓ moveenter openesc close