func TestPackages(t *testing.T) { … } func TestPackagesWithTests(t *testing.T) { … } func TestPackagesWithSubtests(t *testing.T) { … } func checkPackages(t testing.TB, env *Env, files []protocol.DocumentURI, recursive bool, mode command.PackagesMode, wantPkg []command.Package, wantModule map[string]command.Module, wantSource []string) { … }