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

Struct unresponsiveTestConn

credentials/alts/internal/testutil/testutil.go:113–115  ·  credentials/alts/internal/testutil/testutil.go::unresponsiveTestConn

unresponsiveTestConn mimics a net.Conn for an unresponsive peer. It is used for testing the PeerNotResponding case.

Source from the content-addressed store, hash-verified

111// unresponsiveTestConn mimics a net.Conn for an unresponsive peer. It is used
112// for testing the PeerNotResponding case.
113type unresponsiveTestConn struct {
114 net.Conn
115}
116
117// NewUnresponsiveTestConn creates a new instance of unresponsiveTestConn object.
118func NewUnresponsiveTestConn() net.Conn {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected