Check that err != nil
(t *testing.T, err error)
| 66 | |
| 67 | // Check that err != nil |
| 68 | func assertWithError(t *testing.T, err error) { |
| 69 | if err == nil { |
| 70 | t.Errorf("Error expected") |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // Check that err != nil and contains expected test |
| 75 | func assertErrorIs(t *testing.T, err error, s string) { |