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