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

Function TestNil

require/requirements_test.go:119–129  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func TestNil(t *testing.T) {
120 t.Parallel()
121
122 Nil(t, nil)
123
124 mockT := new(MockT)
125 Nil(mockT, new(AssertionTesterConformingObject))
126 if !mockT.Failed {
127 t.Error("Check should fail")
128 }
129}
130
131func TestTrue(t *testing.T) {
132 t.Parallel()

Callers

nothing calls this directly

Calls 2

NilFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected