trackingBufferPool wraps a mem.BufferPool and provides channels to track when buffers are requested and returned, useful for verifying allocation behavior in tests.
| 248 | // when buffers are requested and returned, useful for verifying allocation |
| 249 | // behavior in tests. |
| 250 | type trackingBufferPool struct { |
| 251 | mem.BufferPool |
| 252 | requestChan testutils.Channel |
| 253 | putChan testutils.Channel |
| 254 | } |
| 255 | |
| 256 | func newTrackingPool(pool mem.BufferPool) *trackingBufferPool { |
| 257 | return &trackingBufferPool{ |
nothing calls this directly
no outgoing calls
no test coverage detected