CustomPredicate checks a custom predicate.
(predicate AssertPredicate)
| 171 | |
| 172 | // CustomPredicate checks a custom predicate. |
| 173 | func CustomPredicate(predicate AssertPredicate) RxAssert { |
| 174 | return newAssertion(func(a *rxAssert) { |
| 175 | if !a.checkHasCustomPredicate { |
| 176 | a.checkHasCustomPredicate = true |
| 177 | a.customPredicates = make([]AssertPredicate, 0) |
| 178 | } |
| 179 | a.customPredicates = append(a.customPredicates, predicate) |
| 180 | }) |
| 181 | } |
| 182 | |
| 183 | func parseAssertions(assertions ...RxAssert) RxAssert { |
| 184 | ass := new(rxAssert) |
searching dependent graphs…