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

Function Nilf

assert/assertion_format.go:539–544  ·  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

537//
538// assert.Nilf(t, err, "error message %s", "formatted")
539func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
540 if h, ok := t.(tHelper); ok {
541 h.Helper()
542 }
543 return Nil(t, object, append([]interface{}{msg}, args...)...)
544}
545
546// NoDirExistsf checks whether a directory does not exist in the given path.
547// It fails if the path points to an existing _directory_ only.

Callers 2

NilfFunction · 0.92
NilfMethod · 0.70

Calls 2

NilFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected