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

Function NoFileExistsf

require/require.go:1434–1442  ·  view source on GitHub ↗

NoFileExistsf checks whether a file does not exist in a given path. It fails if the path points to an existing _file_ only.

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

Source from the content-addressed store, hash-verified

1432// NoFileExistsf checks whether a file does not exist in a given path. It fails
1433// if the path points to an existing _file_ only.
1434func NoFileExistsf(t TestingT, path string, msg string, args ...interface{}) {
1435 if h, ok := t.(tHelper); ok {
1436 h.Helper()
1437 }
1438 if assert.NoFileExistsf(t, path, msg, args...) {
1439 return
1440 }
1441 t.FailNow()
1442}
1443
1444// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the
1445// specified substring or element.

Callers 1

NoFileExistsfMethod · 0.70

Calls 3

NoFileExistsfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected