Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testIde (0.23 sec)

  1. src/net/http/client_test.go

    		`DELETE / "c308"`,
    		`DELETE /?code=404 "c404"`,
    	}
    	want := strings.Join(wantSegments, "\n")
    	run(t, func(t *testing.T, mode testMode) {
    		testRedirectsByMethod(t, mode, "DELETE", deleteRedirectTests, want)
    	})
    }
    
    func testRedirectsByMethod(t *testing.T, mode testMode, method string, table []redirectTest, want string) {
    	var log struct {
    		sync.Mutex
    		bytes.Buffer
    	}
    	var ts *httptest.Server
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. src/net/http/fs_test.go

    // in "Range": "bytes=-N", and should reject "bytes=--2".
    func TestServeFileRejectsInvalidSuffixLengths(t *testing.T) {
    	run(t, testServeFileRejectsInvalidSuffixLengths, []testMode{http1Mode, https1Mode, http2Mode})
    }
    func testServeFileRejectsInvalidSuffixLengths(t *testing.T, mode testMode) {
    	cst := newClientServerTest(t, mode, FileServer(Dir("testdata"))).ts
    
    	tests := []struct {
    		r        string
    		wantCode int
    		wantBody string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		// Validate
    		if !scenario.shouldFail && err != nil {
    			t.Errorf("returned error: %v", err)
    		}
    		if scenario.shouldFail && err == nil {
    			t.Error("returned success but expected error")
    		}
    		checkReasons(t, reasons, scenario.reasons)
    		testEnv.validatePodCache(t, testNode.Name, scenario.pod, podVolumes, scenario.expectedBindings, nil)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	return Quantity{d: bigDec(i, exponent), Format: format}
    }
    
    func intQuantity(i int64, exponent Scale, format Format) Quantity {
    	return Quantity{i: int64Amount{value: i, scale: exponent}, Format: format}
    }
    
    func TestDec(t *testing.T) {
    	table := []struct {
    		got    infDecAmount
    		expect string
    	}{
    		{dec(1, 0), "1"},
    		{dec(1, 1), "10"},
    		{dec(5, 2), "500"},
    		{dec(8, 3), "8000"},
    		{dec(2, 0), "2"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  5. src/cmd/go/go_test.go

    		// If the OS supports symlinks, use them instead of copying bytes.
    		testExe, err := os.Executable()
    		if err != nil {
    			log.Fatal(err)
    		}
    		if err := os.Symlink(testExe, testGo); err != nil {
    			// Otherwise, copy the bytes.
    			src, err := os.Open(testExe)
    			if err != nil {
    				log.Fatal(err)
    			}
    			defer src.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top