- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for Pkgs (0.06 sec)
-
src/cmd/go/testdata/script/build_patterns_outside_gopath.txt
# Tests issue #18778 [short] skip cd pkgs env GO111MODULE=off go build ./... ! stdout . go test ./... stdout '^ok' go list ./... stdout 'pkgs$' stdout 'pkgs/a' -- pkgs/go.mod -- module pkgs go 1.16 -- pkgs/a.go -- package x -- pkgs/a_test.go -- package x_test import "testing" func TestX(t *testing.T) { } -- pkgs/a/a.go -- package a -- pkgs/a/a_test.go -- package a_test
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 426 bytes - Viewed (0) -
src/cmd/go/internal/load/flag_test.go
} func ppfDirTest(pattern string, nmatch int, dirs ...string) ppfTest { var pkgs []ppfTestPackage for i, d := range dirs { flags := []string{} if i < nmatch { flags = []string{"-S"} } pkgs = append(pkgs, ppfTestPackage{path: "p", dir: d, flags: flags}) } return ppfTest{args: []string{pattern + "=-S"}, pkgs: pkgs} } func TestPerPackageFlag(t *testing.T) { nativeDir := func(d string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:04:04 UTC 2017 - 3.9K bytes - Viewed (0) -
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/vendor/golang.org/x/tools/go/types/typeutil/imports.go
func Dependencies(pkgs ...*types.Package) []*types.Package { var result []*types.Package seen := make(map[*types.Package]bool) var visit func(pkgs []*types.Package) visit = func(pkgs []*types.Package) { for _, p := range pkgs { if !seen[p] { seen[p] = true visit(p.Imports()) result = append(result, p) } } } visit(pkgs) return result
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 21:56:21 UTC 2022 - 883 bytes - Viewed (0) -
src/main/java/jcifs/context/SingletonContext.java
SingletonContext.getInstance(); String pkgs = System.getProperty("java.protocol.handler.pkgs"); if ( pkgs == null ) { System.setProperty("java.protocol.handler.pkgs", "jcifs"); } else if ( pkgs.indexOf("jcifs") == -1 ) { pkgs += "|jcifs"; System.setProperty("java.protocol.handler.pkgs", pkgs); } } /** *
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sat Jun 01 08:53:08 UTC 2019 - 4.2K bytes - Viewed (0) -
src/cmd/go/internal/fix/fix.go
} func runFix(ctx context.Context, cmd *base.Command, args []string) { pkgs := load.PackagesAndErrors(ctx, load.PackageOpts{}, args) w := 0 for _, pkg := range pkgs { if pkg.Error != nil { base.Errorf("%v", pkg.Error) continue } pkgs[w] = pkg w++ } pkgs = pkgs[:w] printed := false for _, pkg := range pkgs { if modload.Enabled() && pkg.Module != nil && !pkg.Module.Main { if !printed {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:52:29 UTC 2022 - 2.2K 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/cover/func.go
} pkgs[pkg.ImportPath] = &pkg } return pkgs, nil } // findFile finds the location of the named file in GOROOT, GOPATH etc. func findFile(pkgs map[string]*Pkg, file string) (string, error) { if strings.HasPrefix(file, ".") || filepath.IsAbs(file) { // Relative or absolute path. return file, nil } pkg := pkgs[path.Dir(file)] if pkg != nil { if pkg.Dir != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 6.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)