- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestInterfaceExtraction (0.3 sec)
-
src/reflect/all_test.go
} func TestInternalIsZero(t *testing.T) { b := make([]byte, 512) for a := 0; a < 8; a++ { for i := 1; i <= 512-a; i++ { InternalIsZero(b[a : a+i]) } } } func TestInterfaceExtraction(t *testing.T) { var s struct { 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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)