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

Function TestConditionWrapper

internal/testify/assert/forward_assertions_test.go:223–235  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

221}
222
223func TestConditionWrapper(t *testing.T) {
224
225 assert := New(new(testing.T))
226
227 if !assert.Condition(func() bool { return true }, "Truth") {
228 t.Error("Condition should return true")
229 }
230
231 if assert.Condition(func() bool { return false }, "Lie") {
232 t.Error("Condition should return false")
233 }
234
235}
236
237func TestDidPanicWrapper(t *testing.T) {
238

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ConditionMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…