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

Function NotZerof

internal/testify/require/require.go:1729–1737  ·  view source on GitHub ↗

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

(t TestingT, i interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1727
1728// NotZerof asserts that i is not the zero value for its type.
1729func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) {
1730 if h, ok := t.(tHelper); ok {
1731 h.Helper()
1732 }
1733 if assert.NotZerof(t, i, msg, args...) {
1734 return
1735 }
1736 t.FailNow()
1737}
1738
1739// Panics asserts that the code inside the specified PanicTestFunc panics.
1740//

Callers 1

NotZerofMethod · 0.70

Calls 3

NotZerofFunction · 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…