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

Method Conditionf

require/require_forward.go:21–26  ·  view source on GitHub ↗

Conditionf uses a Comparison to assert a complex condition.

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

Source from the content-addressed store, hash-verified

19
20// Conditionf uses a Comparison to assert a complex condition.
21func (a *Assertions) Conditionf(comp assert.Comparison, msg string, args ...interface{}) {
22 if h, ok := a.t.(tHelper); ok {
23 h.Helper()
24 }
25 Conditionf(a.t, comp, msg, args...)
26}
27
28// Contains asserts that the specified string, list(array, slice...) or map contains the
29// specified substring or element.

Callers

nothing calls this directly

Calls 2

ConditionfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected