(t *testing.T, ctx context.Context, r *Reader)
| 92 | } |
| 93 | |
| 94 | func testReaderReadCanceled(t *testing.T, ctx context.Context, r *Reader) { |
| 95 | ctx, cancel := context.WithCancel(ctx) |
| 96 | cancel() |
| 97 | |
| 98 | if _, err := r.ReadMessage(ctx); !errors.Is(err, context.Canceled) { |
| 99 | t.Error(err) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | func testReaderReadMessages(t *testing.T, ctx context.Context, r *Reader) { |
| 104 | const N = 1000 |
nothing calls this directly
no test coverage detected