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

Function NotEmptyf

assert/assertion_format.go:612–617  ·  view source on GitHub ↗

NotEmptyf asserts that the specified object is NOT [Empty]. 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

610// assert.Equal(t, "two", obj[1])
611// }
612func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
613 if h, ok := t.(tHelper); ok {
614 h.Helper()
615 }
616 return NotEmpty(t, object, append([]interface{}{msg}, args...)...)
617}
618
619// NotEqualf asserts that the specified values are NOT equal.
620//

Callers 2

NotEmptyfFunction · 0.92
NotEmptyfMethod · 0.70

Calls 2

NotEmptyFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected