- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for wantbool (0.14 sec)
-
src/database/sql/convert_test.go
// True bools {s: true, d: &scanbool, wantbool: true}, {s: "True", d: &scanbool, wantbool: true}, {s: "TRUE", d: &scanbool, wantbool: true}, {s: "1", d: &scanbool, wantbool: true}, {s: 1, d: &scanbool, wantbool: true}, {s: int64(1), d: &scanbool, wantbool: true}, {s: uint16(1), d: &scanbool, wantbool: true}, // False bools {s: false, d: &scanbool, wantbool: false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 20:23:22 UTC 2024 - 17K bytes - Viewed (0) -
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/endpoints/handlers/responsewriters/writers_test.go
wantCode int wantHeaders http.Header wantBody []byte }{ { name: "serialize object", out: smallPayload, req: &http.Request{Header: http.Header{}, URL: &url.URL{Path: "/path"}}, wantCode: http.StatusOK, wantHeaders: http.Header{"Content-Type": []string{""}}, wantBody: smallPayload, }, { name: "return content type",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 15.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go
func(s *JSON, c fuzz.Continue) { if c.RandBool() { s.Object = float64(42.0) } }, func(s **StructuralOrBool, c fuzz.Continue) { if c.RandBool() { *s = &StructuralOrBool{} } }, func(s **Structural, c fuzz.Continue) { if c.RandBool() { *s = &Structural{} } }, func(s *Structural, c fuzz.Continue) { if c.RandBool() { *s = Structural{} } },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 18:20:00 UTC 2024 - 11.6K bytes - Viewed (0) -
src/net/http/clientserver_test.go
func testHandlerWritesTooMuch(t *testing.T, mode testMode) { wantBody := []byte("123") cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { rc := NewResponseController(w) w.Header().Set("Content-Length", fmt.Sprintf("%v", len(wantBody))) rc.Flush() w.Write(wantBody) rc.Flush() n, err := io.WriteString(w, "x") // too many if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0) -
pkg/apis/core/fuzzer/fuzzer.go
func(ev *core.EnvFromSource, c fuzz.Continue) { if c.RandBool() { ev.Prefix = "p_" } if c.RandBool() { c.Fuzz(&ev.ConfigMapRef) } else { c.Fuzz(&ev.SecretRef) } }, func(cm *core.ConfigMapEnvSource, c fuzz.Continue) { c.FuzzNoCustom(cm) // fuzz self without calling this function again if c.RandBool() { opt := c.RandBool() cm.Optional = &opt } },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 04:32:01 UTC 2024 - 18.5K bytes - Viewed (0)