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

Method TestWrapSyscallConnNoWrap

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

Source from the content-addressed store, hash-verified

43}
44
45func (s) TestWrapSyscallConnNoWrap(t *testing.T) {
46 nscRaw := &nonSyscallConn{}
47 nsc := &nonSyscallConn{}
48
49 wrapConn := WrapSyscallConn(nscRaw, nsc)
50 if _, ok := wrapConn.(syscall.Conn); ok {
51 t.Errorf("returned conn (type %T) implements syscall.Conn, want not implement", wrapConn)
52 }
53 if wrapConn != nsc {
54 t.Errorf("returned conn is %p, want %p (the passed-in newConn)", wrapConn, nsc)
55 }
56}

Callers

nothing calls this directly

Calls 2

WrapSyscallConnFunction · 0.70
ErrorfMethod · 0.65

Tested by

no test coverage detected