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