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

Method NoDirExists

assert/assertion_forward.go:1083–1088  ·  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.

(path string, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1081// NoDirExists checks whether a directory does not exist in the given path.
1082// It fails if the path points to an existing _directory_ only.
1083func (a *Assertions) NoDirExists(path string, msgAndArgs ...interface{}) bool {
1084 if h, ok := a.t.(tHelper); ok {
1085 h.Helper()
1086 }
1087 return NoDirExists(a.t, path, msgAndArgs...)
1088}
1089
1090// NoDirExistsf checks whether a directory does not exist in the given path.
1091// It fails if the path points to an existing _directory_ only.

Callers

nothing calls this directly

Calls 2

NoDirExistsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected