- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for genFS (0.02 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/gen_test.go
Resource: "nons", }, User: &user.DefaultInfo{ Name: "nobody", Groups: []string{user.AllAuthenticated, "nogroup"}, }, }}, }, }, } // genFS creates a valid FlowSchema with the given name and randomly // generated spec, along with characteristics relevant to testing. // When all the FlowSchemas in a collection are generated with
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 24.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go
badPLNames := sets.NewString("ql1", "ql2", "ql3", "ql4", "ql5") for i := 0; i < 300; i++ { rng := rand.New(rand.NewSource(int64(rngOuter.Uint64()))) t.Run(fmt.Sprintf("trial%d:", i), func(t *testing.T) { ftr := genFS(t, rng, fmt.Sprintf("fs%d", i), rng.Float32() < 0.2, goodPLNames, badPLNames) checkFTR(t, ftr) }) } } func checkFTR(t *testing.T, ftr *fsTestingRecord) { for expectMatch, digests1 := range ftr.digests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go
t.Logf("For trial %s, adding wf=%v FlowSchema %s", trial, ftr.wellFormed, fcfmt.Fmt(ftr.fs)) } } if n == 0 || rng.Float32() < 0.5 { add(mandFTRCatchAll) } for i := 1; i <= n; i++ { ftr := genFS(t, rng, fmt.Sprintf("%s-fs%d", trial, i), false, goodPLNames, badPLNames) add(ftr) } if n == 0 || rng.Float32() < 0.5 { add(mandFTRExempt) } return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 18.4K bytes - Viewed (0)