Method: Coverband::Utils::HTMLFormatter#format_source_file!

Defined in:
lib/coverband/utils/html_formatter.rb

#format_source_file!(filename) ⇒ Object



42
43
44
45
46
47
48
49
50
# File 'lib/coverband/utils/html_formatter.rb', line 42

def format_source_file!(filename)
  source_file = @coverage_result.file_from_path_with_type(filename)

  if source_file
    formatted_source_file(@coverage_result, source_file)
  else
    "File No Longer Available"
  end
end