MCPcopy Index your code
hub / github.com/angular/components / _getCellPredicate

Function _getCellPredicate

src/material/table/testing/cell-harness.ts:42–53  ·  view source on GitHub ↗
(
    type: ComponentHarnessConstructor<T>,
    options: CellHarnessFilters,
  )

Source from the content-addressed store, hash-verified

40 }
41
42 protected static _getCellPredicate<T extends MatCellHarness>(
43 type: ComponentHarnessConstructor<T>,
44 options: CellHarnessFilters,
45 ): HarnessPredicate<T> {
46 return new HarnessPredicate(type, options)
47 .addOption('text', options.text, (harness, text) =>
48 HarnessPredicate.stringMatches(harness.getText(), text),
49 )
50 .addOption('columnName', options.columnName, (harness, name) =>
51 HarnessPredicate.stringMatches(harness.getColumnName(), name),
52 );
53 }
54}
55
56/** Harness for interacting with an Angular Material table cell. */

Callers

nothing calls this directly

Calls 3

addOptionMethod · 0.80
stringMatchesMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected