- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestReadMIMEHeaderAllocations (0.37 sec)
-
src/net/textproto/reader_test.go
} if !reflect.DeepEqual(m, want) { t.Fatalf("ReadMIMEHeader mismatch.\n got: %q\nwant: %q", m, want) } } // Test that reading a header doesn't overallocate. Issue 58975. func TestReadMIMEHeaderAllocations(t *testing.T) { var totalAlloc uint64 const count = 200 for i := 0; i < count; i++ { r := reader("A: b\r\n\r\n" + strings.Repeat("\n", 4096)) var m1, m2 runtime.MemStats runtime.ReadMemStats(&m1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14.7K bytes - Viewed (0)