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

Function NotEmptyf

internal/testify/assert/assertion_format.go:577–582  ·  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 assert.NotEmptyf(t, obj, "error message %s", "formatted") { assert.Equal(t, "two", obj[1]) }

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

Source from the content-addressed store, hash-verified

575// assert.Equal(t, "two", obj[1])
576// }
577func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
578 if h, ok := t.(tHelper); ok {
579 h.Helper()
580 }
581 return NotEmpty(t, object, append([]interface{}{msg}, args...)...)
582}
583
584// NotEqualf asserts that the specified values are NOT equal.
585//

Callers 2

NotEmptyfFunction · 0.92
NotEmptyfMethod · 0.70

Calls 2

NotEmptyFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…