Module: SimpleCov::UselessResultsRemover

Defined in:
lib/simplecov/useless_results_remover.rb

Overview

Select the files that related to working scope directory of SimpleCov

Constant Summary collapse

ROOT_REGX =
/\A#{Regexp.escape(SimpleCov.root + File::SEPARATOR)}/io.freeze

Class Method Summary collapse

Class Method Details

.call(coverage_result) ⇒ Object



10
11
12
13
14
# File 'lib/simplecov/useless_results_remover.rb', line 10

def self.call(coverage_result)
  coverage_result.select do |path, _coverage|
    path =~ ROOT_REGX
  end
end