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

Function countHarnesses

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

* Returns the number of matching harnesses for the given query within the current harness's * content. * * @param query The harness query to search for. * @returns The number of matching harnesses for the given query.

(query: HarnessQuery<T>)

Source from the content-addressed store, hash-verified

550 * @returns The number of matching harnesses for the given query.
551 */
552 async countHarnesses<T extends ComponentHarness>(query: HarnessQuery<T>): Promise<number> {
553 return (await this.getRootHarnessLoader()).countHarnesses(query);
554 }
555
556 /**
557 * Checks whether there is a matching harnesses for the given query within the current harness's

Callers

nothing calls this directly

Calls 2

countHarnessesMethod · 0.80
getRootHarnessLoaderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…