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

Function TestFalseWrapper

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

Source from the content-addressed store, hash-verified

139}
140
141func TestFalseWrapper(t *testing.T) {
142 t.Parallel()
143
144 require := New(t)
145 require.False(false)
146
147 mockT := new(MockT)
148 mockRequire := New(mockT)
149 mockRequire.False(true)
150 if !mockT.Failed {
151 t.Error("Check should fail")
152 }
153}
154
155func TestContainsWrapper(t *testing.T) {
156 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
FalseMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected