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

Function DirExistsf

require/require.go:80–88  ·  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

78// DirExistsf checks whether a directory exists in the given path. It also fails
79// if the path is a file rather a directory or there is an error checking whether it exists.
80func DirExistsf(t TestingT, path string, msg string, args ...interface{}) {
81 if h, ok := t.(tHelper); ok {
82 h.Helper()
83 }
84 if assert.DirExistsf(t, path, msg, args...) {
85 return
86 }
87 t.FailNow()
88}
89
90// ElementsMatch asserts that the specified listA(array, slice...) is equal to specified
91// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,

Callers 1

DirExistsfMethod · 0.70

Calls 3

DirExistsfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected