(t *testing.T)
| 643 | } |
| 644 | |
| 645 | func TestUnexpectedCloseErrors(t *testing.T) { |
| 646 | for _, tt := range unexpectedCloseErrorTests { |
| 647 | ok := IsUnexpectedCloseError(tt.err, tt.codes...) |
| 648 | if ok != tt.ok { |
| 649 | t.Errorf("IsUnexpectedCloseError(%#v, %#v) returned %v, want %v", tt.err, tt.codes, ok, tt.ok) |
| 650 | } |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | type blockingWriter struct { |
| 655 | c1, c2 chan struct{} |
nothing calls this directly
no test coverage detected