MCPcopy
hub / github.com/stretchr/testify / FileExistsf

Method FileExistsf

assert/assertion_forward.go:480–485  ·  view source on GitHub ↗

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.

(path string, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

478// FileExistsf checks whether a file exists in the given path. It also fails if
479// the path points to a directory or there is an error when trying to check the file.
480func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) bool {
481 if h, ok := a.t.(tHelper); ok {
482 h.Helper()
483 }
484 return FileExistsf(a.t, path, msg, args...)
485}
486
487// Greater asserts that the first element is greater than the second
488//

Callers

nothing calls this directly

Calls 2

FileExistsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected