123456789_123456789_123456789_123456789_123456789_

Module: SimpleCov::UselessResultsRemover

Relationships & Source Files
Defined in: lib/simplecov/useless_results_remover.rb

Overview

Select the files that related to working scope directory of ::SimpleCov

Class Method Summary

Class Method Details

.call(coverage_result)

[ GitHub ]

  
# File 'lib/simplecov/useless_results_remover.rb', line 8

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

.root_regx

[ GitHub ]

  
# File 'lib/simplecov/useless_results_remover.rb', line 14

def self.root_regx
  @root_regx ||= /\A#{Regexp.escape(SimpleCov.root + File::SEPARATOR)}/i.freeze
end