(t *testing.T, conn *Conn)
| 376 | } |
| 377 | |
| 378 | func testConnWrite(t *testing.T, conn *Conn) { |
| 379 | b := []byte("Hello World!") |
| 380 | n, err := conn.Write(b) |
| 381 | if err != nil { |
| 382 | t.Error(err) |
| 383 | } |
| 384 | |
| 385 | if n != len(b) { |
| 386 | t.Error("bad length returned by (*Conn).Write:", n) |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | func testConnCloseAndWrite(t *testing.T, conn *Conn) { |
| 391 | conn.Close() |