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

Method FileExistsf

require/require_forward.go:481–486  ·  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

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.
481func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) {
482 if h, ok := a.t.(tHelper); ok {
483 h.Helper()
484 }
485 FileExistsf(a.t, path, msg, args...)
486}
487
488// Greater asserts that the first element is greater than the second
489//

Callers

nothing calls this directly

Calls 2

FileExistsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected