(t *testing.T)
| 691 | } |
| 692 | |
| 693 | func TestFailedConnectionReadPanic(t *testing.T) { |
| 694 | c := newTestConn(failingReader{}, nil, false) |
| 695 | |
| 696 | defer func() { |
| 697 | if v := recover(); v != nil { |
| 698 | return |
| 699 | } |
| 700 | }() |
| 701 | |
| 702 | for i := 0; i < 20000; i++ { |
| 703 | c.ReadMessage() |
| 704 | } |
| 705 | t.Fatal("should not get here") |
| 706 | } |
nothing calls this directly
no test coverage detected