go1.21 support ()

This commit is contained in:
Ludovic Fernandez 2023-08-09 12:09:20 +02:00 committed by GitHub
parent c37828a8af
commit e0a8bd8543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 55 additions and 16 deletions

View file

@ -43,6 +43,13 @@ func TestFix(t *testing.T) {
for _, input := range sources {
input := input
// TODO(ldez): remove this limitation when gocritic/ruleguard will be fixed.
if filepath.Base(input) == "gocritic.go" {
t.Logf("skip gocritic because of a bug with ruleguard")
continue
}
t.Run(filepath.Base(input), func(t *testing.T) {
t.Parallel()
@ -80,6 +87,13 @@ func TestFix_pathPrefix(t *testing.T) {
for _, input := range sources {
input := input
// TODO(ldez): remove this limitation when gocritic/ruleguard will be fixed.
if filepath.Base(input) == "gocritic.go" {
t.Logf("skip gocritic because of a bug with ruleguard")
continue
}
t.Run(filepath.Base(input), func(t *testing.T) {
t.Parallel()