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

Function TestTrueWrapper

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

Source from the content-addressed store, hash-verified

97}
98
99func TestTrueWrapper(t *testing.T) {
100 require := New(t)
101 require.True(true)
102
103 mockT := new(MockT)
104 mockRequire := New(mockT)
105 mockRequire.True(false)
106 if !mockT.Failed {
107 t.Error("Check should fail")
108 }
109}
110
111func TestFalseWrapper(t *testing.T) {
112 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
TrueMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…