Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for fuzztime (0.13 sec)

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

    ! go test -fuzz=FuzzMinimizerRecoverable -run=FuzzMinimizerRecoverable -fuzztime=10000x -fuzzminimizetime=-1ms .
    ! stdout '^ok'
    ! stdout 'contains a non-zero byte'
    stdout 'invalid duration'
    stdout FAIL
    
    # Test that fuzzminimizetime cannot be negative times
    ! go test -fuzz=FuzzMinimizerRecoverable -run=FuzzMinimizerRecoverable -fuzztime=10000x -fuzzminimizetime=-1x .
    ! stdout '^ok'
    ! stdout 'contains a non-zero byte'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 22 16:15:36 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_cache.txt

    # 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'
    
    # Fuzzing again with a small fuzztime does not find any other interesting
    # values but still indicates that the cache size is 1.
    go test -fuzz=FuzzEmpty -fuzztime=2x .
    stdout 'new interesting: 0'
    stdout 'total: 1'
    
    ! go clean -fuzzcache example.com/y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt

    stdout 'this input caused a crash!'
    
    ! go test -run=FuzzWithNilPanic -fuzz=FuzzWithNilPanic -fuzztime=100x -fuzzminimizetime=1000x
    stdout 'testdata[/\\]fuzz[/\\]FuzzWithNilPanic[/\\]'
    stdout 'panic called with nil argument|test executed panic.nil. or runtime.Goexit'
    go run check_testdata.go FuzzWithNilPanic
    
    ! go test -run=FuzzWithGoexit -fuzz=FuzzWithGoexit -fuzztime=100x -fuzzminimizetime=1000x
    stdout 'testdata[/\\]fuzz[/\\]FuzzWithGoexit[/\\]'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_seed_corpus.txt

    # and doesn't write anything to testdata/fuzz
    ! go test -fuzz=FuzzWithAdd -run=FuzzWithAdd -fuzztime=1x
    ! stdout ^ok
    ! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithAdd[/\\]'
    stdout FAIL
    
    # Test that fuzzing a target with a success in f.Add and a fuzztime of only
    # 1 does not produce a crash.
    go test -fuzz=FuzzWithGoodAdd -run=FuzzWithGoodAdd -fuzztime=1x
    stdout ok
    ! stdout FAIL
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_fuzz_match.txt

    ! stdout '^ok.*\[no tests to run\]'
    stdout '^ok'
    
    # Matches only for fuzzing.
    go test -fuzz Fuzz -fuzztime 1x standalone_fuzz_test.go
    ! stdout '^ok.*\[no tests to run\]'
    stdout '^ok'
    
    # Matches none for fuzzing but will run the fuzz target as a test.
    go test -fuzz ThisWillNotMatch -fuzztime 1x standalone_fuzz_test.go
    ! stdout '^ok.*no tests to run'
    stdout '^ok'
    stdout 'no fuzz tests to fuzz'
    
    [short] stop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 953 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_fuzztime.txt

    # address space (see https://go.dev/issue/65434).
    env GOMAXPROCS=2
    
    # Fuzzing should exit 0 after fuzztime, even if timeout is short.
    go test -timeout=3s -fuzz=FuzzFast -fuzztime=5s
    
    # We should see the same behavior when invoking the test binary directly.
    go test -c
    exec ./fuzz.test$GOEXE -test.timeout=3s -test.fuzz=FuzzFast -test.fuzztime=5s -test.parallel=1 -test.fuzzcachedir=$WORK/cache
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_deadline.txt

    # there is no timeout while fuzzing, even if -fuzztime is set.
    go test -run=FuzzDeadline -wantdeadline=true # -timeout defaults to 10m
    go test -run=FuzzDeadline -timeout=0 -wantdeadline=false
    ! go test -run=FuzzDeadline -timeout=1s -wantdeadline=false
    go test -run=FuzzDeadline -timeout=1s -wantdeadline=true
    go test -fuzz=FuzzDeadline -timeout=0 -fuzztime=1s -wantdeadline=false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_fuzz_multiple.txt

    ! go test -fuzz=. ./zero ./one
    stderr '^cannot use -fuzz flag with multiple packages$'
    go test -fuzz=. -fuzztime=1x ./one
    
    # With fuzzing enabled, at most one target in the same package may match.
    ! go test -fuzz=. ./two
    stdout '^testing: will not fuzz, -fuzz matches more than one fuzz test: \[FuzzOne FuzzTwo\]$'
    go test -fuzz=FuzzTwo -fuzztime=1x ./two
    
    -- go.mod --
    module fuzz
    
    go 1.18
    -- zero/zero.go --
    package zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    go test -c -fuzz=.  # Build using shared build cache for speed.
    env GOCACHE=$WORK/gocache
    exec ./fuzz.test$GOEXE -test.fuzzcachedir=$GOCACHE/fuzz -test.fuzz=FuzzMinCache -test.fuzztime=1000x
    go run check_cache/check_cache.go $GOCACHE/fuzz/FuzzMinCache
    
    # Test that minimization occurs for a crash that appears while minimizing a
    # newly found interesting input. There must be only one worker for this test to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_setenv.txt

    [!fuzz] skip
    [short] skip
    env GOCACHE=$WORK/cache
    
    go test -fuzz=FuzzA -fuzztime=100x fuzz_setenv_test.go
    
    -- fuzz_setenv_test.go --
    package fuzz
    
    import (
      "flag"
      "os"
      "testing"
    )
    
    func FuzzA(f *testing.F) {
      if s := os.Getenv("TEST_FUZZ_SETENV_A"); isWorker() && s == "" {
        f.Fatal("environment variable not set")
      } else if !isWorker() && s != "" {
        f.Fatal("environment variable already set")
      }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 943 bytes
    - Viewed (0)
Back to top