(t *testing.T)
| 573 | } |
| 574 | |
| 575 | func TestNetConn(t *testing.T) { |
| 576 | var b1, b2 bytes.Buffer |
| 577 | fc := fakeNetConn{Reader: &b1, Writer: &b2} |
| 578 | c := newConn(fc, true, 1024, 1024, nil, nil, nil) |
| 579 | ul := c.NetConn() |
| 580 | if ul != fc { |
| 581 | t.Fatalf("Underlying conn is not what it should be.") |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | func TestBufioReadBytes(t *testing.T) { |
| 586 | // Test calling bufio.ReadBytes for value longer than read buffer size. |