Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 414 for wantNG (0.13 sec)

  1. src/cmd/link/internal/loader/loader_test.go

    	if ldr.OuterSym(es1) != 0 {
    		t.Errorf("ldr.OuterSym(es1) got %d wanted %d", ldr.OuterSym(es1), 0)
    	}
    	if ldr.OuterSym(es2) != es1 {
    		t.Errorf("ldr.OuterSym(es2) got %d wanted %d", ldr.OuterSym(es2), es1)
    	}
    	if ldr.SubSym(es1) != es2 {
    		t.Errorf("ldr.SubSym(es1) got %d wanted %d", ldr.SubSym(es1), es2)
    	}
    	if ldr.SubSym(es2) != 0 {
    		t.Errorf("ldr.SubSym(es2) got %d wanted %d", ldr.SubSym(es2), 0)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/ctl_test.go

    }
    
    func testPhiControl(t *testing.T) {
    	tests := [...][3]bool{ // a, b, want
    		{false, false, true},
    		{true, false, false},
    		{false, true, false},
    		{true, true, false},
    	}
    	for _, test := range tests {
    		a, b := test[0], test[1]
    		got := nor_ssa(a, b)
    		want := test[2]
    		if want != got {
    			t.Errorf("nor(%t, %t)=%t got %t", a, b, want, got)
    		}
    	}
    }
    
    func emptyRange_ssa(b []byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top