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{})
| 583 | // FileExistsf checks whether a file exists in the given path. It also fails if |
| 584 | // the path points to a directory or there is an error when trying to check the file. |
| 585 | func FileExistsf(t TestingT, path string, msg string, args ...interface{}) { |
| 586 | if h, ok := t.(tHelper); ok { |
| 587 | h.Helper() |
| 588 | } |
| 589 | if assert.FileExistsf(t, path, msg, args...) { |
| 590 | return |
| 591 | } |
| 592 | t.FailNow() |
| 593 | } |
| 594 | |
| 595 | // Greater asserts that the first element is greater than the second |
| 596 | // |
no test coverage detected
searching dependent graphs…