- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 34 for Pkgs (0.05 sec)
-
src/cmd/compile/internal/types2/stdlib_test.go
// type-checks. func (c *stdlibChecker) getDirPackage(dir string) (*Package, error) { c.mu.Lock() fut, ok := c.pkgs[dir] if !ok { // First request for this package dir; type check. fut = &futurePackage{ done: make(chan struct{}), } c.pkgs[dir] = fut files, ok := c.dirFiles[dir] c.mu.Unlock() if !ok { fut.err = fmt.Errorf("no files for %s", dir) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:18:33 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/go/internal/modload/buildlist.go
// both retain the same versions of all packages in pkgs and satisfy the // graph-pruning invariants (if applicable). func tidyRoots(ctx context.Context, rs *Requirements, pkgs []*loadPkg) (*Requirements, error) { mainModule := MainModules.mustGetSingleMainModule() if rs.pruning == unpruned { return tidyUnprunedRoots(ctx, mainModule, rs, pkgs) } return tidyPrunedRoots(ctx, mainModule, rs, pkgs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 16:04:44 UTC 2024 - 53.8K bytes - Viewed (0) -
src/go/build/deps_test.go
name := filepath.ToSlash(path[len(src):]) if name == "builtin" || name == "cmd" { return filepath.SkipDir } pkgs = append(pkgs, strings.TrimPrefix(name, "vendor/")) return nil } if err := filepath.WalkDir(src, walkFn); err != nil { return nil, err } return pkgs, nil } func TestDependencies(t *testing.T) { if !testenv.HasSrc() { // Tests run in a limited file system and we do not
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/go/parser/parser_test.go
} } func TestParseDir(t *testing.T) { path := "." pkgs, err := ParseDir(token.NewFileSet(), path, dirFilter, 0) if err != nil { t.Fatalf("ParseDir(%s): %v", path, err) } if n := len(pkgs); n != 1 { t.Errorf("got %d packages; want 1", n) } pkg := pkgs["parser"] if pkg == nil { t.Errorf(`package "parser" not found`) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
cmd.Stderr = &stderr out, err := cmd.Output() if err != nil { t.Fatalf("failed to run go list to determine stdlib packages: %v\nstderr:\n%v", err, stderr.String()) } pkgs := strings.Fields(string(out)) var nimports int for _, pkg := range pkgs { t.Run(pkg, func(t *testing.T) { if testPath(t, pkg, filepath.Join(testenv.GOROOT(t), "src", path.Dir(pkg))) != nil { nimports++ } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
src/cmd/internal/moddeps/moddeps_test.go
pkgs := packagePattern(m.Path) r.run(t, goBinCopy, "generate", `-run=^//go:generate bundle `, pkgs) // See issue 41409. advice := "$ cd " + m.Dir + "\n" + "$ go mod tidy # to remove extraneous dependencies\n" + "$ go mod vendor # to vendor dependencies\n" +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 18.6K bytes - Viewed (0) -
src/cmd/go/internal/modget/get.go
return r.matchInModuleCache.Do(matchInModuleKey{pattern, m}, func() ([]string, error) { match := modload.MatchInModule(ctx, pattern, m, imports.AnyTags()) if len(match.Errs) > 0 { return match.Pkgs, match.Errs[0] } return match.Pkgs, nil }) } // queryNone adds a candidate set to q for each module matching q.pattern. // Each candidate set has only one possible module version: the matched // module at version "none".
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:26:32 UTC 2024 - 66.5K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
} } stk.Pop() parallelizablePart := func() { if cover != nil && cover.Pkgs != nil && !cfg.Experiment.CoverageRedesign { // Add imports, but avoid duplicates. seen := map[*Package]bool{p: true, ptest: true} for _, p1 := range pmain.Internal.Imports { seen[p1] = true } for _, p1 := range cover.Pkgs { if seen[p1] { // Don't add duplicate imports. continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
var pcflags []string var pkgs []string for _, pcarg := range pcargs { if pcarg == "--" { // We're going to add our own "--" argument. } else if strings.HasPrefix(pcarg, "--") { pcflags = append(pcflags, pcarg) } else { pkgs = append(pkgs, pcarg) } } for _, pkg := range pkgs { if !load.SafeArg(pkg) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
sel.SetTypecheck(1) sel.SetBounded(true) // guaranteed not to fault return sel } func runtimeField(name string, offset int64, typ *types.Type) *types.Field { f := types.NewField(src.NoXPos, ir.Pkgs.Runtime.Lookup(name), typ) f.Offset = offset return f } // ifaceData loads the data field from an interface. // The concrete type must be known to have type t. // It follows the pointer if !IsDirectIface(t).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0)