DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.
(t TestingT, path string, msg string, args ...interface{})
| 78 | // DirExistsf checks whether a directory exists in the given path. It also fails |
| 79 | // if the path is a file rather a directory or there is an error checking whether it exists. |
| 80 | func DirExistsf(t TestingT, path string, msg string, args ...interface{}) { |
| 81 | if h, ok := t.(tHelper); ok { |
| 82 | h.Helper() |
| 83 | } |
| 84 | if assert.DirExistsf(t, path, msg, args...) { |
| 85 | return |
| 86 | } |
| 87 | t.FailNow() |
| 88 | } |
| 89 | |
| 90 | // ElementsMatch asserts that the specified listA(array, slice...) is equal to specified |
| 91 | // listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, |
no test coverage detected