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{})
| 470 | // FileExists checks whether a file exists in the given path. It also fails if |
| 471 | // the path points to a directory or there is an error when trying to check the file. |
| 472 | func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) { |
| 473 | if h, ok := a.t.(tHelper); ok { |
| 474 | h.Helper() |
| 475 | } |
| 476 | FileExists(a.t, path, msgAndArgs...) |
| 477 | } |
| 478 | |
| 479 | // FileExistsf checks whether a file exists in the given path. It also fails if |
| 480 | // 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