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

Method NotEmpty

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

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

Callers 1

TestNotEmptyWrapperFunction · 0.45

Calls 2

NotEmptyFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNotEmptyWrapperFunction · 0.36