MCPcopy
hub / github.com/expr-lang/expr / Empty

Method Empty

internal/testify/assert/assertion_forward.go:99–104  ·  view source on GitHub ↗

Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. a.Empty(obj)

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

Source from the content-addressed store, hash-verified

97//
98// a.Empty(obj)
99func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) bool {
100 if h, ok := a.t.(tHelper); ok {
101 h.Helper()
102 }
103 return Empty(a.t, object, msgAndArgs...)
104}
105
106// Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either
107// a slice or a channel with len == 0.

Callers 1

TestEmptyWrapperFunction · 0.45

Calls 2

EmptyFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestEmptyWrapperFunction · 0.36