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

Function FileExistsf

assert/assertion_format.go:242–247  ·  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.

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

Source from the content-addressed store, hash-verified

240// FileExistsf checks whether a file exists in the given path. It also fails if
241// the path points to a directory or there is an error when trying to check the file.
242func FileExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
243 if h, ok := t.(tHelper); ok {
244 h.Helper()
245 }
246 return FileExists(t, path, append([]interface{}{msg}, args...)...)
247}
248
249// Greaterf asserts that the first element is greater than the second
250//

Callers 2

FileExistsfFunction · 0.92
FileExistsfMethod · 0.70

Calls 2

FileExistsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected