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

Function TestEqualWrapper

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

Source from the content-addressed store, hash-verified

32}
33
34func TestEqualWrapper(t *testing.T) {
35 require := New(t)
36 require.Equal(1, 1)
37
38 mockT := new(MockT)
39 mockRequire := New(mockT)
40 mockRequire.Equal(1, 2)
41 if !mockT.Failed {
42 t.Error("Check should fail")
43 }
44}
45
46func TestNotEqualWrapper(t *testing.T) {
47 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
EqualMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…