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

Function TestContainsWrapper

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

Source from the content-addressed store, hash-verified

153}
154
155func TestContainsWrapper(t *testing.T) {
156 t.Parallel()
157
158 require := New(t)
159 require.Contains("Hello World", "Hello")
160
161 mockT := new(MockT)
162 mockRequire := New(mockT)
163 mockRequire.Contains("Hello World", "Salut")
164 if !mockT.Failed {
165 t.Error("Check should fail")
166 }
167}
168
169func TestNotContainsWrapper(t *testing.T) {
170 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ContainsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected