MCPcopy Index your code
hub / github.com/expr-lang/expr / Zerof

Function Zerof

internal/testify/require/require.go:2031–2039  ·  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

2029
2030// Zerof asserts that i is the zero value for its type.
2031func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) {
2032 if h, ok := t.(tHelper); ok {
2033 h.Helper()
2034 }
2035 if assert.Zerof(t, i, msg, args...) {
2036 return
2037 }
2038 t.FailNow()
2039}

Callers 1

ZerofMethod · 0.70

Calls 3

ZerofFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…