Skip to content

Commit c164dac

Browse files
committed
testutils: add comments to empty systemd stubs for sonar
1 parent 5cb2291 commit c164dac

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

shared/testutils/systemd.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,17 @@ func (d *FakeSystemdDriver) ScaleService(_ int, _ string) error { return nil }
137137
func (d *FakeSystemdDriver) CurrentReplicaCount(_ string) int { return 0 }
138138

139139
// UninstallService is a no-op stub for tests.
140-
func (d *FakeSystemdDriver) UninstallService(_ string, _ bool) {}
140+
// The FakeSystemdDriver tracks installation state via the Installed slice;
141+
// uninstalling is not needed by any current test scenario.
142+
func (d *FakeSystemdDriver) UninstallService(_ string, _ bool) {
143+
// intentionally empty: uninstall behaviour is not exercised in unit tests
144+
}
141145

142146
// UninstallInstantiatedService is a no-op stub for tests.
143-
func (d *FakeSystemdDriver) UninstallInstantiatedService(_ string, _ bool) {}
147+
// Instantiated service lifecycle is not exercised in unit tests.
148+
func (d *FakeSystemdDriver) UninstallInstantiatedService(_ string, _ bool) {
149+
// intentionally empty: uninstall behaviour is not exercised in unit tests
150+
}
144151

145152
// StartInstantiated is a no-op stub for tests.
146153
func (d *FakeSystemdDriver) StartInstantiated(_ string) error { return nil }

0 commit comments

Comments
 (0)