class RegexCoverageFilter extends CoverageFilter
- Alphabetic
- By Inheritance
- RegexCoverageFilter
- CoverageFilter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RegexCoverageFilter(excludedPackages: Seq[String], excludedFiles: Seq[String], excludedSymbols: Seq[String])
Value Members
- val excludedClassNamePatterns: Seq[Pattern]
- val excludedFilePatterns: Seq[Pattern]
- val excludedSymbolPatterns: Seq[Pattern]
- def getExcludedLineNumbers(sourceFile: SourceFile): List[Range]
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)
- Definition Classes
- RegexCoverageFilter → CoverageFilter
- def isClassIncluded(className: String): Boolean
True if the given className has not been excluded by the
excludedPackages
option.True if the given className has not been excluded by the
excludedPackages
option.- Definition Classes
- RegexCoverageFilter → CoverageFilter
- def isFileIncluded(file: SourceFile): Boolean
- Definition Classes
- RegexCoverageFilter → CoverageFilter
- def isLineIncluded(position: Position): Boolean
True if the line containing
position
has not been excluded by a magic comment.True if the line containing
position
has not been excluded by a magic comment.- Definition Classes
- RegexCoverageFilter → CoverageFilter
- def isSymbolIncluded(symbolName: String): Boolean
- Definition Classes
- RegexCoverageFilter → CoverageFilter
- val linesExcludedByScoverageCommentsCache: Map[SourceFile, List[Range]]
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.
- final val scoverageExclusionCommentsRegex: Regex