MCPcopy Create free account
hub / github.com/expr-lang/expr / NotNilf

Function NotNilf

internal/testify/require/require.go:1589–1597  ·  view source on GitHub ↗

NotNilf asserts that the specified object is not nil. assert.NotNilf(t, err, "error message %s", "formatted")

(t TestingT, object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1587//
1588// assert.NotNilf(t, err, "error message %s", "formatted")
1589func NotNilf(t TestingT, object interface{}, msg string, args ...interface{}) {
1590 if h, ok := t.(tHelper); ok {
1591 h.Helper()
1592 }
1593 if assert.NotNilf(t, object, msg, args...) {
1594 return
1595 }
1596 t.FailNow()
1597}
1598
1599// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.
1600//

Callers 1

NotNilfMethod · 0.70

Calls 3

NotNilfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…