MCPcopy Create free account
hub / github.com/expr-lang/expr / TestError

Function TestError

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

Source from the content-addressed store, hash-verified

198}
199
200func TestError(t *testing.T) {
201
202 Error(t, errors.New("some error"))
203
204 mockT := new(MockT)
205 Error(mockT, nil)
206 if !mockT.Failed {
207 t.Error("Check should fail")
208 }
209}
210
211func TestErrorContains(t *testing.T) {
212

Callers

nothing calls this directly

Calls 2

ErrorFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…