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

Method Zerof

require/require_forward.go:1719–1724  ·  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

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

Callers

nothing calls this directly

Calls 2

ZerofFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected