Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for cov (0.19 sec)

  1. src/cmd/cover/testdata/profile.cov

    Dhananjay Nakrani <******@****.***> 1495987747 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 17:59:12 UTC 2017
    - 134 bytes
    - Viewed (0)
  2. scripts/test-cov-html.sh

    Sebastián Ramírez <******@****.***> 1667505629 +0100
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Nov 03 20:00:29 UTC 2022
    - 124 bytes
    - Viewed (0)
  3. src/cmd/covdata/doc.go

    	...
    	$
    
    4. Convert coverage data to legacy textual format:
    
    	$ go tool covdata textfmt -i=profiledir -o=cov.txt
    	$ head cov.txt
    	mode: set
    	cov-example/p/p.go:12.22,13.2 0 0
    	cov-example/p/p.go:15.31,16.2 1 0
    	cov-example/p/p.go:16.3,18.3 0 0
    	cov-example/p/p.go:19.3,21.3 0 0
    	...
    	$ go tool cover -html=cov.txt
    	$
    
    5. Merge profiles together:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 12:57:25 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_pkgall_multiple_mains.txt

    [short] skip
    cd $GOPATH/src/example.com/cov
    
    env GO111MODULE=on
    go test -coverpkg=all ./...
    
    env GO111MODULE=off
    go test -coverpkg=all ./...
    
    -- $GOPATH/src/example.com/cov/go.mod --
    module example.com/cov
    
    -- $GOPATH/src/example.com/cov/mainonly/mainonly.go --
    package main
    
    func main() {}
    
    -- $GOPATH/src/example.com/cov/mainwithtest/mainwithtest.go --
    package main
    
    func main() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 13 16:25:00 UTC 2019
    - 883 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/cover_pkgall_imports.txt

    [short] skip
    cd $GOPATH/src/example.com/cov
    
    env GO111MODULE=on
    go test -coverpkg=all ./...
    
    env GO111MODULE=off
    go test -coverpkg=all ./...
    
    -- $GOPATH/src/example.com/cov/go.mod --
    module example.com/cov
    
    -- $GOPATH/src/example.com/cov/notest/notest.go --
    package notest
    
    func Foo() {}
    
    -- $GOPATH/src/example.com/cov/onlytest/onlytest_test.go --
    package onlytest_test
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 18:14:47 UTC 2021
    - 870 bytes
    - Viewed (0)
  6. src/internal/fuzz/coverage.go

    // source code to 0.
    func ResetCoverage() {
    	cov := coverage()
    	clear(cov)
    }
    
    // SnapshotCoverage copies the current counter values into coverageSnapshot,
    // preserving them for later inspection. SnapshotCoverage also rounds each
    // counter down to the nearest power of two. This lets the coordinator store
    // multiple values for each counter by OR'ing them together.
    func SnapshotCoverage() {
    	cov := coverage()
    	for i, b := range cov {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/cmd/covdata/covdata.go

    	// ... off and running now.
    	dbgtrace(1, "starting perform")
    
    	indirs := strings.Split(*indirsflag, ",")
    	vis := cov.CovDataVisitor(op)
    	var flags cov.CovDataReaderFlags
    	if *hflag {
    		flags |= cov.PanicOnError
    	}
    	if *hwflag {
    		flags |= cov.PanicOnWarning
    	}
    	reader := cov.MakeCovDataReader(vis, indirs, *verbflag, flags, matchpkg)
    	st := 0
    	if err := reader.Visit(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_fuzz_cov.txt

    env GOCACHE=$WORK/cache
    
    # TODO(#51484): enabled debugging info to help diagnose a deadlock in the fuzzer
    env GODEBUG=fuzzdebug=1
    ! go test -fuzz=FuzzCov -v
    ! stderr 'cov instrumentation working'
    
    -- go.mod --
    module test
    
    -- cov_test.go --
    package cov
    
    import "testing"
    
    func FuzzCov(f *testing.F) {
    	f.Fuzz(func(t *testing.T, b []byte) {
    		if len(b) == 8 &&
    			b[0] == 'h' &&
    			b[1] == 'e' &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 787 bytes
    - Viewed (0)
  9. src/cmd/cover/cover_test.go

    		offset += i + j
    	}
    	return directives
    }
    
    // Makes sure that `cover -func=profile.cov` reports accurate coverage.
    // Issue #20515.
    func TestCoverFunc(t *testing.T) {
    	testenv.MustHaveExec(t)
    
    	// testcover -func ./testdata/profile.cov
    	coverProfile := filepath.Join(testdata, "profile.cov")
    	cmd := testenv.Command(t, testcover(t), "-func", coverProfile)
    	out, err := cmd.Output()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cover_statements.txt

    ! stderr 'compile(\.exe"?)? -'
    ! stderr 'cover(\.exe"?)? -'
    [GOEXPERIMENT:coverageredesign] stderr 'covdata(\.exe"?)? percent'
    
    # Now add in -coverprofile.
    go test -cover -coverprofile=cov.dat ./pkg1 ./pkg2 ./pkg3 ./pkg4
    [!GOEXPERIMENT:coverageredesign] stdout 'pkg1	\[no test files\]'
    [GOEXPERIMENT:coverageredesign] stdout 'pkg1		coverage: 0.0% of statements'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:36:30 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top