(t *testing.T, n int)
| 77 | } |
| 78 | |
| 79 | func testGetPut(t *testing.T, n int) { |
| 80 | bb := Get() |
| 81 | if len(bb.B) > 0 { |
| 82 | t.Fatalf("non-empty byte buffer returned from acquire") |
| 83 | } |
| 84 | bb.B = allocNBytes(bb.B, n) |
| 85 | Put(bb) |
| 86 | } |
| 87 | |
| 88 | func allocNBytes(dst []byte, n int) []byte { |
| 89 | diff := n - cap(dst) |
no test coverage detected
searching dependent graphs…