- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for wantbool (0.54 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/fuzzer/fuzzer.go
c.Fuzz(vobj.Field(i).Addr().Interface()) } } } if c.RandBool() { validJSON := apiextensions.JSON(`{"some": {"json": "test"}, "string": 42}`) obj.Default = &validJSON } if c.RandBool() { obj.Enum = []apiextensions.JSON{c.Float64(), c.RandString(), c.RandBool()} } if c.RandBool() { validJSON := apiextensions.JSON(`"foobarbaz"`) obj.Example = &validJSON }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 6.2K bytes - Viewed (0) -
src/crypto/x509/root_unix_test.go
} wantPool := NewCertPool() for _, certPEM := range rootPEMs { wantPool.AppendCertsFromPEM([]byte(certPEM)) } strCertPool := func(p *CertPool) string { return string(bytes.Join(p.Subjects(), []byte("\n"))) } if !certPoolEqual(gotPool, wantPool) { g, w := strCertPool(gotPool), strCertPool(wantPool) t.Fatalf("Mismatched certPools\nGot:\n%s\n\nWant:\n%s", g, w)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 01 00:36:38 UTC 2023 - 6.1K bytes - Viewed (0) -
pilot/pkg/request/command_test.go
wantMethod string wantPath string wantBody []byte StatusCode int Response string } func (p *pilotStubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { p.Lock() if r.Method == p.States[0].wantMethod { if r.URL.Path == p.States[0].wantPath { defer r.Body.Close() body, _ := io.ReadAll(r.Body) if err := util.Compare(body, p.States[0].wantBody); err == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 11 19:11:01 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/apis/batch/fuzzer/fuzzer.go
j.Suspend = pointer.Bool(c.RandBool()) podReplacementPolicy := batch.TerminatingOrFailed if c.RandBool() { podReplacementPolicy = batch.Failed } j.PodReplacementPolicy = &podReplacementPolicy if c.RandBool() { c.Fuzz(j.ManagedBy) } }, func(sj *batch.CronJobSpec, c fuzz.Continue) { c.FuzzNoCustom(sj) suspend := c.RandBool() sj.Suspend = &suspend
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 17:25:15 UTC 2024 - 3K bytes - Viewed (0) -
src/net/http/httptest/httptest_test.go
slurp, err := io.ReadAll(got.Body) if err != nil { t.Errorf("ReadAll: %v", err) } if string(slurp) != tt.wantBody { t.Errorf("Body = %q; want %q", slurp, tt.wantBody) } tt.want = tt.want.WithContext(context.Background()) got.Body = nil // before DeepEqual if !reflect.DeepEqual(got.URL, tt.want.URL) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 18:09:14 UTC 2024 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go
func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} { return []interface{}{ func(j *runtime.Object, c fuzz.Continue) { // TODO: uncomment when round trip starts from a versioned object if true { //c.RandBool() { *j = &runtime.Unknown{ // We do not set TypeMeta here because it is not carried through a round trip Raw: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go
func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} { return []interface{}{ func(j *runtime.Object, c fuzz.Continue) { // TODO: uncomment when round trip starts from a versioned object if true { //c.RandBool() { *j = &runtime.Unknown{ // We do not set TypeMeta here because it is not carried through a round trip Raw: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go
c.FuzzNoCustom(e) switch c.RandBool() { case true: e.RequestObject = nil case false: e.RequestObject = &runtime.Unknown{ TypeMeta: runtime.TypeMeta{APIVersion: "", Kind: ""}, Raw: []byte(`{"apiVersion":"","kind":"Pod","someKey":"someValue"}`), ContentType: runtime.ContentTypeJSON, } } switch c.RandBool() { case true: e.ResponseObject = nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 04 16:10:17 UTC 2017 - 2.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/tracebackctxt.go
} ok := true i := 0 wantLoop: for _, w := range want { for ; i < len(frames); i++ { if w.function == frames[i].Function { if w.line != 0 && w.line != frames[i].Line { fmt.Printf("found function %s at wrong line %#x (expected %#x)\n", w.function, frames[i].Line, w.line) ok = false } i++ continue wantLoop } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 29 15:30:38 UTC 2021 - 2.8K bytes - Viewed (0) -
pkg/apis/apps/fuzzer/fuzzer.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 5.2K bytes - Viewed (0)