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

Function Zerof

assert/assertion_format.go:861–866  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

859
860// Zerof asserts that i is the zero value for its type.
861func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool {
862 if h, ok := t.(tHelper); ok {
863 h.Helper()
864 }
865 return Zero(t, i, append([]interface{}{msg}, args...)...)
866}

Callers 2

ZerofFunction · 0.92
ZerofMethod · 0.70

Calls 2

ZeroFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected