(t *testing.T)
| 613 | } |
| 614 | |
| 615 | func TestCloseError(t *testing.T) { |
| 616 | for _, tt := range closeErrorTests { |
| 617 | ok := IsCloseError(tt.err, tt.codes...) |
| 618 | if ok != tt.ok { |
| 619 | t.Errorf("IsCloseError(%#v, %#v) returned %v, want %v", tt.err, tt.codes, ok, tt.ok) |
| 620 | } |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | var unexpectedCloseErrorTests = []struct { |
| 625 | err error |
nothing calls this directly
no test coverage detected