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{})
| 1376 | // NoFileExists checks whether a file does not exist in a given path. It fails |
| 1377 | // if the path points to an existing _file_ only. |
| 1378 | func NoFileExists(t TestingT, path string, msgAndArgs ...interface{}) { |
| 1379 | if h, ok := t.(tHelper); ok { |
| 1380 | h.Helper() |
| 1381 | } |
| 1382 | if assert.NoFileExists(t, path, msgAndArgs...) { |
| 1383 | return |
| 1384 | } |
| 1385 | t.FailNow() |
| 1386 | } |
| 1387 | |
| 1388 | // NoFileExistsf checks whether a file does not exist in a given path. It fails |
| 1389 | // if the path points to an existing _file_ only. |
no test coverage detected