From 918f65a5c8b41b6c32c600a1a9392f37dddfc9f6 Mon Sep 17 00:00:00 2001 From: Marcin Federowicz Date: Fri, 22 Dec 2023 10:35:01 +0100 Subject: [PATCH] cleanup testdata from wrong cases --- testdata/redundant-import-alias-ignored.go | 10 +++------- testdata/redundant-import-alias.go | 12 ++---------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/testdata/redundant-import-alias-ignored.go b/testdata/redundant-import-alias-ignored.go index 0754b8ca1..57c3acb17 100644 --- a/testdata/redundant-import-alias-ignored.go +++ b/testdata/redundant-import-alias-ignored.go @@ -2,15 +2,11 @@ package fixtures import ( runpb "cloud.google.com/go/run/apiv2/runpb" - md5 "crypto/md5" - strings "strings" // MATCH /Import alias "strings" is redundant/ - "crypto/md5" - _ "crypto/md5" // MATCH /Import alias "_" is redundant/ - + md5 "crypto/md5" "strings" - str "strings" // MATCH /Import alias "str" is redundant/ - + str "strings" // MATCH /Import alias "str" is redundant/ + strings "strings" // MATCH /Import alias "strings" is redundant/ ) func UseRunpb() { diff --git a/testdata/redundant-import-alias.go b/testdata/redundant-import-alias.go index 546327e70..0fc508ac7 100644 --- a/testdata/redundant-import-alias.go +++ b/testdata/redundant-import-alias.go @@ -1,18 +1,10 @@ package fixtures import ( - runpb "cloud.google.com/go/run/apiv2/runpb" // MATCH /Import alias "runpb" is redundant/ - - md5 "crypto/md5" // MATCH /Import alias "md5" is redundant/ - - strings "strings" // MATCH /Import alias "strings" is redundant/ - "crypto/md5" - _ "crypto/md5" // MATCH /Import alias "_" is redundant/ - - "strings" - str "strings" // MATCH /Import alias "str" is redundant/ + md5 "crypto/md5" // MATCH /Import alias "md5" is redundant/ + runpb "cloud.google.com/go/run/apiv2/runpb" // MATCH /Import alias "runpb" is redundant/ ) func UseRunpb() {