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

Method FileExists

assert/assertion_forward.go:471–476  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

FileExistsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected