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

Method NotZero

internal/testify/require/require_forward.go:1358–1363  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1356
1357// NotZero asserts that i is not the zero value for its type.
1358func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) {
1359 if h, ok := a.t.(tHelper); ok {
1360 h.Helper()
1361 }
1362 NotZero(a.t, i, msgAndArgs...)
1363}
1364
1365// NotZerof asserts that i is not the zero value for its type.
1366func (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{}) {

Callers 1

TestNotZeroWrapperFunction · 0.45

Calls 2

NotZeroFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestNotZeroWrapperFunction · 0.36