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

Struct testConn

credentials/alts/internal/testutil/testutil.go:69–74  ·  credentials/alts/internal/testutil/testutil.go::testConn

testConn mimics a net.Conn to the peer.

Source from the content-addressed store, hash-verified

67
68// testConn mimics a net.Conn to the peer.
69type testConn struct {
70 net.Conn
71 in *bytes.Buffer
72 out *bytes.Buffer
73 readLatency time.Duration
74}
75
76// NewTestConn creates a new instance of testConn object.
77func NewTestConn(in *bytes.Buffer, out *bytes.Buffer) net.Conn {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected