Skip to content

Commit

Permalink
fix: report named types from *_test packages (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmzane authored Feb 18, 2023
1 parent eeb9c72 commit ab732b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func mainModulePackages() (map[string]struct{}, error) {
m := make(map[string]struct{}, len(list))
for _, pkg := range strings.Split(list, "\n") {
m[pkg] = struct{}{}
m[pkg+"_test"] = struct{}{} // `*_test` packages belong to the main module, see issue #24.
}

return m, nil
Expand Down

0 comments on commit ab732b5

Please sign in to comment.