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

Function newTestHTTP2Client

internal/transport/transport_test.go:2788–2795  ·  view source on GitHub ↗
(cs *ClientStream)

Source from the content-addressed store, hash-verified

2786}
2787
2788func newTestHTTP2Client(cs *ClientStream) *http2Client {
2789 return &http2Client{
2790 activeStreams: map[uint32]*ClientStream{
2791 1: cs,
2792 },
2793 controlBuf: newControlBuffer(make(<-chan struct{})),
2794 }
2795}
2796
2797// TestClientDecodeHeader validates the handling of initial header frames that
2798// do not signal the end of a stream. For all headers that indicate grpc content

Callers 2

Calls 1

newControlBufferFunction · 0.85

Tested by

no test coverage detected