* Evaluates whether the given harness satisfies this predicate. * @param harness The harness to check * @return A promise that resolves to true if the harness satisfies this predicate, * and resolves to false otherwise.
(harness: T)
| 690 | * and resolves to false otherwise. |
| 691 | */ |
| 692 | async evaluate(harness: T): Promise<boolean> { |
| 693 | const results = await parallel(() => this._predicates.map(p => p(harness))); |
| 694 | return results.reduce((combined, current) => combined && current, true); |
| 695 | } |
| 696 | |
| 697 | /** Gets a description of this predicate for use in error messages. */ |
| 698 | getDescription() { |
no test coverage detected