- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for Pkgs (0.03 sec)
-
cmd/import-boss/main_test.go
} } func TestSimpleForward(t *testing.T) { pkgs, err := loadPkgs("./testdata/simple-fwd/aaa") if err != nil { t.Fatalf("unexpected failure: %v", err) } if len(pkgs) != 1 { t.Fatalf("expected 1 pkg result, got %d", len(pkgs)) } if pkgs[0].PkgPath != "k8s.io/kubernetes/cmd/import-boss/testdata/simple-fwd/aaa" { t.Fatalf("wrong PkgPath: %q", pkgs[0].PkgPath) } boss := newBoss(pkgs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 8.8K bytes - Viewed (0) -
src/internal/coverage/cformat/format.go
} if _, err := fmt.Fprintf(w, "mode: %s\n", fm.cm.String()); err != nil { return err } pkgs := make([]string, 0, len(fm.pm)) for importpath := range fm.pm { pkgs = append(pkgs, importpath) } slices.Sort(pkgs) for _, importpath := range pkgs { p := fm.pm[importpath] units := make([]extcu, 0, len(p.unitTable)) for u := range p.unitTable { units = append(units, u)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/go/internal/work/build_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 8.3K bytes - Viewed (0) -
src/cmd/go/internal/work/build.go
func oneMainPkg(pkgs []*load.Package) []*load.Package { if len(pkgs) != 1 || pkgs[0].Name != "main" { base.Fatalf("-buildmode=%s requires exactly one main package", cfg.BuildBuildmode) } return pkgs } var pkgsFilter = func(pkgs []*load.Package) []*load.Package { return pkgs } func runBuild(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() BuildInit() b := NewBuilder("") defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 17:22:59 UTC 2024 - 33.2K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
} pkgs := load.PackagesAndErrors(ctx, pkgOpts, args) if !*listE { w := 0 for _, pkg := range pkgs { if pkg.Error != nil { base.Errorf("%v", pkg.Error) continue } pkgs[w] = pkg w++ } pkgs = pkgs[:w] base.ExitIfErrors() } if *listTest { c := cache.Default()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/go/internal/run/run.go
arg := args[0] var pkgs []*load.Package if strings.Contains(arg, "@") && !build.IsLocalImport(arg) && !filepath.IsAbs(arg) { var err error pkgs, err = load.PackagesAndErrorsOutsideModule(ctx, pkgOpts, args[:1]) if err != nil { base.Fatal(err) } } else { pkgs = load.PackagesAndErrors(ctx, pkgOpts, args[:1]) } if len(pkgs) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/search/search.go
Pkgs []string // matching packages (import paths) Errs []error // errors matching the patterns to packages, NOT errors loading those packages // Errs may be non-empty even if len(Pkgs) > 0, indicating that some matching // packages could be located but results may be incomplete. // If len(Pkgs) == 0 && len(Errs) == 0, the pattern is well-formed but did not
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:05 UTC 2023 - 15.4K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/syms.go
// _builtin/runtime.go. If types_ is non-empty, successive occurrences // of the "any" placeholder type will be substituted. func LookupRuntime(name string, types_ ...*types.Type) *ir.Name { s := ir.Pkgs.Runtime.Lookup(name) if s == nil || s.Def == nil { base.Fatalf("LookupRuntime: can't find runtime.%s", name) } n := s.Def.(*ir.Name) if len(types_) != 0 { n = substArgTypes(n, types_...) } return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:13 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/go/internal/vet/vet.go
pkgOpts := load.PackageOpts{ModResolveTests: true} pkgs := load.PackagesAndErrors(ctx, pkgOpts, pkgArgs) load.CheckPackageErrors(pkgs) if len(pkgs) == 0 { base.Fatalf("no packages to vet") } b := work.NewBuilder("") defer func() { if err := b.Close(); err != nil { base.Fatal(err) } }() root := &work.Action{Mode: "go vet"} for _, p := range pkgs {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/go/internal/modindex/index_test.go
t.FailNow() } } // Check packages in increasing complexity, one at a time. pkgs := []string{ "crypto", "encoding", "unsafe", "encoding/json", "runtime", "net", } var raws []*rawPackage for _, pkg := range pkgs { raw := importRaw(src, pkg) raws = append(raws, raw) t.Run(pkg, func(t *testing.T) { data := encodeModuleBytes([]*rawPackage{raw})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 28 23:35:08 UTC 2022 - 2.3K bytes - Viewed (0)