MCPcopy Create free account
hub / github.com/expr-lang/expr / NotEmptyf

Method NotEmptyf

internal/testify/assert/assertion_forward.go:1150–1155  ·  view source on GitHub ↗

NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either a slice or a channel with len == 0. if a.NotEmptyf(obj, "error message %s", "formatted") { assert.Equal(t, "two", obj[1]) }

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

Source from the content-addressed store, hash-verified

1148// assert.Equal(t, "two", obj[1])
1149// }
1150func (a *Assertions) NotEmptyf(object interface{}, msg string, args ...interface{}) bool {
1151 if h, ok := a.t.(tHelper); ok {
1152 h.Helper()
1153 }
1154 return NotEmptyf(a.t, object, msg, args...)
1155}
1156
1157// NotEqual asserts that the specified values are NOT equal.
1158//

Callers

nothing calls this directly

Calls 2

NotEmptyfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected