Home | History | Annotate | Download | only in reflect

Lines Matching refs:tt

230 	for i, tt := range typeTests {
231 testType(t, i, ValueOf(tt.i).Field(0).Type(), tt.s)
236 for i, tt := range valueTests {
237 v := ValueOf(tt.i)
274 if s != tt.s {
275 t.Errorf("#%d: have %#q, want %#q", i, s, tt.s)
281 for i, tt := range valueTests {
282 v := ValueOf(tt.i).Elem()
318 if s != tt.s {
319 t.Errorf("#%d: have %#q, want %#q", i, s, tt.s)
1729 if tt := v.Type(); tt != tfunc {
1730 t.Errorf("Value Method Type is %s; want %s", tt, tfunc)
1737 if tt := v.Type(); tt != tfunc {
1738 t.Errorf("Value MethodByName Type is %s; want %s", tt, tfunc)
1747 if tt := v.Type(); tt != tfunc {
1748 t.Errorf("Pointer Value Method Type is %s; want %s", tt, tfunc)
1755 if tt := v.Type(); tt != tfunc {
1756 t.Errorf("Pointer Value MethodByName Type is %s; want %s", tt, tfunc)
1772 if tt := v.Type(); tt != tfunc {
1773 t.Errorf("Interface Method Type is %s; want %s", tt, tfunc)
1780 if tt := v.Type(); tt != tfunc {
1781 t.Errorf("Interface MethodByName Type is %s; want %s", tt, tfunc)
1796 if tt := v.Type(); tt != tfunc {
1797 t.Errorf("Value Method Type is %s; want %s", tt, tfunc)
1804 if tt := v.Type(); tt != tfunc {
1805 t.Errorf("Value MethodByName Type is %s; want %s", tt, tfunc)
1814 if tt := v.Type(); tt != tfunc {
1815 t.Errorf("Pointer Value Method Type is %s; want %s", tt, tfunc)
1822 if tt := v.Type(); tt != tfunc {
1823 t.Errorf("Pointer Value MethodByName Type is %s; want %s", tt, tfunc)
1833 if tt := v.Type(); tt != tfunc {
1834 t.Errorf("Pointer Pointer Value Method Type is %s; want %s", tt, tfunc)
1841 if tt := v.Type(); tt != tfunc {
1842 t.Errorf("Pointer Pointer Value MethodByName Type is %s; want %s", tt, tfunc)
1860 if tt := v.Type(); tt != tfunc {
1861 t.Errorf("Interface Method Type is %s; want %s", tt, tfunc)
1868 if tt := v.Type(); tt != tfunc {
1869 t.Errorf("Interface MethodByName Type is %s; want %s", tt, tfunc)
1885 if tt := v.Type(); tt != tfunc {
1886 t.Errorf("Variadic Method Type is %s; want %s", tt, tfunc)
2504 tt := TypeOf(T(nil))
2505 pt := PtrTo(tt)
2831 for _, tt := range tagGetTests {
2832 if v := tt.Tag.Get(tt.Key); v != tt.Value {
2833 t.Errorf("StructTag(%#q).Get(%#q) = %#q, want %#q", tt.Tag, tt.Key, v, tt.Value)
3541 for _, tt := range convertTests {
3542 t1 := tt.in.Type()
3548 t2 := tt.out.Type()
3559 v1 := tt.in
3562 if vout1.Type() != tt.in.Type() || !DeepEqual(out1, tt.in.Interface()) {
3563 t.Errorf("ValueOf(%T(%[1]v)).Convert(%s) = %T(%[3]v), want %T(%[4]v)", tt.in.Interface(), t1, out1, tt.in.Interface())
3569 if vout2.Type() != tt.out.Type() || !DeepEqual(out2, tt.out.Interface()) {
3570 t.Errorf("ValueOf(%T(%[1]v)).Convert(%s) = %T(%[3]v), want %T(%[4]v)", tt.in.Interface(), t2, out2, tt.out.Interface())
3578 if vout3.Type() != tt.out.Type() || !DeepEqual(out3, tt.out.Interface()) {
3579 t.Errorf("Set(ValueOf(%T(%[1]v)).Convert(%s)) = %T(%[3]v), want %T(%[4]v)", tt.in.Interface(), t2, out3, tt.out.Interface())
3647 for _, tt := range comparableTests {
3648 if ok := tt.typ.Comparable(); ok != tt.ok {
3649 t.Errorf("TypeOf(%v).Comparable() = %v, want %v", tt.typ, ok, tt.ok)
3826 tt := TypeOf(T(nil))
3830 v := New(ArrayOf(n, tt)).Elem()
3834 v.Index(j).Set(ValueOf(p).Convert(tt))
3981 tt := TypeOf(T(nil))
3982 st := SliceOf(tt)
3990 v.Index(j).Set(ValueOf(p).Convert(tt))
4300 tt := TypeOf(T(nil))
4302 {Name: "X", Type: tt},
4303 {Name: "Y", Type: tt},
4314 v.Field(j).Set(ValueOf(p).Convert(tt))
4675 tt := TypeOf(T(nil))
4676 ct := ChanOf(BothDir, tt)
4688 v.Send(ValueOf(p).Convert(tt))
4733 tt := TypeOf(T(nil))
4734 mt := MapOf(tt, TypeOf(false))
4746 v.SetMapIndex(ValueOf(p).Convert(tt), ValueOf(true))
4771 tt := TypeOf(T(nil))
4772 mt := MapOf(TypeOf(1), tt)
4784 v.SetMapIndex(ValueOf(j), ValueOf(p).Convert(tt))
4854 for _, tt := range testCases {
4855 checkSameType(t, Zero(FuncOf(tt.in, tt.out, tt.variadic)).Interface(), tt.want)
5316 for i, tt := range testIndices {
5317 recoveredErr := fieldIndexRecover(typ, tt.i)
5318 if tt.mustPanic {
5320 t.Errorf("#%d: fieldIndex %d expected to panic", i, tt.i)
6029 for i, tt := range tests {
6030 inStr := fmt.Sprint(tt.in)
6031 Swapper(tt.in)(tt.i, tt.j)
6032 if !DeepEqual(tt.in, tt.want) {
6033 t.Errorf("%d. swapping %v and %v of %v = %v; want %v", i, tt.i, tt.j, inStr, tt.in, tt.want)