Method: Slather::CoverageFile#all_lines

Defined in:
lib/slather/coverage_file.rb

#all_linesObject



62
63
64
65
66
67
68
69
# File 'lib/slather/coverage_file.rb', line 62

def all_lines
  unless cleaned_gcov_data.empty?
    first_line_start = cleaned_gcov_data =~ /^\s+(-|#+|[0-9+]):\s+1:/
    cleaned_gcov_data[first_line_start..-1].split("\n").map
  else
    []
  end
end