Class: Undercover::ResultHashFormatterWithRoot

Inherits:
SimpleCovJSONFormatter::ResultHashFormatter
  • Object
show all
Defined in:
lib/undercover/simplecov_formatter.rb

Instance Method Summary collapse

Instance Method Details

#formatObject



18
19
20
21
22
23
# File 'lib/undercover/simplecov_formatter.rb', line 18

def format
  formatted_result[:meta] = {timestamp: @result.created_at.to_i}
  format_files
  add_undercover_meta_fields
  formatted_result
end