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{})
| 233 | // FileExistsf checks whether a file exists in the given path. It also fails if |
| 234 | // the path points to a directory or there is an error when trying to check the file. |
| 235 | func FileExistsf(t TestingT, path string, msg string, args ...interface{}) bool { |
| 236 | if h, ok := t.(tHelper); ok { |
| 237 | h.Helper() |
| 238 | } |
| 239 | return FileExists(t, path, append([]interface{}{msg}, args...)...) |
| 240 | } |
| 241 | |
| 242 | // Greaterf asserts that the first element is greater than the second |
| 243 | // |
no test coverage detected
searching dependent graphs…