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

Method Nil

require/require_forward.go:1065–1070  ·  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

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

Callers 1

TestNilWrapperFunction · 0.45

Calls 2

NilFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestNilWrapperFunction · 0.36