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

Method NotNil

internal/testify/require/require_forward.go:1246–1251  ·  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

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

Callers 1

TestNotNilWrapperFunction · 0.45

Calls 2

NotNilFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestNotNilWrapperFunction · 0.36