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

Function TestExactlyWrapper

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

Source from the content-addressed store, hash-verified

56}
57
58func TestExactlyWrapper(t *testing.T) {
59 require := New(t)
60
61 a := float32(1)
62 b := float32(1)
63 c := float64(1)
64
65 require.Exactly(a, b)
66
67 mockT := new(MockT)
68 mockRequire := New(mockT)
69 mockRequire.Exactly(a, c)
70 if !mockT.Failed {
71 t.Error("Check should fail")
72 }
73}
74
75func TestNotNilWrapper(t *testing.T) {
76 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ExactlyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…