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

Method Emptyf

internal/testify/require/require_forward.go:112–117  ·  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

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

Callers

nothing calls this directly

Calls 2

EmptyfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected