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

Method NoFileExists

assert/assertion_forward.go:1127–1132  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1125// NoFileExists checks whether a file does not exist in a given path. It fails
1126// if the path points to an existing _file_ only.
1127func (a *Assertions) NoFileExists(path string, msgAndArgs ...interface{}) bool {
1128 if h, ok := a.t.(tHelper); ok {
1129 h.Helper()
1130 }
1131 return NoFileExists(a.t, path, msgAndArgs...)
1132}
1133
1134// NoFileExistsf checks whether a file does not exist in a given path. It fails
1135// if the path points to an existing _file_ only.

Callers

nothing calls this directly

Calls 2

NoFileExistsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected