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

Function NoDirExists

internal/testify/require/require.go:1323–1331  ·  view source on GitHub ↗

NoDirExists 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, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1321// NoDirExists checks whether a directory does not exist in the given path.
1322// It fails if the path points to an existing _directory_ only.
1323func NoDirExists(t TestingT, path string, msgAndArgs ...interface{}) {
1324 if h, ok := t.(tHelper); ok {
1325 h.Helper()
1326 }
1327 if assert.NoDirExists(t, path, msgAndArgs...) {
1328 return
1329 }
1330 t.FailNow()
1331}
1332
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.

Callers 1

NoDirExistsMethod · 0.70

Calls 3

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