lib/simplecov.rb
#
# Finds files that were to be tracked but were not loaded and initializes
# the line-by-line coverage to zero (if relevant) or nil (comments / whitespace etc).
#
Finds files that were to be tracked but were not loaded and initializes
the line-by-line coverage to zero (if relevant) or nil (comments / whitespace etc).
Finds files that were to be tracked but were not loaded and initializes the line - by - line coverage to zero ( if relevant ) or nil ( comments / whitespace etc ) .
def add_not_loaded_files(result)
      if tracked_files
        result = result.dup
        Dir[tracked_files].each do |file|
          absolute_path = File.expand_path(file)
          result[absolute_path] ||= SimulateCoverage.call(absolute_path)
        end
      end
      result
    end
def add_not_loaded_files ( result ) if tracked_files result = result . dup Dir [ tracked_files ] . each do | file | absolute_path = File . expand_path ( file ) result [ absolute_path ] ||= SimulateCoverage . call ( absolute_path ) end end result end
Finds files that were to be tracked but were not loaded and initializes
the line-by-line coverage to zero (if relevant) or nil (comments / whitespace etc).
Finds files that were to be tracked but were not loaded and initializes the line - by - line coverage to zero ( if relevant ) or nil ( comments / whitespace etc ) .
result