MCPcopy Create free account
hub / github.com/expr-lang/expr / Zerof

Method Zerof

internal/testify/assert/assertion_forward.go:1600–1605  ·  view source on GitHub ↗

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

(i interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1598
1599// Zerof asserts that i is the zero value for its type.
1600func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) bool {
1601 if h, ok := a.t.(tHelper); ok {
1602 h.Helper()
1603 }
1604 return Zerof(a.t, i, msg, args...)
1605}

Callers

nothing calls this directly

Calls 2

ZerofFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected