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

Function Nilf

internal/testify/require/require.go:1311–1319  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1309//
1310// assert.Nilf(t, err, "error message %s", "formatted")
1311func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) {
1312 if h, ok := t.(tHelper); ok {
1313 h.Helper()
1314 }
1315 if assert.Nilf(t, object, msg, args...) {
1316 return
1317 }
1318 t.FailNow()
1319}
1320
1321// NoDirExists checks whether a directory does not exist in the given path.
1322// It fails if the path points to an existing _directory_ only.

Callers 1

NilfMethod · 0.70

Calls 3

NilfFunction · 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…