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

Method Condition

require/require_forward.go:13–18  ·  view source on GitHub ↗

Condition uses a Comparison to assert a complex condition.

(comp assert.Comparison, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

11
12// Condition uses a Comparison to assert a complex condition.
13func (a *Assertions) Condition(comp assert.Comparison, msgAndArgs ...interface{}) {
14 if h, ok := a.t.(tHelper); ok {
15 h.Helper()
16 }
17 Condition(a.t, comp, msgAndArgs...)
18}
19
20// Conditionf uses a Comparison to assert a complex condition.
21func (a *Assertions) Conditionf(comp assert.Comparison, msg string, args ...interface{}) {

Callers

nothing calls this directly

Calls 2

ConditionFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected