- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestPackagesFor (0.16 sec)
-
src/cmd/go/internal/vet/vet.go
defer func() { if err := b.Close(); err != nil { base.Fatal(err) } }() root := &work.Action{Mode: "go vet"} for _, p := range pkgs { _, ptest, pxtest, err := load.TestPackagesFor(ctx, pkgOpts, p, nil) if err != nil { base.Errorf("%v", err) continue } if len(ptest.GoFiles) == 0 && len(ptest.CgoFiles) == 0 && pxtest == nil {
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/load/test.go
type TestCover struct { Mode string Local bool Pkgs []*Package Paths []string Vars []coverInfo } // TestPackagesFor is like TestPackagesAndErrors but it returns // an error if the test packages or their dependencies have errors. // Only test packages without errors are returned. func TestPackagesFor(ctx context.Context, opts PackageOpts, p *Package, cover *TestCover) (pmain, ptest, pxtest *Package, err error) {
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/list/list.go
done := func() { sema.Release(1) wg.Done() } pmain, ptest, pxtest = load.TestPackagesAndErrors(ctx, done, pkgOpts, p, nil) } else { pmain, ptest, pxtest, err = load.TestPackagesFor(ctx, pkgOpts, p, nil) if err != nil { base.Fatalf("go: can't load test package: %s", err) } } testPackages = append(testPackages, testPackageSet{p, pmain, ptest, pxtest}) } }
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/test/test.go
cover = &load.TestCover{ Mode: cfg.BuildCoverMode, Local: cfg.BuildCoverPkg == nil, Pkgs: testCoverPkgs, Paths: cfg.BuildCoverPkg, } } pmain, ptest, pxtest, err := load.TestPackagesFor(ctx, pkgOpts, p, cover) if err != nil { return nil, nil, nil, err } // If imported is true then this package is imported by some // package being tested. Make building the test version of the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0)