Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 227 for fuzz (0.06 sec)

  1. tests/fuzz/Dockerfile.fuzz

        rm -rf  /var/log/*log \
        /var/lib/apt/lists/* \
        /var/log/apt/* \
        /var/lib/dpkg/*-old \
        /var/cache/debconf/*-old
    
    RUN go get -u github.com/dvyukov/go-fuzz/go-fuzz \
        github.com/dvyukov/go-fuzz/go-fuzz-dep \
        github.com/dvyukov/go-fuzz/go-fuzz-build
    
    COPY . /istio
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 21 12:29:52 UTC 2021
    - 957 bytes
    - Viewed (0)
  2. tests/fuzz/fuzz.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package fuzz
    
    import (
    	"istio.io/istio/pilot/pkg/config/kube/crd"
    )
    
    func FuzzParseInputs(data []byte) int {
    	_, _, err := crd.ParseInputs(string(data))
    	if err != nil {
    		return 0
    	}
    	return 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 07 03:26:36 UTC 2022
    - 783 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_cache.txt

    [!fuzz-instrumented] skip
    
    [short] skip
    env GOCACHE=$WORK/cache
    
    # Fuzz cache should not exist after a regular test run.
    go test .
    exists $GOCACHE
    ! exists $GOCACHE/fuzz
    
    # Fuzzing should write interesting values to the cache.
    go test -fuzz=FuzzY -fuzztime=100x .
    go run ./contains_files $GOCACHE/fuzz/example.com/y/FuzzY
    
    # 'go clean -cache' should not delete the fuzz cache.
    go clean -cache
    exists $GOCACHE/fuzz
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. 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)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/AbstractIterationOrderRetainingElementSourceTest.groovy

            when:
            source.add("buzz")
            iterator = source.iterator()
            next = iterator.next()
    
            then:
            next == "baz"
    
            when:
            iterator.remove()
    
            then:
            iterator.hasNext()
            source.iterator().collect() == ["fooz", "fizz", "fuzz", "buzz"]
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 10:08:46 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_mutator.txt

    [!fuzz] skip
    
    # Test basic fuzzing mutator behavior.
    #
    # fuzz_test.go has two fuzz targets (FuzzA, FuzzB) which both add a seed value.
    # Each fuzz function writes the input to a log file. The coordinator and worker
    # use separate log files. check_logs.go verifies that the coordinator only
    # tests seed values and the worker tests mutated values on the fuzz target.
    
    [short] skip
    env GOCACHE=$WORK/cache
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. tests/fuzz/README.md

    ## Native fuzzers
    
    While many jobs are still using the old [go-fuzz](https://github.com/dvyukov/go-fuzz) style fuzzers, using [Go 1.18 native fuzzing](https://go.dev/doc/fuzz/) is preferred.
    These should be written alongside standard test packages.
    Currently, these cannot be in `<pkg>_test` packages; instead move them to a file under `<pkg>`.
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 23 16:45:44 UTC 2022
    - 994 bytes
    - Viewed (0)
  8. pkg/fuzz/README.md

    func FuzzBuildHTTP(f *testing.F) {
      fuzz.Fuzz(f, func(fg fuzz.Helper) {
        // Setup a few structs for testing
        bundle := fuzz.Struct[trustdomain.Bundle](fg)
            // This one has a custom validator
        push := fuzz.Struct[*model.PushContext](fg, validatePush)
            // *model.Proxy, and other types, implement the fuzz.Validator interface and already validate some basics.
        node := fuzz.Struct[*model.Proxy](fg)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 05 21:25:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_fuzz_profile_flags.txt

    [!fuzz] skip
    
    ! go test -fuzz=FuzzTrivial -coverprofile=prof
    ! stdout .
    stderr '^cannot use -coverprofile flag with -fuzz flag$'
    
    ! go test -fuzz=FuzzTrivial -blockprofile=prof
    ! stdout .
    stderr '^cannot use -blockprofile flag with -fuzz flag$'
    
    ! go test -fuzz=FuzzTrivial -cpuprofile=prof
    ! stdout .
    stderr '^cannot use -cpuprofile flag with -fuzz flag$'
    
    ! go test -fuzz=FuzzTrivial -memprofile=prof
    ! stdout .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 18:01:20 UTC 2021
    - 855 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_modcache.txt

    # If the module does include a test corpus, 'go test' (without '-fuzz') should
    # load that corpus and run the fuzz tests against it, but 'go test -fuzz=.'
    # should continue to be rejected.
    
    go get -t example.com/fuzzfail@v0.2.0
    
    ! go test example.com/fuzzfail
    stdout '^\s*fuzzfail_test\.go:7: oops:'
    
    ! go test -fuzz=. example.com/fuzzfail
    ! stdout .
    stderr '^cannot use -fuzz flag on package outside the main module$'
    
    go mod verify
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 20:43:39 UTC 2021
    - 1.8K bytes
    - Viewed (0)
Back to top