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

Function NotEmptyf

internal/testify/require/require.go:1455–1463  ·  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

1453// assert.Equal(t, "two", obj[1])
1454// }
1455func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) {
1456 if h, ok := t.(tHelper); ok {
1457 h.Helper()
1458 }
1459 if assert.NotEmptyf(t, object, msg, args...) {
1460 return
1461 }
1462 t.FailNow()
1463}
1464
1465// NotEqual asserts that the specified values are NOT equal.
1466//

Callers 1

NotEmptyfMethod · 0.70

Calls 3

NotEmptyfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…