(t *testing.T)
| 563 | } |
| 564 | |
| 565 | func TestDeprecatedUnderlyingConn(t *testing.T) { |
| 566 | var b1, b2 bytes.Buffer |
| 567 | fc := fakeNetConn{Reader: &b1, Writer: &b2} |
| 568 | c := newConn(fc, true, 1024, 1024, nil, nil, nil) |
| 569 | ul := c.UnderlyingConn() |
| 570 | if ul != fc { |
| 571 | t.Fatalf("Underlying conn is not what it should be.") |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | func TestNetConn(t *testing.T) { |
| 576 | var b1, b2 bytes.Buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…