MCPcopy
hub / github.com/stretchr/testify / Conditionf

Function Conditionf

assert/assertion_format.go:12–17  ·  assert/assertion_format.go::Conditionf

Conditionf uses a Comparison to assert a complex condition.

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

Source from the content-addressed store, hash-verified

10
11// Conditionf uses a Comparison to assert a complex condition.
12func Conditionf(t TestingT, comp Comparison, msg string, args ...interface{}) bool {
13 if h, ok := t.(tHelper); ok {
14 h.Helper()
15 }
16 return Condition(t, comp, append([]interface{}{msg}, args...)...)
17}
18
19// Containsf asserts that the specified string, list(array, slice...) or map contains the
20// specified substring or element.

Callers 2

ConditionfFunction · 0.92
ConditionfMethod · 0.70

Calls 2

ConditionFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected