coverage
coverage copied to clipboard
Apply `--scope-output` filters after `getSourceReport`
The --scope-output filters are passed to getSourceReport.libraryFilters, but there are cases where the report can contain ranges that bypass the filter. This happens when the range has a different library than their enclosing function/class (eg mixins).
To fix this we just need to re-apply the filters to the reported ranges. It's still important to pass the filters to getSourceReport, because these are pretty rare edge cases and the filtering is still a useful optimisation to reduce the size of the report.
Fixes #495