NoDirExists checks whether a directory does not exist in the given path. It fails if the path points to an existing _directory_ only.
(t TestingT, path string, msgAndArgs ...interface{})
| 1321 | // NoDirExists checks whether a directory does not exist in the given path. |
| 1322 | // It fails if the path points to an existing _directory_ only. |
| 1323 | func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) { |
| 1324 | if h, ok := t.(tHelper); ok { |
| 1325 | h.Helper() |
| 1326 | } |
| 1327 | if assert.NoDirExists(t, path, msgAndArgs...) { |
| 1328 | return |
| 1329 | } |
| 1330 | t.FailNow() |
| 1331 | } |
| 1332 | |
| 1333 | // NoDirExistsf checks whether a directory does not exist in the given path. |
| 1334 | // It fails if the path points to an existing _directory_ only. |
no test coverage detected
searching dependent graphs…