- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GOCOVERDIR (0.39 sec)
-
src/testing/internal/testdeps/deps.go
} func coverTearDown(coverprofile string, gocoverdir string) (string, error) { var err error if gocoverdir == "" { gocoverdir, err = os.MkdirTemp("", "gocoverdir") if err != nil { return "error setting GOCOVERDIR: bad os.MkdirTemp return", err } defer os.RemoveAll(gocoverdir) } CoverMarkProfileEmittedFunc(true) cmode := CoverMode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 6.2K bytes - Viewed (0) -
src/testing/newcover.go
mode string tearDown func(coverprofile string, gocoverdir string) (string, error) snapshotcov func() float64 } // registerCover2 is invoked during "go test -cover" runs. // It is used to record a 'tear down' function // (to be called when the test is complete) and the coverage mode. func registerCover2(mode string, tearDown func(coverprofile string, gocoverdir string) (string, error), snapcov func() float64) { if mode == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 1.6K bytes - Viewed (0) -
src/internal/coverage/cfile/ts_test.go
"internal/goexperiment" "internal/testenv" "os" "os/exec" "path/filepath" "strings" "testing" _ "unsafe" ) func testGoCoverDir(t *testing.T) string { if f := flag.Lookup("test.gocoverdir"); f != nil { if dir := f.Value.String(); dir != "" { return dir } } return t.TempDir() } // TestTestSupport does a basic verification of the functionality in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_list.txt
# m/example package. Build IDs from binaries are of the form X/Y/Z/W # where Y/Z is the package build ID; running the program below will # pick out the parts of the ID that we want. env GOCOVERDIR=$WORK exec $WORK/m.exe $WORK/rawtoolbuildid.txt cp stdout $WORK/toolbuildid.txt # Build IDs should match here. cmp $WORK/toolbuildid.txt $WORK/listbuildid.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 22:47:28 UTC 2024 - 1.7K bytes - Viewed (0)