MCPcopy Index your code
hub / github.com/expr-lang/expr / NotNil

Method NotNil

internal/testify/assert/assertion_forward.go:1244–1249  ·  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

1242//
1243// a.NotNil(err)
1244func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) bool {
1245 if h, ok := a.t.(tHelper); ok {
1246 h.Helper()
1247 }
1248 return NotNil(a.t, object, msgAndArgs...)
1249}
1250
1251// NotNilf asserts that the specified object is not nil.
1252//

Callers 1

TestNotNilWrapperFunction · 0.45

Calls 2

NotNilFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestNotNilWrapperFunction · 0.36