MCPcopy
hub / github.com/expr-lang/expr / Condition

Function Condition

internal/testify/require/require.go:14–22  ·  view source on GitHub ↗

Condition uses a Comparison to assert a complex condition.

(t TestingT, comp assert.Comparison, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

12
13// Condition uses a Comparison to assert a complex condition.
14func Condition(t TestingT, comp assert.Comparison, msgAndArgs ...interface{}) {
15 if h, ok := t.(tHelper); ok {
16 h.Helper()
17 }
18 if assert.Condition(t, comp, msgAndArgs...) {
19 return
20 }
21 t.FailNow()
22}
23
24// Conditionf uses a Comparison to assert a complex condition.
25func Conditionf(t TestingT, comp assert.Comparison, msg string, args ...interface{}) {

Callers 1

ConditionMethod · 0.70

Calls 3

ConditionFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…