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

Function DirExistsf

assert/assertion_format.go:34–39  ·  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.

(t TestingT, path string, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

32// DirExistsf checks whether a directory exists in the given path. It also fails
33// if the path is a file rather a directory or there is an error checking whether it exists.
34func DirExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
35 if h, ok := t.(tHelper); ok {
36 h.Helper()
37 }
38 return DirExists(t, path, append([]interface{}{msg}, args...)...)
39}
40
41// ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified
42// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers 2

DirExistsfFunction · 0.92
DirExistsfMethod · 0.70

Calls 2

DirExistsFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected