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

Function FileExistsf

require/require.go:598–606  ·  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

596// FileExistsf checks whether a file exists in the given path. It also fails if
597// the path points to a directory or there is an error when trying to check the file.
598func FileExistsf(t TestingT, path string, msg string, args ...interface{}) {
599 if h, ok := t.(tHelper); ok {
600 h.Helper()
601 }
602 if assert.FileExistsf(t, path, msg, args...) {
603 return
604 }
605 t.FailNow()
606}
607
608// Greater asserts that the first element is greater than the second
609//

Callers 1

FileExistsfMethod · 0.70

Calls 3

FileExistsfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected