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

Method NotEmptyf

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

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

Callers

nothing calls this directly

Calls 2

NotEmptyfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected