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

Method NotNil

assert/assertion_forward.go:1332–1337  ·  view source on GitHub ↗

NotNil asserts that the specified object is not nil. a.NotNil(err)

(object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1330//
1331// a.NotNil(err)
1332func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) bool {
1333 if h, ok := a.t.(tHelper); ok {
1334 h.Helper()
1335 }
1336 return NotNil(a.t, object, msgAndArgs...)
1337}
1338
1339// NotNilf asserts that the specified object is not nil.
1340//

Callers 1

TestNotNilWrapperFunction · 0.45

Calls 2

NotNilFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNotNilWrapperFunction · 0.36