This particular case creates an object larger than the default read buffer size, so it's a decent indicator of worst-case performance.
(b *testing.B)
| 744 | // read buffer size, so it's a decent |
| 745 | // indicator of worst-case performance. |
| 746 | func BenchmarkRead2048Bytes(b *testing.B) { |
| 747 | benchBytes(2048, b) |
| 748 | } |
| 749 | |
| 750 | func TestReadString(t *testing.T) { |
| 751 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…