Runtime coverage unavailable
What a runtime-coverage-unavailable finding of fallow health means, why it matters and how to fix it.
What it reports
Runtime coverage could not be resolved for this function.
Runtime coverage explains how fallow finds it.
Why it matters
fallow has no runtime data for the function, so it cannot tell if production runs it. A decision to delete or keep the function has no runtime evidence.
Example
renderChart runs in a worker thread, so the capture of the main process has no coverage entry for it.
Fix
Capture coverage in the worker too, or check that the source maps map the bundle to the source file. Do not delete code because of this finding.
Facts
| Fact | Value |
|---|---|
| Issue type | runtime-coverage-unavailable |
| Rule id in SARIF output | fallow/runtime-coverage-unavailable |
| Command | fallow health |
Fixable with fallow fix | No |
Note. Requires --runtime-coverage input (V8 directory, V8 JSON, or Istanbul map).