Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 414 for wantRm (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/metrics/testutil_test.go

    					gotLabelCount := len(metric.GetLabel())
    					wantLabelCount := len(expectedLabels)
    					if wantLabelCount != gotLabelCount {
    						t.Errorf("Got metric with %d labels, but wanted %d labels. Wanted %#+v for %s",
    							gotLabelCount, wantLabelCount, expectedLabels, metric.String())
    						continue
    					}
    				}
    			}
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 24 04:26:43 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  2. pilot/pkg/request/command_test.go

    			},
    		},
    		{
    			name:   "handles empty string body in args",
    			method: "GET",
    			path:   "/want/path",
    			body:   "",
    			pilotStates: []pilotStubState{
    				{StatusCode: 200, Response: "fine", wantMethod: "GET", wantPath: "/want/path", wantBody: nil},
    			},
    		},
    		{
    			name:   "doesn't error on 404",
    			method: "GET",
    			path:   "/want/path",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 11 19:11:01 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. test/typeparam/min.go

    	return y
    }
    
    func main() {
    	const want = 2
    	if got := min[int](2, 3); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    
    	if got := min(2, 3); got != want {
    		panic(fmt.Sprintf("want %d, got %d", want, got))
    	}
    
    	if got := min[float64](3.5, 2.0); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    
    	if got := min(3.5, 2.0); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 979 bytes
    - Viewed (0)
  4. src/testing/iotest/reader_test.go

    	}
    
    	b = make([]byte, 5)
    	n, err := obr.Read(b)
    	if g, w := err, io.EOF; g != w {
    		t.Errorf("Error mismatch\n\tGot:  %v\n\tWant: %v", g, w)
    	}
    	if g, w := n, 0; g != w {
    		t.Errorf("Unexpectedly read %d bytes, wanted %d", g, w)
    	}
    }
    
    func TestHalfReader_nonEmptyReader(t *testing.T) {
    	msg := "Hello, World!"
    	buf := new(bytes.Buffer)
    	buf.WriteString(msg)
    	// empty read buffer
    	hr := HalfReader(buf)
    	var b []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 07:03:10 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go

    				}
    				return
    			}
    
    			sum := modfetch.Sum(ctx, test.m)
    			if sum != test.wantSum {
    				if *updateTestData {
    					t.Logf("%s: updating content sum to %s", test.m, sum)
    					test.wantSum = sum
    					needUpdate = true
    				} else {
    					t.Errorf("%s: got content sum %s; want sum %s", test.m, sum, test.wantSum)
    					return
    				}
    			}
    
    			h := sha256.New()
    			f, err := os.Open(zipPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 19:33:59 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. pilot/pkg/credentials/kube/secrets_test.go

    				t.Errorf("got key %q, wanted %q", string(actualKey), tt.key)
    			}
    			if tt.cert != string(actualCert) {
    				t.Errorf("got cert %q, wanted %q", string(actualCert), tt.cert)
    			}
    			if tt.staple != string(actualStaple) {
    				t.Errorf("got staple %q, wanted %q", string(actualStaple), tt.staple)
    			}
    			if tt.crl != string(actualCrl) {
    				t.Errorf("got crl %q, wanted %q", string(actualCrl), tt.crl)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/slice_test.go

    		for i := 0; i < N; i++ {
    			x.s = x.s[0:8] // should only write len
    		}
    		done <- struct{}{}
    	}()
    	<-done
    	<-done
    
    	if cap(x.s) != cap(a)-N {
    		t.Errorf("wanted cap=%d, got %d\n", cap(a)-N, cap(x.s))
    	}
    	if &x.s[0] != &a[N] {
    		t.Errorf("wanted ptr=%p, got %p\n", &a[N], &x.s[0])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 850 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/debug_lines_test.go

    				newGotStmts = append(newGotStmts, x)
    			}
    		}
    		if !reflect.DeepEqual(wantStmts, newGotStmts) {
    			t.Errorf("wanted stmts %v but got %v (with repeats still in: %v)", wantStmts, newGotStmts, gotStmts)
    		}
    
    	} else {
    		if !reflect.DeepEqual(wantStmts, gotStmts) {
    			t.Errorf("wanted stmts %v but got %v", wantStmts, gotStmts)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. internal/config/storageclass/storage-class_test.go

    		if err == nil && tt.expectedError != nil {
    			t.Errorf("Test %d, Expected %s, got %s", i+1, tt.expectedError, err)
    			return
    		}
    		if tt.expectedError == nil && !reflect.DeepEqual(gotSc, tt.wantSc) {
    			t.Errorf("Test %d, Expected %v, got %v", i+1, tt.wantSc, gotSc)
    			return
    		}
    		if tt.expectedError != nil && err.Error() != tt.expectedError.Error() {
    			t.Errorf("Test %d, Expected `%v`, got `%v`", i+1, tt.expectedError, err)
    		}
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/net/http/fcgi/fcgi_test.go

    		name   string
    		body   string
    		wantCT string
    	}{
    		{
    			name:   "no body",
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "html",
    			body:   "<html><head><title>test page</title></head><body>This is a body</body></html>",
    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top