Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsTestOnly (0.09 sec)

  1. src/cmd/go/internal/load/pkg.go

    	}
    	return p.ImportPath
    }
    
    // IsTestOnly reports whether p is a test-only package.
    //
    // A “test-only” package is one that:
    //   - is a test-only variant of an ordinary package, or
    //   - is a synthesized "main" package for a test binary, or
    //   - contains only _test.go files.
    func (p *Package) IsTestOnly() bool {
    	return p.ForTest != "" ||
    		p.Internal.TestmainGo != nil ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. src/cmd/go/internal/test/test.go

    			// meta-files summary file written by writeCoverMetaAct,
    			// so add a dependence edge from writeCoverMetaAct to the
    			// run action.
    			runAction.Deps = append(runAction.Deps, writeCoverMetaAct)
    			if !p.IsTestOnly() {
    				// Package p is not test only, meaning that the build
    				// action for p may generate a static meta-data file.
    				// Add a dependence edge from p to writeCoverMetaAct,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top