FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.
(t TestingT, path string, msg string, args ...interface{})
| 596 | // FileExistsf checks whether a file exists in the given path. It also fails if |
| 597 | // the path points to a directory or there is an error when trying to check the file. |
| 598 | func FileExistsf(t TestingT, path string, msg string, args ...interface{}) { |
| 599 | if h, ok := t.(tHelper); ok { |
| 600 | h.Helper() |
| 601 | } |
| 602 | if assert.FileExistsf(t, path, msg, args...) { |
| 603 | return |
| 604 | } |
| 605 | t.FailNow() |
| 606 | } |
| 607 | |
| 608 | // Greater asserts that the first element is greater than the second |
| 609 | // |
no test coverage detected