dev: support build tags about go version in linter tests ()

This commit is contained in:
Ludovic Fernandez 2022-04-06 10:44:20 +02:00 committed by GitHub
parent a2e6c7674d
commit 13c4726760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 89 additions and 8 deletions

View file

@ -49,6 +49,11 @@ func TestFix(t *testing.T) {
input,
}
rc := extractRunContextFromComments(t, input)
if rc == nil {
t.Logf("Skipped: %s", input)
return
}
args = append(args, rc.args...)
cfg, err := yaml.Marshal(rc.config)