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

Method NotEmptyf

require/require_forward.go:1221–1226  ·  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

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

Callers

nothing calls this directly

Calls 2

NotEmptyfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected