Home | History | Annotate | Download | only in reflect

Lines Matching full:errorf

50 		t.Errorf("have %#q want %#q", s, want)
224 t.Errorf("#%d: have %#q, want %#q", i, s, want)
274 t.Errorf("#%d: have %#q, want %#q", i, s, tt.s)
318 t.Errorf("#%d: have %#q, want %#q", i, s, tt.s)
342 t.Errorf("#%d: have %#q, want %#q", i, s, test.s)
353 t.Errorf("[10]int: have %#q want %#q", s, want)
361 t.Errorf("[]int: have %#q want %#q", s, want1)
372 t.Errorf("got %d, want 1234", *ip)
379 t.Errorf("got non-nil (%p), want nil", ip)
389 t.Errorf("got non-nil (%d), want nil", *ip)
398 t.Errorf("got non-nil (%p), want nil", m)
419 t.Errorf("FieldByName says present field is absent")
425 t.Errorf("FieldByName says absent field is present")
522 t.Errorf("Append #%d: have %v, want %v (%p %p)", i, have0, want, test.orig, have0)
526 t.Errorf("Append #%d origLen: have %v, want %v", i, len(test.orig), origLen)
529 t.Errorf("Append #%d extraLen: have %v, want %v", i, len(test.extra), extraLen)
535 t.Errorf("AppendSlice #%d: have %v, want %v", i, have1, want)
539 t.Errorf("AppendSlice #%d origLen: have %v, want %v", i, len(test.orig), origLen)
542 t.Errorf("AppendSlice #%d extraLen: have %v, want %v", i, len(test.extra), extraLen)
566 t.Errorf("(i) tocopy=%d a[%d]=%d, b[%d]=%d",
573 t.Errorf("(ii) tocopy=%d a[%d]=%d, b[%d]=%d, c[%d]=%d",
576 t.Errorf("(iii) tocopy=%d b[%d]=%d, c[%d]=%d",
595 t.Errorf("(i) a[%d]=%d, b[%d]=%d", i, a[i], i, b[i])
600 t.Errorf("(ii) b[%d]=%d, c[%d]=%d", i, b[i], i, c[i])
614 t.Errorf("ValueOf(%v).Interface().(*Big) = %v", b, b1)
627 t.Errorf("ValueOf(%v).Interface().(big) = %v", b, b1)
706 t.Errorf("DeepEqual(%v, %v) = %v, want %v", test.a, test.b, r, test.eq)
714 t.Errorf("expected nil type for nil value; got %v", typ)
723 t.Errorf("TypeOf(%v) = %v, but ValueOf(%v).Type() = %v", test.a, typ, test.a, v.Type())
825 t.Errorf("%v should be nil", a)
832 t.Errorf("value of type %v should not be nil", ValueOf(a).Type().String())
920 t.Errorf("Len = %d, want %d", n, len(m))
935 t.Errorf("Missing key %q", k)
941 t.Errorf("Key %q: have value %d, want %d", k, vi, v)
949 t.Errorf("Invalid key: got non-nil value %s", valueToString(vv))
954 t.Errorf("length after copy: newm=%d, m=%d", len(newm), len(m))
960 t.Errorf("newm[%q] = %d, but m[%q] = %d, %v", k, v, k, mv, ok)
967 t.Errorf("newm[\"a\"] = %d after delete", v)
973 t.Errorf("mv.Set(nil) failed")
982 t.Errorf(">0 keys for nil map: %v", keys)
988 t.Errorf("m.MapIndex(\"hello\") for nil map = %v, want Invalid Value", x)
995 t.Errorf("mbig.MapIndex(\"hello\") for nil map = %v, want Invalid Value", x)
1020 t.Errorf("reflect Send 2, native recv %d", i)
1026 t.Errorf("native send 3, reflect Recv %d, %t", i.Int(), ok)
1032 t.Errorf("TryRecv on empty chan: %s, %t", valueToString(val), ok)
1039 t.Errorf("TryRecv on ready chan got nil")
1041 t.Errorf("native send 4, TryRecv %d, %t", i, ok)
1049 t.Errorf("TrySend on full chan succeeded: value %d", i)
1055 t.Errorf("TrySend on empty chan failed")
1058 t.Errorf("TrySend failed but it did send %d", x)
1063 t.Errorf("TrySend 6, recv %d", i)
1071 t.Errorf("send 123 then close; Recv %d, %t", i.Int(), ok)
1074 t.Errorf("after close Recv %d, %t", i.Int(), ok)
1083 t.Errorf("TrySend on sync chan succeeded")
1086 t.Errorf("TryRecv on sync chan succeeded: isvalid=%v ok=%v", v.IsValid(), ok)
1096 t.Errorf("Len/Cap = %d/%d want %d/%d", l, m, len(c), cap(c))
1466 t.Errorf("Call returned %d, %d, %d, %v, %d, %g, %d; want 10, 20, 30, [40, 50], 60, 70, 80", i, j, k, l, m, n, o)
1494 t.Errorf("returning empty struct returned %#v instead", r)
1498 t.Errorf("takesEmpty returned values: %#v", r)
1502 t.Errorf("returnNonEmpty returned %#v", r)
1506 t.Errorf("takesNonEmpty returned %#v", r)
1535 t.Errorf("Call returned %d, %d, %d, %v, %d, %g, %d; want 10, 20, 30, [40, 50], 60, 70, 80", i, j, k, l, m, n, o)
1547 t.Errorf("Call returned %d, want 3", r)
1550 t.Errorf("Call returned %d, want 15", r)
1553 t.Errorf("Call returned %d, want 27", r)
1565 t.Errorf("Call returned [%v, %v]; want 2, 3", r[0], r[1])
1570 t.Errorf("Call returned [%v, %v]; want 2, 3", r[0], r[1])
1575 t.Errorf("Call returned [%v, %v]; want 2, 3", r[0], r[1])
1580 t.Errorf("Call returned [%v, %v]; want 2, 3", r[0], r[1])
1587 t.Errorf("Call returned [%v, %v]; want 2, 3", r[0], r[1])
1591 t.Errorf("Call returned [%v, %v]; want 2, 3", r[0], r[1])
1633 t.Errorf("Type Method returned %d; want 250", i)
1642 t.Errorf("Type MethodByName returned %d; want 275", i)
1647 t.Errorf("Pointer Type Method returned %d; want 300", i)
1656 t.Errorf("Pointer Type MethodByName returned %d; want 325", i)
1663 t.Errorf("Value Method Type is %s; want %s", tt, tfunc)
1667 t.Errorf("Value Method returned %d; want 350", i)
1671 t.Errorf("Value MethodByName Type is %s; want %s", tt, tfunc)
1675 t.Errorf("Value MethodByName returned %d; want 375", i)
1681 t.Errorf("Pointer Value Method Type is %s; want %s", tt, tfunc)
1685 t.Errorf("Pointer Value Method returned %d; want 400", i)
1689 t.Errorf("Pointer Value MethodByName Type is %s; want %s", tt, tfunc)
1693 t.Errorf("Pointer Value MethodByName returned %d; want 425", i)
1706 t.Errorf("Interface Method Type is %s; want %s", tt, tfunc)
1710 t.Errorf("Interface Method returned %d; want 450", i)
1714 t.Errorf("Interface MethodByName Type is %s; want %s", tt, tfunc)
1718 t.Errorf("Interface MethodByName returned %d; want 475", i)
1730 t.Errorf("Value Method Type is %s; want %s", tt, tfunc)
1734 t.Errorf("Value Method returned %d; want 250", i)
1738 t.Errorf("Value MethodByName Type is %s; want %s", tt, tfunc)
1742 t.Errorf("Value MethodByName returned %d; want 275", i)
1748 t.Errorf("Pointer Value Method Type is %s; want %s", tt, tfunc)
1752 t.Errorf("Pointer Value Method returned %d; want 300", i)
1756 t.Errorf("Pointer Value MethodByName Type is %s; want %s", tt, tfunc)
1760 t.Errorf("Pointer Value MethodByName returned %d; want 325", i)
1767 t.Errorf("Pointer Pointer Value Method Type is %s; want %s", tt, tfunc)
1771 t.Errorf("Pointer Pointer Value Method returned %d; want 350", i)
1775 t.Errorf("Pointer Pointer Value MethodByName Type is %s; want %s", tt, tfunc)
1779 t.Errorf("Pointer Pointer Value MethodByName returned %d; want 375", i)
1794 t.Errorf("Interface Method Type is %s; want %s", tt, tfunc)
1798 t.Errorf("Interface Method returned %d; want 400", i)
1802 t.Errorf("Interface MethodByName Type is %s; want %s", tt, tfunc)
1806 t.Errorf("Interface MethodByName returned %d; want 425", i)
1819 t.Errorf("Variadic Method Type is %s; want %s", tt, tfunc)
1823 t.Errorf("Variadic Method returned %d; want %d", i, want)
1827 t.Errorf("Variadic Method CallSlice returned %d; want %d", i, want)
1833 t.Errorf("Variadic Method Interface returned %d; want %d", i, want)
1837 t.Errorf("Variadic Method Interface Slice returned %d; want %d", i, want)
1928 t.Errorf("%s(1000, 99) = %v, %v, want 99, %v", name, b, x, 1000+inc)
1937 t.Errorf("direct %s.M(1000, 99) = %v, %v, want 99, %v", name, b, x, 1000+inc)
2036 t.Errorf("i: have %p want %p", q, p)
2042 t.Errorf("i: have %p want %p", q, p)
2047 t.Errorf("Interface Method returned %d; want 250", i)
2209 t.Errorf("%s.%s found; want %s", s.Name(), f.Name, test.name)
2212 t.Errorf("%s.%s found", s.Name(), f.Name)
2215 t.Errorf("%s.%s not found", s.Name(), test.name)
2223 t.Errorf("%s%v is %d; want %d", s.Name(), test.index, x, test.value)
2226 t.Errorf("%s%v value not an int", s.Name(), test.index)
2229 t.Errorf("%s%v value not found", s.Name(), test.index)
2243 t.Errorf("%s.%s depth %d; want %d: %v vs %v", s.Name(), test.name, len(f.Index), len(test.index), f.Index, test.index)
2247 t.Errorf("%s.%s.Index[%d] is %d; want %d", s.Name(), test.name, i, x, test.index[i])
2252 t.Errorf("%s.%s found", s.Name(), f.Name)
2255 t.Errorf("%s.%s not found", s.Name(), test.name)
2263 t.Errorf("%s.%s is %d; want %d", s.Name(), test.name, x, test.value)
2266 t.Errorf("%s.%s value not an int", s.Name(), test.name)
2269 t.Errorf("%s.%s value not found", s.Name(), test.name)
2310 t.Errorf("%v.PkgPath() = %q, want %q", test.t, path, test.path)
2330 t.Errorf("want NumIn() = 2, In(0) = int, In(1) = []float64")
2353 t.Errorf("Wrong method table for outer: (m=%p)", (*outer).m)
2356 t.Errorf("\t%d: %s %#x\n", i, m.Name, m.Func.Pointer())
2377 t.Errorf("Wrong method table for OuterInt: (m=%p)", (*OuterInt).M)
2380 t.Errorf("\t%d: %s %#x\n", i, m.Name, m.Func.Pointer())
2386 t.Errorf("i.M() = %d, want 3", v)
2391 t.Errorf("i.M() = %d, want 2", v)
2396 t.Errorf("f(o) = %d, want 2", v)
2411 t.Errorf("after 100 PtrTo and Elem, have %s, want %s", typ, TypeOf(i))
2434 t.Errorf("lost x[%d] = %d, want %d", i, k, i)
2451 t.Errorf("Addr.Elem.Set failed to set value")
2466 t.Errorf("Addr.Elem.Set failed to set value")
2479 t.Errorf("somehow value Set changed original p")
2485 t.Errorf("Addr.Elem.Set valued to set value in top value")
2497 t.Errorf("Addr.Interface direct assignment failed")
2514 t.Errorf("%d iterations: got %v mallocs, want 0", n, allocs)
2545 t.Errorf("int16(-1).Int() returned %v", v.Int())
2553 t.Errorf("xs.Index(3) = %v; expected %v", v, xs[3])
2558 t.Errorf("xa.Index(2) = %v; expected %v", v, xa[2])
2563 t.Errorf("s.Index(3) = %v; expected %v", v, s[3])
2571 t.Errorf("len(xs.Slice(3, 5)) = %d", len(v))
2574 t.Errorf("cap(xs.Slice(3, 5)) = %d", cap(v))
2577 t.Errorf("xs.Slice(3, 5)[0:5] = %v", v[0:5])
2582 t.Errorf("len(xa.Slice(2, 5)) = %d", len(v))
2585 t.Errorf("cap(xa.Slice(2, 5)) = %d", cap(v))
2588 t.Errorf("xs.Slice(2, 5)[0:6] = %v", v[0:6])
2593 t.Errorf("s.Slice(3, 5) = %q; expected %q", vs, s[3:5])
2602 t.Errorf("xs.Slice(3,4).Slice3(5,5).Pointer() = %#x, want %#x", ptr3, ptr2)
2610 t.Errorf("len(xs.Slice3(3, 5, 7)) = %d", len(v))
2613 t.Errorf("cap(xs.Slice3(3, 5, 7)) = %d", cap(v))
2616 t.Errorf("xs.Slice3(3, 5, 7)[0:4] = %v", v[0:4])
2626 t.Errorf("len(xa.Slice(2, 5, 6)) = %d", len(v))
2629 t.Errorf("cap(xa.Slice(2, 5, 6)) = %d", cap(v))
2632 t.Errorf("xs.Slice(2, 5, 6)[0:4] = %v", v[0:4])
2649 t.Errorf("xs.Slice3(3,5,7).Slice3(4,4,4).Pointer() = %#x, want %#x", ptr3, ptr2)
2665 t.Errorf("after SetLen(5), len, cap = %d, %d, want 5, 8", len(xs), cap(xs))
2669 t.Errorf("after SetCap(6), len, cap = %d, %d, want 5, 6", len(xs), cap(xs))
2673 t.Errorf("after SetCap(5), len, cap = %d, %d, want 5, 5", len(xs), cap(xs))
2690 t.Errorf("after Fprintf Call: %q != %q", b.String(), "hello 42 world")
2696 t.Errorf("after Fprintf CallSlice: %q != %q", b.String(), "hello 42 world")
2705 t.Errorf("function returned %d, want 101", r[0].Int())
2725 t.Errorf("function called with (%v, %v), want (%v, %v)", gotA, gotB, wantA, wantB)
2746 t.Errorf("StructTag(%#q).Get(%#q) = %#q, want %#q", tt.Tag, tt.Key, v, tt.Value)
2759 t.Errorf("ValueOf(%p).Bytes() = %p", &x[0], &y[0])
2772 t.Errorf("ValueOf(%p).Bytes() = %p", &x[0], &y[0])
2849 t.Errorf("aliasing: old=%q new=%q, want hello, world", oldvalue, newvalue)
3236 t.Errorf("(%s).ConvertibleTo(%s) = false, want true", t1, t1)
3242 t.Errorf("(%s).ConvertibleTo(%s) = false, want true", t1, t2)
3255 t.Errorf("ValueOf(%T(%[1]v)).Convert(%s) = %T(%[3]v), want %T(%[4]v)", tt.in.Interface(), t1, out1, tt.in.Interface())
3262 t.Errorf("ValueOf(%T(%[1]v)).Convert(%s) = %T(%[3]v), want %T(%[4]v)", tt.in.Interface(), t2, out2, tt.out.Interface())
3271 t.Errorf("Set(ValueOf(%T(%[1]v)).Convert(%s)) = %T(%[3]v), want %T(%[4]v)", tt.in.Interface(), t2, out3, tt.out.Interface())
3275 t.Errorf("table entry %v is RO, should not be", v1)
3278 t.Errorf("self-conversion output %v is RO, should not be", vout1)
3281 t.Errorf("conversion output %v is RO, should not be", vout2)
3284 t.Errorf("set(conversion output) %v is RO, should not be", vout3)
3287 t.Errorf("RO self-conversion output %v is not RO, should be", v1)
3290 t.Errorf("RO conversion output %v is not RO, should be", v1)
3302 t.Errorf
3341 t.Errorf("TypeOf(%v).Comparable() = %v, want %v", tt.typ, ok, tt.ok)
3348 t.Errorf("%v wrongly overflows float64", 1e300)
3353 t.Errorf("%v wrongly overflows float32", maxFloat32)
3357 t.Errorf("%v should overflow float32", ovfFloat32)
3360 t.Errorf("%v should overflow float32", -ovfFloat32)
3365 t.Errorf("%v wrongly overflows int32", maxInt32)
3368 t.Errorf("%v wrongly overflows int32", -int64(1)<<31)
3372 t.Errorf("%v should overflow int32", ovfInt32)
3377 t.Errorf("%v wrongly overflows uint32", maxUint32)
3381 t.Errorf("%v should overflow uint32", ovfUint32)
3387 t.Errorf("did not find preexisting type for %s (vs %s)", TypeOf(x), TypeOf(y))
3487 t.Errorf("constructed array = %s, want %s", s, table.want)
3491 t.Errorf("constructed array (%#v) is comparable=%v, want=%v", v.Interface(), at.Comparable(), table.comparable)
3496 t.Errorf(
3503 t.Errorf(
3537 t.Errorf("lost x[%d][%d] = %d, want %d", i, j, k, i*n+j)
3548 t.Errorf("constructed array %v not equal to itself", v1.Interface())
3552 t.Errorf("constructed arrays %v and %v should not be equal", i1, i2)
3566 t.Errorf("constructed array %v not equal to itself", v1.Interface())
3572 t.Errorf("constructed arrays %v and %v should not be equal", i1, i2)
3578 t.Errorf("constructed arrays %v and %v should be equal", i1, i2)
3585 t.Errorf("constructed arrays %v and %v have different hashes", i1, i2)
3601 t.Errorf("got p1=%v. want=%v", p1, nil)
3605 t.Errorf("got p2=%v. want=%v", p2, nil)
3619 t.Errorf("got p1=%v. want=not-%v", p1, nil)
3623 t.Errorf("got p2=%v. want=not-%v", p2, nil)
3641 t.Errorf("constructed slice = %s, want %s", s, want)
3690 t.Errorf("lost x[%d][%d] = %d, want %d", i, j, k, i*n+j)
3712 t.Errorf("constructed chan: have %q, %q, want %q, %q", s1, s2, "hello", "world")
3733 t.Errorf("chan dir: have %q, want %q", crt.ChanDir().String(), "<-chan")
3736 t.Errorf("chan dir: have %q, want %q", cst.ChanDir().String(), "chan<-")
3782 t.Errorf("lost x[%d][%d] = %d, want %d", i, j, k, i*n+j)
3801 t.Errorf("constructed map = %s, want %s", s, want)
3843 t.Errorf("lost x[%d][%d] = %d, want %d", i, j, k, i*n+j)
3877 t.Errorf("lost x[%d][%d] = %d, want %d", i, j, k, i*n+j)
3887 t.Errorf("typelinks not sorted: %q [%d] > %q [%d]", last, i-1, n, i)
3900 t.Errorf("args == %v, want exactly one arg", args)
3902 t.Errorf("args[0] is type %v, want %v", args[0].Type, TypeOf(K("")))
3904 t.Errorf("args[0] = %q, want %q", args[0].String(), "gopher")
3918 t.Errorf("constructed func returned %f, want %f", f, 3.14)
4195 t.Errorf("Call returned %d; want 8", i)
4326 t.Errorf("have %#q want 9", x)
4346 t.Errorf("ValueOf(Impl{}).String() = %q, want %q", rv.String(), "<reflect_test.Impl Value>")
4351 t.Errorf("ValueOf(Impl{}).Method(0).String() = %q, want %q", method.String(), "<func() Value>")
4361 t.Errorf("field: IsValid=%v, Kind=%v, want true, Interface", v.IsValid(), v.Kind())
4365 t.Errorf("field elem: IsValid=%v, Kind=%v, want false, Invalid", v.IsValid(), v.Kind())
4512 t.Errorf("funcLayout(%v, %v).size=%d, want %d", lt.t, lt.rcvr, typ.Size(), lt.size)
4515 t.Errorf("funcLayout(%v, %v).argsize=%d, want %d", lt.t, lt.rcvr, argsize, lt.argsize)
4518 t.Errorf("funcLayout(%v, %v).retOffset=%d, want %d", lt.t, lt.rcvr, retOffset, lt.retOffset)
4521 t.Errorf("funcLayout(%v, %v).stack=%v, want %v", lt.t, lt.rcvr, stack, lt.stack)
4524 t.Errorf("funcLayout(%v, %v).gc=%v, want %v", lt.t, lt.rcvr, gc, lt.gc)
4527 t.Errorf("funcLayout(%v, %v) pointers flag=%v, want %v", lt.t, lt.rcvr, ptrs, !ptrs)
4535 t.Errorf("heapBits incorrect for %v\nhave %v\nwant %v", typ, heapBits, bits)
4554 t.Errorf("heapBits incorrect for make(%v, 0, %v)\nhave %v\nwant %v", typ, cap, heapBits, bits)
4751 t.Errorf("%v returned %v, not *reflect.rtype", name, underlying)