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

Function TestNilWrapper

require/forward_requirements_test.go:113–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

111}
112
113func TestNilWrapper(t *testing.T) {
114 t.Parallel()
115
116 require := New(t)
117 require.Nil(nil)
118
119 mockT := new(MockT)
120 mockRequire := New(mockT)
121 mockRequire.Nil(new(AssertionTesterConformingObject))
122 if !mockT.Failed {
123 t.Error("Check should fail")
124 }
125}
126
127func TestTrueWrapper(t *testing.T) {
128 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NilMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected