Class: Slather::CoverallsCoverageFile
- Inherits:
-
CoverageFile
- Object
- CoverageFile
- Slather::CoverallsCoverageFile
- Defined in:
- lib/slather/coveralls_coverage_file.rb
Instance Attribute Summary
Attributes inherited from CoverageFile
Instance Method Summary collapse
Methods inherited from CoverageFile
#branch_coverage_data, #branch_coverage_data_for_statement_on_line, #cleaned_gcov_data, #coverage_for_line, #gcov_data, #ignored?, #initialize, #line_coverage_data, #num_branch_hits_for_statement_on_line, #num_branches_for_statement_on_line, #num_branches_testable, #num_branches_tested, #num_lines_testable, #num_lines_tested, #percentage_branch_coverage_for_statement_on_line, #percentage_lines_tested, #rate_branch_coverage_for_statement_on_line, #rate_branches_tested, #rate_lines_tested, #source_data, #source_file, #source_file_basename, #source_file_pathname, #source_file_pathname_relative_to_repo_root
Constructor Details
This class inherits a constructor from Slather::CoverageFile
Instance Method Details
#as_json ⇒ Object
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 => line_coverage_data } end |