MCPcopy
hub / github.com/angular/components / evaluate

Method evaluate

src/cdk/testing/component-harness.ts:692–695  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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() {

Callers 2

filterMethod · 0.95

Calls 1

parallelFunction · 0.90

Tested by

no test coverage detected