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

Method NotNilf

assert/assertion_forward.go:1342–1347  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1340//
1341// a.NotNilf(err, "error message %s", "formatted")
1342func (a *Assertions) NotNilf(object interface{}, msg string, args ...interface{}) bool {
1343 if h, ok := a.t.(tHelper); ok {
1344 h.Helper()
1345 }
1346 return NotNilf(a.t, object, msg, args...)
1347}
1348
1349// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.
1350//

Callers

nothing calls this directly

Calls 2

NotNilfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected