From ab732b51b60a15a790592ef7d9ccd5559572557d Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 19 Feb 2023 02:03:04 +0400 Subject: [PATCH] fix: report named types from `*_test` packages (#25) --- 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