MCPcopy Index your code
hub / github.com/expr-lang/expr / Zero

Method Zero

internal/testify/assert/assertion_forward.go:1592–1597  ·  view source on GitHub ↗

Zero asserts that i is the zero value for its type.

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

Source from the content-addressed store, hash-verified

1590
1591// Zero asserts that i is the zero value for its type.
1592func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool {
1593 if h, ok := a.t.(tHelper); ok {
1594 h.Helper()
1595 }
1596 return Zero(a.t, i, msgAndArgs...)
1597}
1598
1599// Zerof asserts that i is the zero value for its type.
1600func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) bool {

Callers 6

TestZeroWrapperFunction · 0.45
PositiveFunction · 0.45
NegativeFunction · 0.45
isEmptyFunction · 0.45
ZeroFunction · 0.45
NotZeroFunction · 0.45

Calls 2

ZeroFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestZeroWrapperFunction · 0.36