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

Method NotEmpty

assert/assertion_forward.go:1208–1213  ·  view source on GitHub ↗

NotEmpty asserts that the specified object is NOT [Empty]. if a.NotEmpty(obj) { assert.Equal(t, "two", obj[1]) }

(object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1206// assert.Equal(t, "two", obj[1])
1207// }
1208func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) bool {
1209 if h, ok := a.t.(tHelper); ok {
1210 h.Helper()
1211 }
1212 return NotEmpty(a.t, object, msgAndArgs...)
1213}
1214
1215// NotEmptyf asserts that the specified object is NOT [Empty].
1216//

Callers 1

TestNotEmptyWrapperFunction · 0.45

Calls 2

NotEmptyFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNotEmptyWrapperFunction · 0.36