Class: Slather::CoverallsCoverageFile

Inherits:
CoverageFile show all
Defined in:
lib/slather/coveralls_coverage_file.rb

Instance Attribute Summary

Attributes inherited from CoverageFile

#gcno_file_pathname, #project

Instance Method Summary collapse

Methods inherited from CoverageFile

#coverage_data, #coverage_for_line, #gcov_data, #ignored?, #initialize, #num_lines_testable, #num_lines_tested, #percentage_lines_tested, #source_data, #source_file, #source_file_pathname, #source_file_pathname_relative_to_repo_root

Constructor Details

This class inherits a constructor from Slather::CoverageFile

Instance Method Details

#as_jsonObject



4
5
6
7
8
9
10
# File 'lib/slather/coveralls_coverage_file.rb', line 4

def as_json
  {
    :name => source_file_pathname_relative_to_repo_root.to_s,
    :source => source_data,
    :coverage => coverage_data
  }
end