Skip to content

Commit

Permalink
cleanup testdata from wrong cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 22, 2023
1 parent bb05fd3 commit 918f65a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
10 changes: 3 additions & 7 deletions testdata/redundant-import-alias-ignored.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
12 changes: 2 additions & 10 deletions testdata/redundant-import-alias.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit 918f65a

Please sign in to comment.