MCPcopy
hub / github.com/expr-lang/expr / TestContainsWrapper

Function TestContainsWrapper

internal/testify/require/forward_requirements_test.go:123–133  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestContainsWrapper(t *testing.T) {
124 require := New(t)
125 require.Contains("Hello World", "Hello")
126
127 mockT := new(MockT)
128 mockRequire := New(mockT)
129 mockRequire.Contains("Hello World", "Salut")
130 if !mockT.Failed {
131 t.Error("Check should fail")
132 }
133}
134
135func TestNotContainsWrapper(t *testing.T) {
136 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ContainsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…