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

Struct testConn

credentials/alts/internal/conn/record_test.go:67–71  ·  view source on GitHub ↗

testConn mimics a net.Conn to the peer.

Source from the content-addressed store, hash-verified

65
66// testConn mimics a net.Conn to the peer.
67type testConn struct {
68 net.Conn
69 in *bytes.Buffer
70 out *bytes.Buffer
71}
72
73func (c *testConn) Read(b []byte) (n int, err error) {
74 return c.in.Read(b)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected