Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for wantReg (0.14 sec)

  1. src/net/http/clientserver_test.go

    	}
    	res.Body.Close()
    
    	wantFoo := "bar"
    	wantLen := int64(-1)
    	if method == "OPTIONS" {
    		wantFoo = ""
    		wantLen = 0
    	}
    	if res.StatusCode != 200 {
    		t.Errorf("status code = %v; want %d", res.Status, 200)
    	}
    	if res.ContentLength != wantLen {
    		t.Errorf("content length = %v; want %d", res.ContentLength, wantLen)
    	}
    	if got := res.Header.Get("foo"); got != wantFoo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  2. src/archive/tar/strconv_test.go

    			}
    		}
    		if v.ok && (key != v.wantKey || val != v.wantVal) {
    			t.Errorf("parsePAXRecord(%q): got (%q: %q), want (%q: %q)",
    				v.in, key, val, v.wantKey, v.wantVal)
    		}
    		if res != v.wantRes {
    			t.Errorf("parsePAXRecord(%q): got residual %q, want residual %q",
    				v.in, res, v.wantRes)
    		}
    	}
    }
    
    func TestFormatPAXRecord(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    func TestSplitEqual(t *testing.T) {
    	tests := []struct {
    		arg       string
    		wantKey   string
    		wantValue string
    	}{
    		{arg: "key=value", wantKey: "key", wantValue: "value"},
    		{arg: "key==value", wantKey: "key", wantValue: "=value"},
    		{arg: "key=", wantKey: "key", wantValue: ""},
    		{arg: "key", wantKey: "key", wantValue: ""},
    		{arg: "", wantKey: "", wantValue: ""},
    	}
    	for _, tt := range tests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolumeclaim/strategy_test.go

    		"any enabled with volume ds": {
    			dataSource: volumeDataSource,
    			anyEnabled: true,
    			want:       volumeDataSource,
    			wantRef:    volumeDataSourceRef,
    		},
    		"any enabled with snapshot ds": {
    			dataSource: snapshotDataSource,
    			anyEnabled: true,
    			want:       snapshotDataSource,
    			wantRef:    snapshotDataSourceRef,
    		},
    		"any enabled with generic ds": {
    			dataSource: genericDataSource,
    			anyEnabled: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. pkg/api/persistentvolumeclaim/util_test.go

    			want:    snapshotDataSource,
    			wantRef: snapshotDataSourceRef,
    		},
    		"generic ds": {
    			spec:    core.PersistentVolumeClaimSpec{DataSource: genericDataSource},
    			want:    genericDataSource,
    			wantRef: genericDataSourceRef,
    		},
    		"core ds": {
    			spec:    core.PersistentVolumeClaimSpec{DataSource: coreDataSource},
    			want:    coreDataSource,
    			wantRef: coreDataSourceRef,
    		},
    		"volume ds ref": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		if contained != types.True {
    			t.Errorf("got %v, wanted list contains elem[%v] %v == true", contained, i, e)
    		}
    	}
    	if lv.Contains(types.String("fourth")) != types.False {
    		t.Errorf("got %v, wanted false 'fourth'", lv.Contains(types.String("fourth")))
    	}
    	if !types.IsError(lv.Contains(types.Int(-1))) {
    		t.Errorf("got %v, wanted error for invalid type", lv.Contains(types.Int(-1)))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  7. src/iter/pull_test.go

    				}
    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %v, want %d, %v", v, ok, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    func TestPull2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. src/runtime/defer_test.go

    	defer func() {
    		if globint1 != 1 {
    			t.Fatalf("globint1:  wanted: 1, got %v", globint1)
    		}
    		if save1 != 5 {
    			t.Fatalf("save1:  wanted: 5, got %v", save1)
    		}
    		if globint2 != 1 {
    			t.Fatalf("globint2:  wanted: 1, got %v", globint2)
    		}
    		if save2 != 2 {
    			t.Fatalf("save2:  wanted: 2, got %v", save2)
    		}
    		if save3 != 4 {
    			t.Fatalf("save3:  wanted: 4, got %v", save3)
    		}
    		if globint3 != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/float_test.go

    	}
    	if got := cvt7(3.5); got != 3 {
    		t.Errorf("cvt7 got %d, wanted 3", got)
    	}
    	if got := cvt8(3.5); got != 3 {
    		t.Errorf("cvt8 got %d, wanted 3", got)
    	}
    	if got := cvt9(3.5); got != 3 {
    		t.Errorf("cvt9 got %d, wanted 3", got)
    	}
    	if got := cvt10(3.5); got != 3 {
    		t.Errorf("cvt10 got %d, wanted 3", got)
    	}
    	if got := cvt11(3.5); got != 3 {
    		t.Errorf("cvt11 got %d, wanted 3", got)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/arithBoundary_test.go

    			t.Errorf("add_uint64 %d+%d = %d, wanted %d\n", v.a, v.b, got, v.add)
    		}
    		if got := sub_uint64_ssa(v.a, v.b); got != v.sub {
    			t.Errorf("sub_uint64 %d-%d = %d, wanted %d\n", v.a, v.b, got, v.sub)
    		}
    		if v.b != 0 {
    			if got := div_uint64_ssa(v.a, v.b); got != v.div {
    				t.Errorf("div_uint64 %d/%d = %d, wanted %d\n", v.a, v.b, got, v.div)
    			}
    
    		}
    		if v.b != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 31.3K bytes
    - Viewed (0)
Back to top