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

Function Nil

internal/testify/require/require.go:1298–1306  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1296//
1297// assert.Nil(t, err)
1298func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1299 if h, ok := t.(tHelper); ok {
1300 h.Helper()
1301 }
1302 if assert.Nil(t, object, msgAndArgs...) {
1303 return
1304 }
1305 t.FailNow()
1306}
1307
1308// Nilf asserts that the specified object is nil.
1309//

Callers 3

TestDebuggerFunction · 0.92
NilMethod · 0.70
TestNilFunction · 0.70

Calls 3

NilFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 2

TestDebuggerFunction · 0.74
TestNilFunction · 0.56