Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for scorpius (0.21 sec)

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

    # by 'go test', so we can't distinguish that crasher from some other panic.
    ! go test -run=FuzzMutate -fuzz=FuzzMutate
    exists testdata/fuzz/FuzzMutate
    
    # Testdata should now contain a corpus entry which will fail FuzzMutate.
    # Run the test without fuzzing, setting -parallel to different values to make
    # sure it fails, and doesn't hang.
    ! go test -run=FuzzMutate -parallel=1
    ! go test -run=FuzzMutate -parallel=2
    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/cmd/go/testdata/script/test_fuzz_cleanup.txt

    ! go test -run=FuzzTargetGoexit
    stdout cleanup
    
    # Cleanup should run after panic.
    ! go test -run=FuzzTargetPanic
    stdout cleanup
    
    # Cleanup should run in fuzz function on seed corpus.
    go test -v -run=FuzzFunction
    stdout '(?s)inner.*outer'
    
    # TODO(jayconrod): test cleanup while fuzzing. For now, the worker process's
    # stdout and stderr is connected to the coordinator's, but it should eventually
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    				os.Exit(1)
    			}
    		}
    		if !containsVal {
    			fmt.Fprintln(os.Stderr, "corpus file contained no values")
    			os.Exit(1)
    		}
    	}
    }
    
    var valRe = regexp.MustCompile(`^\[\]byte\(([^)]+)\)$`)
    
    -- check_cache/check_cache.go --
    //go:build ignore
    // +build ignore
    
    // check_cache.go checks that each file in the cached corpus has a []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_cache.txt

    go clean -fuzzcache
    ! exists $GOCACHE/fuzz
    go build -x ./empty
    ! stderr '(compile|gccgo)( |\.exe).*empty.go'
    
    # Fuzzing indicates that one new interesting value was found with an empty
    # corpus, and the total size of the cache is now 1.
    go clean -fuzzcache
    go test -fuzz=FuzzEmpty -fuzztime=10000x .
    stdout 'new interesting: 1'
    stdout 'total: 1'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. doc/next/5-toolchain.md

    are not marked with `//go:linkname` on their definitions.
    Similarly, the linker disallows references to such symbols from assembly
    code.
    For backward compatibility, existing usages of `//go:linkname` found in
    a large open-source code corpus remain supported.
    Any new references to standard library internal symbols will be disallowed.
    
    A linker command line flag `-checklinkname=0` can be used to disable
    this check, for debugging and experimenting purposes.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/internal/fuzz/encoding.go

    )
    
    // encVersion1 will be the first line of a file with version 1 encoding.
    var encVersion1 = "go test fuzz v1"
    
    // marshalCorpusFile encodes an arbitrary number of arguments into the file format for the
    // corpus.
    func marshalCorpusFile(vals ...any) []byte {
    	if len(vals) == 0 {
    		panic("must have at least one value to marshal")
    	}
    	b := bytes.NewBuffer([]byte(encVersion1 + "\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  7. src/internal/fuzz/encoding_test.go

    				return
    			}
    			if err != nil {
    				t.Fatalf("unmarshal unexpected error: %v", err)
    			}
    			newB := marshalCorpusFile(vals...)
    			if newB[len(newB)-1] != '\n' {
    				t.Error("didn't write final newline to corpus file")
    			}
    
    			want := test.want
    			if want == "" {
    				want = test.in
    			}
    			want += "\n"
    			got := string(newB)
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/internal/fuzz/mutators_byteslice.go

    	// (AFL uses 32768, paired with a similar impl to chooseLen
    	// which biases towards smaller lengths that grow over time),
    	// or set the max based on characteristics of the corpus
    	// (libFuzzer sets a min/max based on the min/max size of
    	// entries in the corpus and then picks uniformly from
    	// that range).
    	n := m.chooseLen(4096)
    	if len(b)+n >= cap(b) {
    		return nil
    	}
    	b = b[:len(b)+n]
    	copy(b[dst+n:], b[dst:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  9. src/net/http/routing_index_test.go

    	return func(collect func(string)) {
    		for i := 0; i <= max; i++ {
    			genRepeat(i, g)(collect)
    		}
    	}
    }
    
    func BenchmarkMultiConflicts(b *testing.B) {
    	// How fast is indexing if the corpus is all multis?
    	const nMultis = 1000
    	var pats []*pattern
    	for i := 0; i < nMultis; i++ {
    		pats = append(pats, mustParsePattern(b, fmt.Sprintf("/a/b/{x}/d%d/", i)))
    	}
    	b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_mutator.txt

    	// TODO(katiehockman): simplify this once we can dedupe crashes (e.g.
    	// replace map with calls to panic, and simply count the number of crashes
    	// that were added to testdata)
    	crashes := make(map[string]bool)
    	// No seed corpus initiated
    	f.Fuzz(func(t *testing.T, b []byte) {
    		crashes[string(b)] = true
    		if len(crashes) >= 10 {
    			panic("mutator found enough unique mutations")
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top