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

Function Zerof

require/require.go:2172–2180  ·  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

2170
2171// Zerof asserts that i is the zero value for its type.
2172func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) {
2173 if h, ok := t.(tHelper); ok {
2174 h.Helper()
2175 }
2176 if assert.Zerof(t, i, msg, args...) {
2177 return
2178 }
2179 t.FailNow()
2180}

Callers 1

ZerofMethod · 0.70

Calls 3

ZerofFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected