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

Method NotNil

require/require_forward.go:1333–1338  ·  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

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

Callers 1

TestNotNilWrapperFunction · 0.45

Calls 2

NotNilFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNotNilWrapperFunction · 0.36