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

Function NotNilf

assert/assertion_format.go:673–678  ·  view source on GitHub ↗

NotNilf asserts that the specified object is not nil. assert.NotNilf(t, err, "error message %s", "formatted")

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

Source from the content-addressed store, hash-verified

671//
672// assert.NotNilf(t, err, "error message %s", "formatted")
673func NotNilf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
674 if h, ok := t.(tHelper); ok {
675 h.Helper()
676 }
677 return NotNil(t, object, append([]interface{}{msg}, args...)...)
678}
679
680// NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic.
681//

Callers 2

NotNilfFunction · 0.92
NotNilfMethod · 0.70

Calls 2

NotNilFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected