golangci-lint: enable and fix thelper linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-10-17 08:12:57 +02:00
parent c6264ff392
commit 226a4c1138
10 changed files with 15 additions and 0 deletions
@@ -75,6 +75,7 @@ func RunRestartableDelegateTests(
newMock func() Mockable,
tests ...RestartableDelegateTest,
) {
t.Helper()
for _, tc := range tests {
t.Run(tc.Function, func(t *testing.T) {
p := new(MockRestartableProcess)
+1
View File
@@ -86,6 +86,7 @@ func TestImageRegistry(t *testing.T) {
}
func testDefaultImage(t *testing.T, defaultImageFn func() string, imageName string) {
t.Helper()
testCases := []struct {
name string
buildInfoVersion string