Module: Uncov::Report::Filters::NocovLines
- Defined in:
- lib/plugins/uncov/report/filters/nocov_lines.rb
Overview
report only files lines from the diff
Class Method Summary collapse
Class Method Details
.description ⇒ Object
6 |
# File 'lib/plugins/uncov/report/filters/nocov_lines.rb', line 6 def description = 'Report coverage on nocov lines, requires one or both: --nocov-ignore / --nocov-covered' |
.files(finder) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/plugins/uncov/report/filters/nocov_lines.rb', line 9 def files(finder) finder.nocov_files.file_names.filter_map do |file_name| next if finder.nocov_files.lines(file_name).empty? Uncov::Report::File.new( file_name:, git: finder.git_files.file?(file_name), lines: lines(finder, file_name) ) end end |
.simplecov_trigger ⇒ Object
7 |
# File 'lib/plugins/uncov/report/filters/nocov_lines.rb', line 7 def simplecov_trigger = :file_system |