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

Method Emptyf

internal/testify/assert/assertion_forward.go:110–115  ·  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. a.Emptyf(obj, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

108//
109// a.Emptyf(obj, "error message %s", "formatted")
110func (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{}) bool {
111 if h, ok := a.t.(tHelper); ok {
112 h.Helper()
113 }
114 return Emptyf(a.t, object, msg, args...)
115}
116
117// Equal asserts that two objects are equal.
118//

Callers

nothing calls this directly

Calls 2

EmptyfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected