MCPcopy
hub / github.com/expr-lang/expr / DirExistsf

Function DirExistsf

internal/testify/require/require.go:81–89  ·  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

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

Callers 1

DirExistsfMethod · 0.70

Calls 3

DirExistsfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…