MCPcopy Create free account
hub / github.com/stretchr/testify / NotZero

Method NotZero

assert/assertion_forward.go:1408–1413  ·  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

1406
1407// NotZero asserts that i is not the zero value for its type.
1408func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool {
1409 if h, ok := a.t.(tHelper); ok {
1410 h.Helper()
1411 }
1412 return NotZero(a.t, i, msgAndArgs...)
1413}
1414
1415// NotZerof asserts that i is not the zero value for its type.
1416func (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{}) bool {

Callers 1

TestNotZeroWrapperFunction · 0.45

Calls 2

NotZeroFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNotZeroWrapperFunction · 0.36