c

scoverage

RegexCoverageFilter

class RegexCoverageFilter extends CoverageFilter

Linear Supertypes
CoverageFilter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RegexCoverageFilter
  2. CoverageFilter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RegexCoverageFilter(excludedPackages: Seq[String], excludedFiles: Seq[String], excludedSymbols: Seq[String])

Value Members

  1. val excludedClassNamePatterns: Seq[Pattern]
  2. val excludedFilePatterns: Seq[Pattern]
  3. val excludedSymbolPatterns: Seq[Pattern]
  4. 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
    RegexCoverageFilterCoverageFilter
  5. 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
    RegexCoverageFilterCoverageFilter
  6. def isFileIncluded(file: SourceFile): Boolean
    Definition Classes
    RegexCoverageFilterCoverageFilter
  7. 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
    RegexCoverageFilterCoverageFilter
  8. def isSymbolIncluded(symbolName: String): Boolean
    Definition Classes
    RegexCoverageFilterCoverageFilter
  9. 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.

  10. final val scoverageExclusionCommentsRegex: Regex