MCPcopy Create free account
hub / github.com/corestoreio/pkg / NotEmpty

Function NotEmpty

util/assert/assertions.go:616–627  ·  view source on GitHub ↗

NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either a slice or a channel with len == 0. if assert.NotEmpty(t, obj) { assert.Equal(t, "two", obj[1]) }

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

isEmptyFunction · 0.85
FailFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected