Class: Uncov::Finder::GitDiff
- Inherits:
-
Object
- Object
- Uncov::Finder::GitDiff
- Includes:
- GitBase
- Defined in:
- lib/uncov/finder/git_diff.rb
Overview
collect list of changed files and their added lines (removed do not impact coverage)
Instance Method Summary collapse
Instance Method Details
#code_files ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/uncov/finder/git_diff.rb', line 10 def code_files cache(:code_files) do all_files_diff.filter_map do |file_diff| [file_diff.path, changed_lines(file_diff)] if relevant_code_file?(file_diff.path) && File.exist?(file_diff.path) end.to_h end end |
#simplecov_trigger_files ⇒ Object
18 19 20 |
# File 'lib/uncov/finder/git_diff.rb', line 18 def simplecov_trigger_files code_files.keys + test_files end |