Chore: Enable scopelint Go linter (#25896)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-29 17:04:38 +02:00
committed by GitHub
parent a5fb6bddbe
commit d1e6214a4a
28 changed files with 45 additions and 4 deletions

View File

@ -21,9 +21,10 @@ func TestVersionComparison(t *testing.T) {
}
for k, v := range upgradeablePlugins {
key := k
val := v
t.Run(fmt.Sprintf("for %s should be true", k), func(t *testing.T) {
assert.True(t, shouldUpgrade(k, &val))
assert.True(t, shouldUpgrade(key, &val))
})
}
})
@ -40,9 +41,10 @@ func TestVersionComparison(t *testing.T) {
}
for k, v := range shouldNotUpgrade {
key := k
val := v
t.Run(fmt.Sprintf("for %s should be false", k), func(t *testing.T) {
assert.False(t, shouldUpgrade(k, &val))
assert.False(t, shouldUpgrade(key, &val))
})
}
})