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

Method NotNilf

internal/testify/require/require_forward.go:1256–1261  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1254//
1255// a.NotNilf(err, "error message %s", "formatted")
1256func (a *Assertions) NotNilf(object interface{}, msg string, args ...interface{}) {
1257 if h, ok := a.t.(tHelper); ok {
1258 h.Helper()
1259 }
1260 NotNilf(a.t, object, msg, args...)
1261}
1262
1263// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic.
1264//

Callers

nothing calls this directly

Calls 2

NotNilfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected