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

Method TestWrapSyscallConn

internal/credentials/syscallconn_test.go:35–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func (s) TestWrapSyscallConn(t *testing.T) {
36 sc := &syscallConn{}
37 nsc := &nonSyscallConn{}
38
39 wrapConn := WrapSyscallConn(sc, nsc)
40 if _, ok := wrapConn.(syscall.Conn); !ok {
41 t.Errorf("returned conn (type %T) doesn't implement syscall.Conn, want implement", wrapConn)
42 }
43}
44
45func (s) TestWrapSyscallConnNoWrap(t *testing.T) {
46 nscRaw := &nonSyscallConn{}

Callers

nothing calls this directly

Calls 2

WrapSyscallConnFunction · 0.70
ErrorfMethod · 0.65

Tested by

no test coverage detected