Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EmitMetaFile (0.16 sec)

  1. src/cmd/internal/cov/covcmd/cmddefs.go

    	// info.
    	Local bool
    
    	// EmitMetaFile if non-empty is the path to which the cover tool should
    	// directly emit a coverage meta-data file for the package, if the
    	// package has any functions in it. The go command will pass in a value
    	// here if we've been asked to run "go test -cover" on a package that
    	// doesn't have any *_test.go files.
    	EmitMetaFile string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/cover/cfg_test.go

    	outcfg := filepath.Join(outdir, "outcfg.txt")
    	p := covcmd.CoverPkgConfig{
    		PkgPath:      ppath,
    		PkgName:      pname,
    		Granularity:  gran,
    		OutConfig:    outcfg,
    		EmitMetaFile: mpath,
    	}
    	data, err := json.Marshal(p)
    	if err != nil {
    		t.Fatalf("json.Marshal failed: %v", err)
    	}
    	writeFile(t, incfg, data)
    	return incfg
    }
    
    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/cover/cover.go

    	if *pkgcfg == "" {
    		return
    	}
    
    	// If the "EmitMetaFile" path has been set, invoke a helper
    	// that will write out a pre-cooked meta-data file for this package
    	// to the specified location, in effect simulating the execution
    	// of a test binary that doesn't do any testing to speak of.
    	if pkgconfig.EmitMetaFile != "" {
    		p.emitMetaFile(pkgconfig.EmitMetaFile)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    		// depending on user demand.
    		Granularity: "perblock",
    		OutConfig:   p.Internal.Cover.Cfg,
    		Local:       p.Internal.Local,
    	}
    	if ba, ok := a.Actor.(*buildActor); ok && ba.covMetaFileName != "" {
    		pcfg.EmitMetaFile = a.Objdir + ba.covMetaFileName
    	}
    	if a.Package.Module != nil {
    		pcfg.ModulePath = a.Package.Module.Path
    	}
    	data, err := json.Marshal(pcfg)
    	if err != nil {
    		return err
    	}
    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