diff --git a/pkg/ketchup/renderer_test.go b/pkg/ketchup/renderer_test.go index fdc1f14b..16a28686 100644 --- a/pkg/ketchup/renderer_test.go +++ b/pkg/ketchup/renderer_test.go @@ -31,8 +31,6 @@ func TestMin(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/middleware/middleware_test.go b/pkg/middleware/middleware_test.go index 64f4a9bd..0a964721 100644 --- a/pkg/middleware/middleware_test.go +++ b/pkg/middleware/middleware_test.go @@ -44,8 +44,6 @@ func TestMiddleware(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/model/ketchup_test.go b/pkg/model/ketchup_test.go index 17e09d61..573e8df2 100644 --- a/pkg/model/ketchup_test.go +++ b/pkg/model/ketchup_test.go @@ -46,8 +46,6 @@ func TestParseKetchupFrequency(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -100,8 +98,6 @@ func TestKetchupByRepositoryID(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -183,8 +179,6 @@ func TestKetchupByPriority(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -224,8 +218,6 @@ func TestReleaseByRepositoryID(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -265,8 +257,6 @@ func TestReleaseByKindAndName(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/model/repository_test.go b/pkg/model/repository_test.go index a0cba169..57db09fa 100644 --- a/pkg/model/repository_test.go +++ b/pkg/model/repository_test.go @@ -24,8 +24,6 @@ func TestString(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -72,8 +70,6 @@ func TestURL(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -113,8 +109,6 @@ func TestCompareURL(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -154,8 +148,6 @@ func TestParseRepositoryKind(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/model/semver_test.go b/pkg/model/semver_test.go index 4cad1785..f93ef04b 100644 --- a/pkg/model/semver_test.go +++ b/pkg/model/semver_test.go @@ -84,8 +84,6 @@ func TestCheckPatternsMatching(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/model/user_test.go b/pkg/model/user_test.go index 6162f00d..01e9e5d4 100644 --- a/pkg/model/user_test.go +++ b/pkg/model/user_test.go @@ -37,8 +37,6 @@ func TestReadUser(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/notifier/notifier_test.go b/pkg/notifier/notifier_test.go index 94a6efd7..7deddcea 100644 --- a/pkg/notifier/notifier_test.go +++ b/pkg/notifier/notifier_test.go @@ -43,8 +43,6 @@ func TestFlags(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -116,8 +114,6 @@ func TestGetNewRepositoryReleases(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -243,8 +239,6 @@ func TestGetKetchupToNotify(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -441,8 +435,6 @@ func TestSendNotification(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/notifier/releases_test.go b/pkg/notifier/releases_test.go index 2c6bf08c..65f0ffb3 100644 --- a/pkg/notifier/releases_test.go +++ b/pkg/notifier/releases_test.go @@ -66,8 +66,6 @@ func TestGetNewStandardReleases(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -183,8 +181,6 @@ func TestGetNewHelmReleases(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/provider/docker/docker_test.go b/pkg/provider/docker/docker_test.go index 5a13432f..d2253e59 100644 --- a/pkg/provider/docker/docker_test.go +++ b/pkg/provider/docker/docker_test.go @@ -48,8 +48,6 @@ func TestGetNextURL(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/provider/github/github_test.go b/pkg/provider/github/github_test.go index 47b796de..41a635fc 100644 --- a/pkg/provider/github/github_test.go +++ b/pkg/provider/github/github_test.go @@ -18,8 +18,6 @@ func TestFlags(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/scheduler/scheduler_test.go b/pkg/scheduler/scheduler_test.go index 3460ceac..d0a4242c 100644 --- a/pkg/scheduler/scheduler_test.go +++ b/pkg/scheduler/scheduler_test.go @@ -18,8 +18,6 @@ func TestFlags(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/semver/pattern_test.go b/pkg/semver/pattern_test.go index 9cd76ce9..f50e740c 100644 --- a/pkg/semver/pattern_test.go +++ b/pkg/semver/pattern_test.go @@ -165,8 +165,6 @@ func TestCheck(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/semver/semver_test.go b/pkg/semver/semver_test.go index f888de24..05fc30c7 100644 --- a/pkg/semver/semver_test.go +++ b/pkg/semver/semver_test.go @@ -84,8 +84,6 @@ func TestIsGreater(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -146,8 +144,6 @@ func TestCompare(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -295,8 +291,6 @@ func TestParse(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/service/ketchup/ketchup_test.go b/pkg/service/ketchup/ketchup_test.go index 4c2558f9..dab1f4ad 100644 --- a/pkg/service/ketchup/ketchup_test.go +++ b/pkg/service/ketchup/ketchup_test.go @@ -50,8 +50,6 @@ func TestList(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -124,8 +122,6 @@ func TestListForRepositories(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -221,8 +217,6 @@ func TestCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -368,8 +362,6 @@ func TestUpdate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -509,8 +501,6 @@ func TestDelete(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -637,8 +627,6 @@ func TestCheck(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/service/repository/repository_test.go b/pkg/service/repository/repository_test.go index de9e938a..d4b8fd16 100644 --- a/pkg/service/repository/repository_test.go +++ b/pkg/service/repository/repository_test.go @@ -61,8 +61,6 @@ func TestList(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -135,8 +133,6 @@ func TestSuggest(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -264,8 +260,6 @@ func TestGetOrCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -383,8 +377,6 @@ func TestCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -493,8 +485,6 @@ func TestUpdate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -588,8 +578,6 @@ func TestClean(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -694,8 +682,6 @@ func TestCheck(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -778,8 +764,6 @@ func TestSanitizeName(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/service/user/user_test.go b/pkg/service/user/user_test.go index 44804ac2..c0f5a3f8 100644 --- a/pkg/service/user/user_test.go +++ b/pkg/service/user/user_test.go @@ -63,8 +63,6 @@ func TestStoreInContext(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -161,8 +159,6 @@ func TestCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -270,8 +266,6 @@ func TestCheck(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/store/ketchup/ketchup_test.go b/pkg/store/ketchup/ketchup_test.go index 022325ca..f1221298 100644 --- a/pkg/store/ketchup/ketchup_test.go +++ b/pkg/store/ketchup/ketchup_test.go @@ -77,8 +77,6 @@ func TestList(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -218,8 +216,6 @@ func TestListByRepositoriesIDAndFrequencies(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -326,8 +322,6 @@ func TestGetByRepository(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -415,8 +409,6 @@ func TestCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -476,8 +468,6 @@ func TestUpdate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -531,8 +521,6 @@ func TestDelete(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/store/repository/repository_test.go b/pkg/store/repository/repository_test.go index 2393341d..88e09274 100644 --- a/pkg/store/repository/repository_test.go +++ b/pkg/store/repository/repository_test.go @@ -89,8 +89,6 @@ func TestList(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -236,8 +234,6 @@ func TestSuggest(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -362,8 +358,6 @@ func TestGet(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -493,8 +487,6 @@ func TestCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -585,8 +577,6 @@ func TestDeleteUnused(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -629,8 +619,6 @@ func TestDeleteUnusedVersions(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/store/repository/repository_version_test.go b/pkg/store/repository/repository_version_test.go index 5f2fd4d4..7ccbeaab 100644 --- a/pkg/store/repository/repository_version_test.go +++ b/pkg/store/repository/repository_version_test.go @@ -75,8 +75,6 @@ func TestUpdateVersions(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() diff --git a/pkg/store/user/user_test.go b/pkg/store/user/user_test.go index 2a4a74da..90106832 100644 --- a/pkg/store/user/user_test.go +++ b/pkg/store/user/user_test.go @@ -44,8 +44,6 @@ func TestGetByEmail(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -127,8 +125,6 @@ func TestGetByLoginID(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -207,8 +203,6 @@ func TestCreate(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel() @@ -255,8 +249,6 @@ func TestCount(t *testing.T) { } for intention, testCase := range cases { - intention, testCase := intention, testCase - t.Run(intention, func(t *testing.T) { t.Parallel()