Class SimpleCov::LinesClassifier
In: lib/simplecov/lines_classifier.rb
Parent: Object

Classifies whether lines are relevant for code coverage analysis. Comments & whitespace lines, and :nocov: token blocks, are considered not relevant.

Methods

Constants

RELEVANT = 0
NOT_RELEVANT = nil
WHITESPACE_LINE = /^\s*$/
COMMENT_LINE = /^\s*#/
WHITESPACE_OR_COMMENT_LINE = Regexp.union(WHITESPACE_LINE, COMMENT_LINE)

Public Class methods

Public Instance methods

[Validate]