(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestErrorPredicates(t *testing.T) { |
| 26 | tt := testutils.T{T: t} |
| 27 | |
| 28 | tt.Check(IsPermission(errors.Wrap(os.ErrPermission, "woo"))) |
| 29 | tt.Check(IsExist(errors.Wrap(os.ErrExist, "woo"))) |
| 30 | tt.Check(IsNotExist(errors.Wrap(os.ErrNotExist, "woo"))) |
| 31 | tt.Check(IsTimeout(errors.Wrap(&myTimeout{}, "woo"))) |
| 32 | } |
| 33 | |
| 34 | type myTimeout struct{} |
| 35 |
nothing calls this directly
no test coverage detected
searching dependent graphs…