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

Method Nil

assert/assertion_forward.go:1064–1069  ·  view source on GitHub ↗

Nil asserts that the specified object is nil. a.Nil(err)

(object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1062//
1063// a.Nil(err)
1064func (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{}) bool {
1065 if h, ok := a.t.(tHelper); ok {
1066 h.Helper()
1067 }
1068 return Nil(a.t, object, msgAndArgs...)
1069}
1070
1071// Nilf asserts that the specified object is nil.
1072//

Callers 1

TestNilWrapperFunction · 0.45

Calls 2

NilFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNilWrapperFunction · 0.36