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

Function NotNil

internal/testify/require/require.go:1576–1584  ·  view source on GitHub ↗

NotNil asserts that the specified object is not nil. assert.NotNil(t, err)

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

Source from the content-addressed store, hash-verified

1574//
1575// assert.NotNil(t, err)
1576func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1577 if h, ok := t.(tHelper); ok {
1578 h.Helper()
1579 }
1580 if assert.NotNil(t, object, msgAndArgs...) {
1581 return
1582 }
1583 t.FailNow()
1584}
1585
1586// NotNilf asserts that the specified object is not nil.
1587//

Callers 8

TestRun_MethodWithErrorFunction · 0.92
TestVM_MemoryBudgetFunction · 0.92
NotNilMethod · 0.70
TestNotNilFunction · 0.70

Calls 3

NotNilFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 7

TestRun_MethodWithErrorFunction · 0.74
TestVM_MemoryBudgetFunction · 0.74
TestNotNilFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…