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

Method NotZero

internal/testify/assert/assertion_forward.go:1356–1361  ·  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

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

Callers 1

TestNotZeroWrapperFunction · 0.45

Calls 2

NotZeroFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestNotZeroWrapperFunction · 0.36