- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestEncoderErrorAndReuseEncodeState (0.22 sec)
-
src/encoding/json/stream_test.go
} if have, want := buf.String(), nlines(streamEncoded, i); have != want { t.Errorf("encoding %d items: mismatch:", i) diff(t, []byte(have), []byte(want)) break } } } func TestEncoderErrorAndReuseEncodeState(t *testing.T) { // Disable the GC temporarily to prevent encodeState's in Pool being cleaned away during the test. percent := debug.SetGCPercent(-1) defer debug.SetGCPercent(percent)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 12.9K bytes - Viewed (0)