- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestTypeOf (0.3 sec)
-
src/internal/reflectlite/all_test.go
// Possible loops. {&loop1, &loop1, true}, {&loop1, &loop2, true}, {&loopy1, &loopy1, true}, {&loopy1, &loopy2, true}, } func TestTypeOf(t *testing.T) { // Special case for nil if typ := TypeOf(nil); typ != nil { t.Errorf("expected nil type for nil value; got %v", typ) } for _, test := range typeOfTests { v := ValueOf(test.a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:26:08 UTC 2023 - 24.2K bytes - Viewed (0) -
src/reflect/all_test.go
test.b = test.a } if r := DeepEqual(test.a, test.b); r != test.eq { t.Errorf("DeepEqual(%#v, %#v) = %v, want %v", test.a, test.b, r, test.eq) } } } func TestTypeOf(t *testing.T) { // Special case for nil if typ := TypeOf(nil); typ != nil { t.Errorf("expected nil type for nil value; got %v", typ) } for _, test := range deepEqualTests { v := ValueOf(test.a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)