Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FuzzRepeat (0.11 sec)

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

    module fuzz
    
    go 1.17
    -- fuzz_test.go --
    package fuzz
    
    import (
    	"bytes"
    	"flag"
    	"os"
    	"testing"
    )
    
    var wantFlag = flag.String("want", "", "file containing previous crashing input")
    
    func FuzzRepeat(f *testing.F) {
    	i := 0
    	f.Fuzz(func(t *testing.T, b []byte) {
    		i++
    		if i == 100 {
    			f, err := os.OpenFile("want", os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0666)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top