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

Function TestErrorWrapper

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

Source from the content-addressed store, hash-verified

185}
186
187func TestErrorWrapper(t *testing.T) {
188 require := New(t)
189 require.Error(errors.New("some error"))
190
191 mockT := new(MockT)
192 mockRequire := New(mockT)
193 mockRequire.Error(nil)
194 if !mockT.Failed {
195 t.Error("Check should fail")
196 }
197}
198
199func TestErrorContainsWrapper(t *testing.T) {
200 require := New(t)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…