From bdf4ce163479b76c9aa6f819a5728e27e1cba249 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 19 Feb 2023 02:00:04 +0400 Subject: [PATCH] fix: report named types from *_test packages --- utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils.go b/utils.go index 871dcf6..0c277ab 100644 --- a/utils.go +++ b/utils.go @@ -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