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

Method Nilf

assert/assertion_forward.go:1074–1079  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1072//
1073// a.Nilf(err, "error message %s", "formatted")
1074func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) bool {
1075 if h, ok := a.t.(tHelper); ok {
1076 h.Helper()
1077 }
1078 return Nilf(a.t, object, msg, args...)
1079}
1080
1081// NoDirExists checks whether a directory does not exist in the given path.
1082// It fails if the path points to an existing _directory_ only.

Callers

nothing calls this directly

Calls 2

NilfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected