MCPcopy
hub / github.com/stretchr/testify / NotZero

Method NotZero

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

1448
1449// NotZero asserts that i is not the zero value for its type.
1450func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool {
1451 if h, ok := a.t.(tHelper); ok {
1452 h.Helper()
1453 }
1454 return NotZero(a.t, i, msgAndArgs...)
1455}
1456
1457// NotZerof asserts that i is not the zero value for its type.
1458func (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