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

Method Conditionf

assert/assertion_forward.go:20–25  ·  view source on GitHub ↗

Conditionf uses a Comparison to assert a complex condition.

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ConditionfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected