Method: SimpleCov::LinesClassifier#classify
- Defined in:
- lib/simplecov/lines_classifier.rb
#classify(lines) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/simplecov/lines_classifier.rb', line 33 def classify(lines) skipping = false lines.map do |line| if self.class.no_cov_line?(line) skipping = !skipping NOT_RELEVANT elsif skipping || self.class.whitespace_line?(line) NOT_RELEVANT else RELEVANT end end end |