(pool mem.BufferPool)
| 254 | } |
| 255 | |
| 256 | func newTrackingPool(pool mem.BufferPool) *trackingBufferPool { |
| 257 | return &trackingBufferPool{ |
| 258 | BufferPool: pool, |
| 259 | requestChan: *testutils.NewChannelWithSize(1), |
| 260 | putChan: *testutils.NewChannelWithSize(1), |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func (p *trackingBufferPool) Get(size int) *[]byte { |
| 265 | p.requestChan.Replace(size) |
no test coverage detected