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

Method Zero

internal/testify/require/require_forward.go:1594–1599  ·  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

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

Callers 5

TestZeroWrapperFunction · 0.45
getFunction · 0.45
RunMethod · 0.45
FetchFunction · 0.45
InFunction · 0.45

Calls 2

ZeroFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestZeroWrapperFunction · 0.36