- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNilPtrValueSub (0.46 sec)
-
src/reflect/all_test.go
W io.Writer } s.W = os.Stdout v := Indirect(ValueOf(&s)).Field(0).Interface() if v != s.W.(any) { t.Error("Interface() on interface: ", v, s.W) } } func TestNilPtrValueSub(t *testing.T) { var pi *int if pv := ValueOf(pi); pv.Elem().IsValid() { t.Error("ValueOf((*int)(nil)).Elem().IsValid()") } } func TestMap(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)