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

Function Emptyf

internal/testify/assert/assertion_format.go:57–62  ·  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

55//
56// assert.Emptyf(t, obj, "error message %s", "formatted")
57func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
58 if h, ok := t.(tHelper); ok {
59 h.Helper()
60 }
61 return Empty(t, object, append([]interface{}{msg}, args...)...)
62}
63
64// Equalf asserts that two objects are equal.
65//

Callers 2

EmptyfFunction · 0.92
EmptyfMethod · 0.70

Calls 2

EmptyFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…