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

Function newTrackingPool

internal/transport/readyreader/ready_reader_ext_test.go:256–262  ·  view source on GitHub ↗
(pool mem.BufferPool)

Source from the content-addressed store, hash-verified

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

Callers 1

TestReadyReader_TCPMethod · 0.85

Calls 1

NewChannelWithSizeFunction · 0.92

Tested by

no test coverage detected