Checks the given sourceFile for any magic comments which exclude lines from coverage.
Checks the given sourceFile for any magic comments which exclude lines from coverage. Returns a list of Ranges of lines that should be excluded.
The line numbers returned are conventional 1-based line numbers (i.e. the first line is line number 1)
True if the given className has not been excluded by the
excludedPackages
option.
True if the line containing position
has not been excluded by a magic comment.
We cache the excluded ranges to avoid scanning the source code files repeatedly.
We cache the excluded ranges to avoid scanning the source code files repeatedly. For a large project there might be a lot of source code data, so we only hold a weak reference.
Methods related to filtering the instrumentation and coverage.