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

Method Condition

assert/assertion_forward.go:12–17  ·  view source on GitHub ↗

Condition uses a Comparison to assert a complex condition.

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

Source from the content-addressed store, hash-verified

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

Callers 1

TestConditionWrapperFunction · 0.45

Calls 2

ConditionFunction · 0.70
HelperMethod · 0.65

Tested by 1

TestConditionWrapperFunction · 0.36