FileExists 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.
(path string, msgAndArgs ...interface{})
| 457 | // FileExists checks whether a file exists in the given path. It also fails if |
| 458 | // the path points to a directory or there is an error when trying to check the file. |
| 459 | func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) { |
| 460 | if h, ok := a.t.(tHelper); ok { |
| 461 | h.Helper() |
| 462 | } |
| 463 | FileExists(a.t, path, msgAndArgs...) |
| 464 | } |
| 465 | |
| 466 | // FileExistsf checks whether a file exists in the given path. It also fails if |
| 467 | // the path points to a directory or there is an error when trying to check the file. |
nothing calls this directly
no test coverage detected