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

Function TestTrueWrapper

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

Source from the content-addressed store, hash-verified

125}
126
127func TestTrueWrapper(t *testing.T) {
128 t.Parallel()
129
130 require := New(t)
131 require.True(true)
132
133 mockT := new(MockT)
134 mockRequire := New(mockT)
135 mockRequire.True(false)
136 if !mockT.Failed {
137 t.Error("Check should fail")
138 }
139}
140
141func TestFalseWrapper(t *testing.T) {
142 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
TrueMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected