MCPcopy Index your code
hub / github.com/expr-lang/expr / Emptyf

Function Emptyf

internal/testify/require/require.go:139–147  ·  view source on GitHub ↗

Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. assert.Emptyf(t, obj, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

137//
138// assert.Emptyf(t, obj, "error message %s", "formatted")
139func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) {
140 if h, ok := t.(tHelper); ok {
141 h.Helper()
142 }
143 if assert.Emptyf(t, object, msg, args...) {
144 return
145 }
146 t.FailNow()
147}
148
149// Equal asserts that two objects are equal.
150//

Callers 1

EmptyfMethod · 0.70

Calls 3

EmptyfFunction · 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…