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

Method DirExists

assert/assertion_forward.go:55–60  ·  view source on GitHub ↗

DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.

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

Source from the content-addressed store, hash-verified

53// DirExists checks whether a directory exists in the given path. It also fails
54// if the path is a file rather a directory or there is an error checking whether it exists.
55func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool {
56 if h, ok := a.t.(tHelper); ok {
57 h.Helper()
58 }
59 return DirExists(a.t, path, msgAndArgs...)
60}
61
62// DirExistsf checks whether a directory exists in the given path. It also fails
63// if the path is a file rather a directory or there is an error checking whether it exists.

Callers

nothing calls this directly

Calls 2

DirExistsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected