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

Function NoDirExistsf

internal/testify/require/require.go:1335–1343  ·  view source on GitHub ↗

NoDirExistsf checks whether a directory does not exist in the given path. It fails if the path points to an existing _directory_ only.

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

Source from the content-addressed store, hash-verified

1333// NoDirExistsf checks whether a directory does not exist in the given path.
1334// It fails if the path points to an existing _directory_ only.
1335func NoDirExistsf(t TestingT, path string, msg string, args ...interface{}) {
1336 if h, ok := t.(tHelper); ok {
1337 h.Helper()
1338 }
1339 if assert.NoDirExistsf(t, path, msg, args...) {
1340 return
1341 }
1342 t.FailNow()
1343}
1344
1345// NoError asserts that a function returned no error (i.e. `nil`).
1346//

Callers 1

NoDirExistsfMethod · 0.70

Calls 3

NoDirExistsfFunction · 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…