Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SnapshotCoverage (0.5 sec)

  1. src/internal/fuzz/coverage.go

    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 {
    		b |= b >> 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/testing/internal/testdeps/deps.go

    func (TestDeps) CheckCorpus(vals []any, types []reflect.Type) error {
    	return fuzz.CheckCorpus(vals, types)
    }
    
    func (TestDeps) ResetCoverage() {
    	fuzz.ResetCoverage()
    }
    
    func (TestDeps) SnapshotCoverage() {
    	fuzz.SnapshotCoverage()
    }
    
    var CoverMode string
    var Covered string
    
    // These variables below are set at runtime (via code in testmain) to point
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. pkg/util/coverage/fake_test_deps.go

    }
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) ResetCoverage() {}
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) SnapshotCoverage() {}
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) InitRuntimeCoverage() (mode string, tearDown func(string, string) (string, error), snapcov func() float64) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 15:31:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/testing/fuzz.go

    			// exits, regardless of whether it was executed cleanly, panicked,
    			// or if the fuzzFn called t.Fatal.
    			if f.testContext.isFuzzing {
    				defer f.fuzzContext.deps.SnapshotCoverage()
    				f.fuzzContext.deps.ResetCoverage()
    			}
    			fn.Call(args)
    		})
    		<-t.signal
    		if t.chatty != nil && t.chatty.json {
    			t.chatty.Updatef(t.parent.name, "=== NAME  %s\n", t.parent.name)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. src/testing/testing.go

    	return nil, errMain
    }
    func (f matchStringOnly) CheckCorpus([]any, []reflect.Type) error { return nil }
    func (f matchStringOnly) ResetCoverage()                          {}
    func (f matchStringOnly) SnapshotCoverage()                       {}
    
    func (f matchStringOnly) InitRuntimeCoverage() (mode string, tearDown func(string, string) (string, error), snapcov func() float64) {
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top