Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for wantbool (0.12 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    		randSource := rand.New(rand.NewSource(seed))
    		f.RandSource(randSource)
    		t.Logf("iteration %d with seed %d", i, seed)
    
    		fuzzFuncs(f, func(ref *spec.Ref, c fuzz.Continue, visible bool) {
    			var url string
    			if c.RandBool() {
    				url = fmt.Sprintf("http://%d", c.Intn(100000))
    			} else {
    				url = "#/definitions/test"
    			}
    			r, err := spec.NewRef(url)
    			if err != nil {
    				t.Fatalf("failed to fuzz ref: %v", err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  2. pkg/api/testing/fuzzer.go

    	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: Thu Nov 10 19:08:24 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  3. internal/s3select/sql/funceval.go

    	return fmt.Errorf("Cannot cast from %v to %v", fromType, toType)
    }
    
    func errCastFailure(msg string) error {
    	return fmt.Errorf("Error casting: %s", msg)
    }
    
    // Allowed cast types
    const (
    	castBool      = "BOOL"
    	castInt       = "INT"
    	castInteger   = "INTEGER"
    	castString    = "STRING"
    	castFloat     = "FLOAT"
    	castDecimal   = "DECIMAL"
    	castNumeric   = "NUMERIC"
    	castTimestamp = "TIMESTAMP"
    )
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  4. src/go/build/deps_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("go/build imports %q", imports)
    	want := []string{"bytes", "os", "path/filepath", "strings"}
    wantLoop:
    	for _, w := range want {
    		for _, imp := range imports {
    			if imp == w {
    				continue wantLoop
    			}
    		}
    		t.Errorf("expected to find %q in import list", w)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			t.Errorf("%#v: expected %v, got %v (%#v)", item.in, e, a, q.i)
    		}
    	}
    }
    
    var fuzzer = fuzz.New().Funcs(
    	func(q *Quantity, c fuzz.Continue) {
    		q.i = Zero
    		if c.RandBool() {
    			q.Format = BinarySI
    			if c.RandBool() {
    				dec := &inf.Dec{}
    				q.d = infDecAmount{Dec: dec}
    				dec.SetScale(0)
    				dec.SetUnscaled(c.Int63())
    				return
    			}
    			// Be sure to test cases like 1Mi
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  6. src/net/http/client_test.go

    		t.Fatal(err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != 200 {
    		t.Fatal(resp.Status)
    	}
    	if got, err := io.ReadAll(resp.Body); err != nil || string(got) != wantBody {
    		t.Errorf("body = %q; want %q", got, wantBody)
    	}
    }
    
    // Issue 17494: cookies should be altered when Client follows redirects.
    func TestClientAltersCookiesOnRedirect(t *testing.T) { run(t, testClientAltersCookiesOnRedirect) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  7. src/net/http/serve_test.go

    			t.Errorf("%q. unexpected error: %v", badTE, err)
    			continue
    		}
    
    		wantBody := fmt.Sprintf("" +
    			"HTTP/1.1 501 Not Implemented\r\nContent-Type: text/plain; charset=utf-8\r\n" +
    			"Connection: close\r\n\r\nUnsupported transfer encoding")
    
    		if string(gotBody) != wantBody {
    			t.Errorf("%q. body\ngot\n%q\nwant\n%q", badTE, gotBody, wantBody)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    	req.ContentLength = bodySize
    	res, err := c.Do(req)
    	if err := wantBody(res, err, "foo"); err != nil {
    		t.Errorf("POST response: %v", err)
    	}
    
    	res, err = c.Get(ts.URL)
    	if err := wantBody(res, err, "bar"); err != nil {
    		t.Errorf("GET response: %v", err)
    		return
    	}
    	getOkay = true  // suppress test noise
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top