rooibos/Coverage
- Source:
Methods
(static) createLCovOutput(coverageResults, logToConsoleopt) → {string}
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
coverageResults |
dynamic | |||
logToConsole |
boolean |
<optional> |
true
|
Returns:
- Type
- string
(static) printCoverageCounts(coverageResults) → {dynamic}
- Description:
Prints the condensed hit-counts stream consumed by the rooibos CLI whenever code coverage is recorded. One JSON line per file that recorded any hits, sparse (zero counts omitted), with every count keyed by its INDEX into the corresponding array of components/rooibos/CodeCoverage.json - the CLI re-reads that file from the built package and joins the two. The static model never changes order at runtime (hits are incremented in place), so index alignment is guaranteed. This stream is a fraction of the lcov payload, so it doesn't flood the console.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
coverageResults |
dynamic |
Returns:
- Type
- dynamic
(static) printLCovInfo(coverageResults) → {dynamic}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
coverageResults |
dynamic |
Returns:
- Type
- dynamic
(static) reportCodeCoverage(coverageResults) → {void}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
coverageResults |
dynamic |
Returns:
- Type
- void
(static) saveResults() → {dynamic}
- Source:
Returns:
- Type
- dynamic