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

Function Conditionf

require/require.go:24–32  ·  require/require.go::Conditionf

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

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

Callers 1

ConditionfMethod · 0.70

Calls 3

ConditionfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected