Class: Undercover::UndercoverSimplecovFormatter

Inherits:
SimpleCov::Formatter::JSONFormatter
  • Object
show all
Defined in:
lib/undercover/simplecov_formatter.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.output_filenameObject

Returns the value of attribute output_filename.



45
46
47
# File 'lib/undercover/simplecov_formatter.rb', line 45

def output_filename
  @output_filename
end

Instance Method Details

#format_result(result) ⇒ Object



48
49
50
51
# File 'lib/undercover/simplecov_formatter.rb', line 48

def format_result(result)
  result_hash_formater = ResultHashFormatterWithRoot.new(result)
  result_hash_formater.format
end