Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CoverVars (0.12 sec)

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

    					coverFiles = append(coverFiles, ptest.CgoFiles...)
    					ptest.Internal.CoverVars = DeclareCoverVars(ptest, coverFiles...)
    				}
    			}
    
    			if !cfg.Experiment.CoverageRedesign {
    				for _, cp := range pmain.Internal.Imports {
    					if len(cp.Internal.CoverVars) > 0 {
    						t.Cover.Vars = append(t.Cover.Vars, coverInfo{cp, cp.Internal.CoverVars})
    					}
    				}
    			}
    		}
    
    		data, err := formatTestmain(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. src/cmd/cover/cfg_test.go

    }
    
    func writeOutFileList(t *testing.T, infiles []string, outdir, tag string) ([]string, string) {
    	outfilelist := filepath.Join(outdir, tag+"outfilelist.txt")
    	var sb strings.Builder
    	cv := filepath.Join(outdir, "covervars.go")
    	outfs := []string{cv}
    	fmt.Fprintf(&sb, "%s\n", cv)
    	for _, inf := range infiles {
    		base := filepath.Base(inf)
    		of := filepath.Join(outdir, tag+".cov."+base)
    		outfs = append(outfs, of)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    		if cfg.BuildCoverMode == "atomic" {
    			EnsureImport(p, "sync/atomic")
    		}
    
    		// Generate covervars if using legacy coverage design.
    		if !cfg.Experiment.CoverageRedesign {
    			var coverFiles []string
    			coverFiles = append(coverFiles, p.GoFiles...)
    			coverFiles = append(coverFiles, p.CgoFiles...)
    			p.Internal.CoverVars = DeclareCoverVars(p, coverFiles...)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    			if cfg.Experiment.CoverageRedesign {
    				infiles = append(infiles, sourceFile)
    				outfiles = append(outfiles, coverFile)
    			} else {
    				cover := p.Internal.CoverVars[key]
    				if cover == nil {
    					continue // Not covering this file.
    				}
    				if err := b.cover(a, coverFile, sourceFile, cover.Var); err != nil {
    					return err
    				}
    			}
    			if i < len(gofiles) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top