Zero asserts that i is the zero value for its type.
(t TestingT, i interface{}, msgAndArgs ...interface{})
| 2018 | |
| 2019 | // Zero asserts that i is the zero value for its type. |
| 2020 | func 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. |
| 2031 | func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) { |