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

Function NotZero

internal/testify/require/require.go:1718–1726  ·  view source on GitHub ↗

NotZero asserts that i is not the zero value for its type.

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

Source from the content-addressed store, hash-verified

1716
1717// NotZero asserts that i is not the zero value for its type.
1718func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) {
1719 if h, ok := t.(tHelper); ok {
1720 h.Helper()
1721 }
1722 if assert.NotZero(t, i, msgAndArgs...) {
1723 return
1724 }
1725 t.FailNow()
1726}
1727
1728// NotZerof asserts that i is not the zero value for its type.
1729func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) {

Callers 2

NotZeroMethod · 0.70
TestNotZeroFunction · 0.70

Calls 3

NotZeroFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 1

TestNotZeroFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…