MCPcopy
hub / github.com/stretchr/testify / Zerof

Method Zerof

assert/assertion_forward.go:1718–1723  ·  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

1716
1717// Zerof asserts that i is the zero value for its type.
1718func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) bool {
1719 if h, ok := a.t.(tHelper); ok {
1720 h.Helper()
1721 }
1722 return Zerof(a.t, i, msg, args...)
1723}

Callers

nothing calls this directly

Calls 2

ZerofFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected