MCPcopy
hub / github.com/grpc/grpc-go / trackingBufferPool

Struct trackingBufferPool

internal/transport/readyreader/ready_reader_ext_test.go:250–254  ·  view source on GitHub ↗

trackingBufferPool wraps a mem.BufferPool and provides channels to track when buffers are requested and returned, useful for verifying allocation behavior in tests.

Source from the content-addressed store, hash-verified

248// when buffers are requested and returned, useful for verifying allocation
249// behavior in tests.
250type trackingBufferPool struct {
251 mem.BufferPool
252 requestChan testutils.Channel
253 putChan testutils.Channel
254}
255
256func newTrackingPool(pool mem.BufferPool) *trackingBufferPool {
257 return &trackingBufferPool{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected