NoFileExists checks whether a file does not exist in a given path. It fails if the path points to an existing _file_ only.
(t TestingT, path string, msgAndArgs ...interface{})
| 1420 | // NoFileExists checks whether a file does not exist in a given path. It fails |
| 1421 | // if the path points to an existing _file_ only. |
| 1422 | func NoFileExists(t TestingT, path string, msgAndArgs ...interface{}) { |
| 1423 | if h, ok := t.(tHelper); ok { |
| 1424 | h.Helper() |
| 1425 | } |
| 1426 | if assert.NoFileExists(t, path, msgAndArgs...) { |
| 1427 | return |
| 1428 | } |
| 1429 | t.FailNow() |
| 1430 | } |
| 1431 | |
| 1432 | // NoFileExistsf checks whether a file does not exist in a given path. It fails |
| 1433 | // if the path points to an existing _file_ only. |
no test coverage detected