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

Function Conditionf

internal/testify/require/require.go:25–33  ·  view source on GitHub ↗

Conditionf uses a Comparison to assert a complex condition.

(t TestingT, comp assert.Comparison, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

23
24// Conditionf uses a Comparison to assert a complex condition.
25func Conditionf(t TestingT, comp assert.Comparison, msg string, args ...interface{}) {
26 if h, ok := t.(tHelper); ok {
27 h.Helper()
28 }
29 if assert.Conditionf(t, comp, msg, args...) {
30 return
31 }
32 t.FailNow()
33}
34
35// Contains asserts that the specified string, list(array, slice...) or map contains the
36// specified substring or element.

Callers 1

ConditionfMethod · 0.70

Calls 3

ConditionfFunction · 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…