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

Method NoFileExists

require/require_forward.go:1128–1133  ·  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

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