MCPcopy
hub / github.com/stretchr/testify / NotEmptyf

Function NotEmptyf

require/require.go:1536–1544  ·  view source on GitHub ↗

NotEmptyf asserts that the specified object is NOT [Empty]. if require.NotEmptyf(t, obj, "error message %s", "formatted") { require.Equal(t, "two", obj[1]) }

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

Source from the content-addressed store, hash-verified

1534// require.Equal(t, "two", obj[1])
1535// }
1536func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) {
1537 if h, ok := t.(tHelper); ok {
1538 h.Helper()
1539 }
1540 if assert.NotEmptyf(t, object, msg, args...) {
1541 return
1542 }
1543 t.FailNow()
1544}
1545
1546// NotEqual asserts that the specified values are NOT equal.
1547//

Callers 1

NotEmptyfMethod · 0.70

Calls 3

NotEmptyfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected