MCPcopy
hub / github.com/stretchr/testify / Nilf

Function Nilf

require/require.go:1354–1362  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1352//
1353// require.Nilf(t, err, "error message %s", "formatted")
1354func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) {
1355 if h, ok := t.(tHelper); ok {
1356 h.Helper()
1357 }
1358 if assert.Nilf(t, object, msg, args...) {
1359 return
1360 }
1361 t.FailNow()
1362}
1363
1364// NoDirExists checks whether a directory does not exist in the given path.
1365// It fails if the path points to an existing _directory_ only.

Callers 1

NilfMethod · 0.70

Calls 3

NilfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected