MCPcopy Index your code
hub / github.com/expr-lang/expr / TestContains

Function TestContains

internal/testify/require/requirements_test.go:141–150  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

139}
140
141func TestContains(t *testing.T) {
142
143 Contains(t, "Hello World", "Hello")
144
145 mockT := new(MockT)
146 Contains(mockT, "Hello World", "Salut")
147 if !mockT.Failed {
148 t.Error("Check should fail")
149 }
150}
151
152func TestNotContains(t *testing.T) {
153

Callers

nothing calls this directly

Calls 2

ContainsFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…