MCPcopy
hub / github.com/expr-lang/expr / Zero

Function Zero

internal/testify/require/require.go:2020–2028  ·  view source on GitHub ↗

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

(t TestingT, i interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

2018
2019// Zero asserts that i is the zero value for its type.
2020func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) {
2021 if h, ok := t.(tHelper); ok {
2022 h.Helper()
2023 }
2024 if assert.Zero(t, i, msgAndArgs...) {
2025 return
2026 }
2027 t.FailNow()
2028}
2029
2030// Zerof asserts that i is the zero value for its type.
2031func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) {

Callers 2

ZeroMethod · 0.70
TestZeroFunction · 0.70

Calls 3

ZeroFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 1

TestZeroFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…