Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 323 for coverage2 (0.13 sec)

  1. src/cmd/go/testdata/script/cover_cgo_xtest.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test cgo coverage with an external test.
    
    go test -short -cover cgocover2
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover2
    
    go 1.16
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    
    var b bool
    
    func F() {
    	if b {
    		for {
    		}
    	}
    	C.f()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 464 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    # Test that minimization doesn't use dirty coverage snapshots when it
    # is unable to actually minimize the input. We do this by checking that
    # an expected value appears in the cache. If a dirty coverage map is used
    # (i.e. the coverage map generated during the last minimization step,
    # rather than the map provided with the initial input) then this value
    # is unlikely to appear in the cache, since the map generated during
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/ts_test.go

    	// have some statements.
    	t := 0
    	for i := 0; i < n; i++ {
    		for j := 0; j < i; j++ {
    			t += i ^ j
    		}
    	}
    	return t
    }
    
    // Tests runtime/coverage.snapshot() directly. Note that if
    // coverage is not enabled, the hook is designed to just return
    // zero.
    func TestCoverageSnapshot(t *testing.T) {
    	C1 := Snapshot()
    	thisFunctionOnlyCalledFromSnapshotTest(15)
    	C2 := Snapshot()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:58:07 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/runtime/covermeta.go

    package runtime
    
    import (
    	"internal/coverage/rtcov"
    	"unsafe"
    )
    
    // The compiler emits calls to runtime.addCovMeta
    // but this code has moved to rtcov.AddMeta.
    func addCovMeta(p unsafe.Pointer, dlen uint32, hash [16]byte, pkgpath string, pkgid int, cmode uint8, cgran uint8) uint32 {
    	id := rtcov.AddMeta(p, dlen, hash, pkgpath, pkgid, cmode, cgran)
    	if id == 0 {
    		throw("runtime.addCovMeta: coverage package map collision")
    	}
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 603 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/cover_cgo_extra_file.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test coverage on cgo code. This test case includes an
    # extra empty non-cgo file in the package being checked.
    
    go test -short -cover cgocover4
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover4
    
    go 1.16
    -- notcgo.go --
    package p
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 560 bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestScenarioDefinition.groovy

            static class GroupsBean {
                /**
                 * testProject : largeJavaMultiProject
                 * coverage : {"test":["linux","windows"]}
                 */
                String testProject
    
                String comment
    
                TreeMap<String, List<String>> coverage
            }
        }
    
        void writeTo(File file) {
            sort()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/internal/fuzz/fuzz.go

    				c.minimizationAllowed = true
    				break
    			}
    		}
    	}
    
    	covSize := len(coverage())
    	if covSize == 0 {
    		fmt.Fprintf(c.opts.Log, "warning: the test binary was not built with coverage instrumentation, so fuzzing will run without coverage guidance and may be inefficient\n")
    		// Even though a coverage-only run won't occur, we should still run all
    		// of the seed corpus to make sure there are no existing failures before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cover_var_init_order.txt

    # This test verifies that issue 56293 has been fixed, and that the
    # insertion of coverage instrumentation doesn't perturb package
    # initialization order.
    
    [short] skip
    
    # Skip if new coverage is turned off.
    [!GOEXPERIMENT:coverageredesign] skip
    
    go test -cover example
    
    -- go.mod --
    module example
    
    go 1.20
    
    -- m.go --
    
    package main
    
    import (
    	"flag"
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 18:14:15 UTC 2022
    - 784 bytes
    - Viewed (0)
  9. src/internal/coverage/test/counter_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package test
    
    import (
    	"fmt"
    	"internal/coverage"
    	"internal/coverage/decodecounter"
    	"internal/coverage/encodecounter"
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    )
    
    type ctrVis struct {
    	funcs []decodecounter.FuncPayload
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:34 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cover_build_pkg_select.txt

    # This test checks more of the "go build -cover" functionality,
    # specifically which packages get selected when building.
    
    [short] skip
    
    # Skip if new coverage is not enabled.
    [!GOEXPERIMENT:coverageredesign] skip
    
    #-------------------------------------------
    
    # Build for coverage.
    go build -mod=mod -o $WORK/modex.exe -cover mod.example/main
    
    # Save off old GOCOVERDIR setting
    env SAVEGOCOVERDIR=$GOCOVERDIR
    
    # Execute.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top