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

Function TestEqualError

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

Source from the content-addressed store, hash-verified

220}
221
222func TestEqualError(t *testing.T) {
223
224 EqualError(t, errors.New("some error"), "some error")
225
226 mockT := new(MockT)
227 EqualError(mockT, errors.New("some error"), "Not some error")
228 if !mockT.Failed {
229 t.Error("Check should fail")
230 }
231}
232
233func TestEmpty(t *testing.T) {
234

Callers

nothing calls this directly

Calls 2

EqualErrorFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…