- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isMinimizable (0.1 sec)
-
src/internal/fuzz/minimize.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fuzz import ( "reflect" ) func isMinimizable(t reflect.Type) bool { return t == reflect.TypeOf("") || t == reflect.TypeOf([]byte(nil)) } func minimizeBytes(v []byte, try func([]byte) bool, shouldStop func() bool) { tmp := make([]byte, len(v))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 07 21:15:51 UTC 2021 - 2.3K bytes - Viewed (0) -
src/internal/fuzz/fuzz.go
} if err := c.readCache(); err != nil { return nil, err } if opts.MinimizeLimit > 0 || opts.MinimizeTimeout > 0 { for _, t := range opts.Types { if isMinimizable(t) { c.minimizationAllowed = true break } } } covSize := len(coverage()) if covSize == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 34.1K bytes - Viewed (0) -
src/internal/fuzz/worker.go
if err != nil { return CorpusEntry{}, minimizeResponse{}, fmt.Errorf("workerClient.minimize unmarshaling provided value: %v", err) } for i, v := range entryOut.Values { if !isMinimizable(reflect.TypeOf(v)) { continue } wc.memMu <- mem args.Index = i c := call{Minimize: &args} callErr := wc.callLocked(ctx, c, &resp) mem, ok = <-wc.memMu if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 37.7K bytes - Viewed (0)