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

Function TestTrueWrapper

assert/forward_assertions_test.go:97–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestTrueWrapper(t *testing.T) {
98 t.Parallel()
99
100 assert := New(new(testing.T))
101
102 if !assert.True(true) {
103 t.Error("True should return true")
104 }
105 if assert.True(false) {
106 t.Error("True should return false")
107 }
108
109}
110
111func TestFalseWrapper(t *testing.T) {
112 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
TrueMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected