- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestUnmarshalRecursivePointer (0.3 sec)
-
src/encoding/json/decode_test.go
t.Fatalf("Unmarshal should have panicked") } // The decoder used to hang if decoding into an interface pointing to its own address. // See golang.org/issues/31740. func TestUnmarshalRecursivePointer(t *testing.T) { var v any v = &v data := []byte(`{"a": "b"}`) if err := Unmarshal(data, v); err != nil { t.Fatalf("Unmarshal error: %v", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0)