MCPcopy Create free account
hub / github.com/expr-lang/expr / FileExistsf

Function FileExistsf

internal/testify/require/require.go:585–593  ·  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

583// FileExistsf checks whether a file exists in the given path. It also fails if
584// the path points to a directory or there is an error when trying to check the file.
585func FileExistsf(t TestingT, path string, msg string, args ...interface{}) {
586 if h, ok := t.(tHelper); ok {
587 h.Helper()
588 }
589 if assert.FileExistsf(t, path, msg, args...) {
590 return
591 }
592 t.FailNow()
593}
594
595// Greater asserts that the first element is greater than the second
596//

Callers 1

FileExistsfMethod · 0.70

Calls 3

FileExistsfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…