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

Function NotZerof

assert/assertion_format.go:731–736  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

729
730// NotZerof asserts that i is not the zero value for its type.
731func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) bool {
732 if h, ok := t.(tHelper); ok {
733 h.Helper()
734 }
735 return NotZero(t, i, append([]interface{}{msg}, args...)...)
736}
737
738// Panicsf asserts that the code inside the specified PanicTestFunc panics.
739//

Callers 2

NotZerofFunction · 0.92
NotZerofMethod · 0.70

Calls 2

NotZeroFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected