- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 414 for wantNG (2.23 sec)
-
src/cmd/compile/internal/test/testdata/string_test.go
} func testSmallIndexType(t *testing.T) { tests := []struct { i int want string }{ {0, "Below"}, {1, "Exact"}, {2, "Above"}, } for i, test := range tests { if got := testSmallIndexType_ssa(test.i); got != test.want { t.Errorf("#%d got %s wanted %s", i, got, test.want) } } } //go:noinline func testInt64Index_ssa(s string, i int64) byte {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 4.5K bytes - Viewed (0) -
test/typeparam/issue50002.go
} func F[T, A any](x I[T], shouldMatch bool) { switch x.(type) { case A: if !shouldMatch { fmt.Printf("wanted mis-match, got match") } default: if shouldMatch { fmt.Printf("wanted match, got mismatch") } } _, ok := x.(A) if ok != shouldMatch { fmt.Printf("ok: got %v, wanted %v", ok, shouldMatch) } if !shouldMatch { defer func() { if shouldMatch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/arith_test.go
wantA, wantB, wantC, wantD := uint8(0xe1), uint16(0xe001), uint32(0xe0000001), uint64(0xe000000000000001) a, b, c, d := lrot1_ssa(0xf, 0xf, 0xf, 0xf) if a != wantA || b != wantB || c != wantC || d != wantD { t.Errorf("lrot1_ssa(0xf, 0xf, 0xf, 0xf)=%d %d %d %d, got %d %d %d %d", wantA, wantB, wantC, wantD, a, b, c, d) } x := lrot2_ssa(0xb0000001, 32) wantX := uint32(0xb0000001) if x != wantX {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:30:59 UTC 2023 - 43.5K bytes - Viewed (0) -
internal/grid/grid.go
func GetByteBufferCap(wantSz int) []byte { if wantSz < defaultBufferSize { b := GetByteBuffer()[:0] if cap(b) >= wantSz { return b } PutByteBuffer(b) } if wantSz <= maxBufferSize { b := *internal32KByteBuffer.Get().(*[]byte) if cap(b) >= wantSz { return b[:0] } internal32KByteBuffer.Put(&b) } return make([]byte, 0, wantSz) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Apr 02 15:56:18 UTC 2024 - 4.8K bytes - Viewed (0) -
pilot/pkg/status/distribution/state_test.go
if got != tt.want { t.Errorf("ReconcileStatuses() got = %v, want %v", got, tt.want) } if tt.want1 != nil { for i := range tt.want1.Conditions { if got1 != nil && i < len(got1.Conditions) { tt.want1.Conditions[i].LastTransitionTime = got1.Conditions[i].LastTransitionTime tt.want1.Conditions[i].LastProbeTime = got1.Conditions[i].LastProbeTime }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 22 22:47:47 UTC 2022 - 4.3K bytes - Viewed (0) -
test/typeparam/mincheck.dir/main.go
"fmt" ) func main() { const want = 2 if got := a.Min[int](2, 3); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Min(2, 3); got != want { panic(fmt.Sprintf("want %d, got %d", want, got)) } if got := a.Min[float64](3.5, 2.0); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Min(3.5, 2.0); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 04 19:07:27 UTC 2023 - 925 bytes - Viewed (0) -
src/runtime/testdata/testprog/coro.go
if !ok { break } if v != 5 { return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v) } } return nil } func callerExhaustLocked(i iter.Seq[int]) error { runtime.LockOSThread() next, _ := iter.Pull(i) for { v, ok := next() if !ok { break } if v != 5 { return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v) } } runtime.UnlockOSThread() return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 3.6K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/coro.go
break } if v != 5 { return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v) } } return nil } func callerExhaustCallback(i iter.Seq[int]) (err error) { callFromC(func() { next, _ := iter.Pull(i) for { v, ok := next() if !ok { break } if v != 5 { err = fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v) } } }) return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 3.4K bytes - Viewed (0) -
src/internal/trace/trace_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 18.5K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret_test.go
if c.wantErrStr != "" { if err == nil { tt.Fatalf("wanted error including %q but got none", c.wantErrStr) } else if !strings.Contains(err.Error(), c.wantErrStr) { tt.Fatalf("wanted error including %q but got %v", c.wantErrStr, err) } } else if c.wantErrStr == "" && err != nil { tt.Fatalf("wanted non-error but got %q", err) } else if c.want != "" { var secretName, key string switch c.secType {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 20.6K bytes - Viewed (0)