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

Method NotZerof

assert/assertion_forward.go:1458–1463  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

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 {
1459 if h, ok := a.t.(tHelper); ok {
1460 h.Helper()
1461 }
1462 return NotZerof(a.t, i, msg, args...)
1463}
1464
1465// Panics asserts that the code inside the specified PanicTestFunc panics.
1466//

Callers

nothing calls this directly

Calls 2

NotZerofFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected