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

Method DirExistsf

assert/assertion_forward.go:64–69  ·  view source on GitHub ↗

DirExistsf 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, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

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.
64func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) bool {
65 if h, ok := a.t.(tHelper); ok {
66 h.Helper()
67 }
68 return DirExistsf(a.t, path, msg, args...)
69}
70
71// ElementsMatch asserts that the specified listA(array, slice...) is equal to specified
72// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers

nothing calls this directly

Calls 2

DirExistsfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected