- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 227 for fuzz (0.09 sec)
-
pkg/bootstrap/fuzz_test.go
// limitations under the License. package bootstrap import ( "bytes" "io" "os" "testing" fuzz "github.com/AdaLogics/go-fuzz-headers" ) func FuzzWriteTo(f *testing.F) { f.Fuzz(func(t *testing.T, data []byte) { ff := fuzz.NewConsumer(data) // create config cfg := Config{} err := ff.GenerateStruct(&cfg) if err != nil { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/round_trip_test.go
package webhook import ( "math/rand" "reflect" "testing" "time" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" authenticationv1 "k8s.io/api/authentication/v1" authenticationv1beta1 "k8s.io/api/authentication/v1beta1" ) func TestRoundTrip(t *testing.T) { f := fuzz.New() seed := time.Now().UnixNano() t.Logf("seed = %v", seed) f.RandSource(rand.New(rand.NewSource(seed)))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta_test.go
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1" "github.com/google/go-cmp/cmp" fuzz "github.com/google/gofuzz" ) func TestAsPartialObjectMetadata(t *testing.T) { f := fuzz.New().NilChance(.5).NumElements(0, 1).RandSource(rand.NewSource(1)) for i := 0; i < 100; i++ { m := &metav1.ObjectMeta{} f.Fuzz(m) partial := AsPartialObjectMetadata(m) if !reflect.DeepEqual(&partial.ObjectMeta, m) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 1.5K bytes - Viewed (0) -
tests/fuzz/kube_ingress_fuzzer.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 ( fuzz "github.com/AdaLogics/go-fuzz-headers" corev1 "k8s.io/api/core/v1" knetworking "k8s.io/api/networking/v1" "k8s.io/apimachinery/pkg/runtime" meshconfig "istio.io/api/mesh/v1alpha1"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 15 16:18:19 UTC 2023 - 1.9K bytes - Viewed (0) -
security/pkg/pki/ra/fuzz_test.go
// limitations under the License. package ra import ( "testing" fuzz "github.com/AdaLogics/go-fuzz-headers" ) func FuzzValidateCSR(f *testing.F) { f.Fuzz(func(t *testing.T, csrPEM, subjectIDsData []byte) { ff := fuzz.NewConsumer(subjectIDsData) // create subjectIDs subjectIDs := make([]string, 0) noOfEntries, err := ff.GetUint64() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.1K bytes - Viewed (0) -
src/testing/internal/testdeps/deps.go
defer cancel() err := fuzz.RunFuzzWorker(ctx, fn) if err == ctx.Err() { return nil } return err } func (TestDeps) ReadCorpus(dir string, types []reflect.Type) ([]fuzz.CorpusEntry, error) { return fuzz.ReadCorpus(dir, types) } func (TestDeps) CheckCorpus(vals []any, types []reflect.Type) error { return fuzz.CheckCorpus(vals, types) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/fuzzer_test.go
require.NoError(t, err) err = v2scheme.RegisterConversions(scheme) require.NoError(t, err) fuzzer := fuzz.NewWithSeed(2374375) // v2 -> v2beta1 -> v2 for i := 0; i < 100; i++ { expected := &v2.APIGroupDiscoveryList{} fuzzer.Fuzz(expected) expected.TypeMeta = metav1.TypeMeta{ Kind: "APIGroupDiscoveryList", APIVersion: "apidiscovery.k8s.io/v2", }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 00:29:39 UTC 2024 - 2.5K bytes - Viewed (0) -
tests/fuzz/pki_fuzzer.go
// limitations under the License. package fuzz import ( "crypto/x509/pkix" "os" fuzz "github.com/AdaLogics/go-fuzz-headers" "istio.io/istio/security/pkg/pki/util" ) // FuzzVerifyCertificate implements a fuzzer // that tests util.VerifyCertificate func FuzzVerifyCertificate(data []byte) int { f := fuzz.NewConsumer(data) privPem, err := f.GetBytes() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 05 14:00:25 UTC 2023 - 5.2K bytes - Viewed (0) -
tests/fuzz/pilot_networking_fuzzer.go
// See the License for the specific language governing permissions and // limitations under the License. package fuzz import ( fuzz "github.com/AdaLogics/go-fuzz-headers" "istio.io/istio/pilot/pkg/model" "istio.io/istio/pilot/pkg/networking/grpcgen" ) func FuzzGrpcGenGenerate(data []byte) int { f := fuzz.NewConsumer(data) proxy := &model.Proxy{} err := f.GenerateStruct(proxy) if err != nil { return 0
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 07 03:26:36 UTC 2022 - 1.2K bytes - Viewed (0) -
tests/fuzz/v1alpha3_fuzzer.go
// See the License for the specific language governing permissions and // limitations under the License. package fuzz import ( "errors" "testing" fuzz "github.com/AdaLogics/go-fuzz-headers" "istio.io/istio/pilot/pkg/model" "istio.io/istio/pilot/pkg/networking/core" "istio.io/istio/tests/fuzz/utils" ) func init() { testing.Init() } func ValidateTestOptions(to core.TestOptions) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 1.6K bytes - Viewed (0)