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

Method NotEmptyf

assert/assertion_forward.go:1220–1225  ·  view source on GitHub ↗

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

1218// assert.Equal(t, "two", obj[1])
1219// }
1220func (a *Assertions) NotEmptyf(object interface{}, msg string, args ...interface{}) bool {
1221 if h, ok := a.t.(tHelper); ok {
1222 h.Helper()
1223 }
1224 return NotEmptyf(a.t, object, msg, args...)
1225}
1226
1227// NotEqual asserts that the specified values are NOT equal.
1228//

Callers

nothing calls this directly

Calls 2

NotEmptyfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected