- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 414 for wantRm (0.18 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) -
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) -
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) -
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)