Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FuzzSeed (0.09 sec)

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

    [!fuzz] skip
    [short] skip
    env GOCACHE=$WORK/cache
    
    # When running seed inputs, T.Parallel should let multiple inputs run in
    # parallel.
    go test -run=FuzzSeed
    
    # When fuzzing, T.Parallel should be safe to call, but it should have no effect.
    # We just check that it doesn't hang, which would be the most obvious
    # failure mode.
    # TODO(jayconrod): check for the string "after T.Parallel". It's not printed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/internal/fuzz/mutator_test.go

    	"fmt"
    	"os"
    	"strconv"
    	"testing"
    )
    
    func BenchmarkMutatorBytes(b *testing.B) {
    	origEnv := os.Getenv("GODEBUG")
    	defer func() { os.Setenv("GODEBUG", origEnv) }()
    	os.Setenv("GODEBUG", fmt.Sprintf("%s,fuzzseed=123", origEnv))
    	m := newMutator()
    
    	for _, size := range []int{
    		1,
    		10,
    		100,
    		1000,
    		10000,
    		100000,
    	} {
    		b.Run(strconv.Itoa(size), func(b *testing.B) {
    			buf := make([]byte, size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. src/internal/fuzz/pcg.go

    	inc    uint64
    }
    
    func godebugSeed() *int {
    	debug := strings.Split(os.Getenv("GODEBUG"), ",")
    	for _, f := range debug {
    		if strings.HasPrefix(f, "fuzzseed=") {
    			seed, err := strconv.Atoi(strings.TrimPrefix(f, "fuzzseed="))
    			if err != nil {
    				panic("malformed fuzzseed")
    			}
    			return &seed
    		}
    	}
    	return nil
    }
    
    // newPcgRand generates a new, seeded Rand, ready for use.
    func newPcgRand() *pcgRand {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/internal/fuzz/worker_test.go

    	if race.Enabled {
    		b.Skip("TODO(48504): fix and re-enable")
    	}
    	origEnv := os.Getenv("GODEBUG")
    	defer func() { os.Setenv("GODEBUG", origEnv) }()
    	os.Setenv("GODEBUG", fmt.Sprintf("%s,fuzzseed=123", origEnv))
    
    	ws := &workerServer{
    		fuzzFn:     func(_ CorpusEntry) (time.Duration, error) { return time.Second, nil },
    		workerComm: workerComm{memMu: make(chan *sharedMem, 1)},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.8K bytes
    - Viewed (0)
Back to top