File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,7 @@ def format(result)
3737 puts output_message ( result )
3838 end
3939
40- def output_message ( result )
41- output = "Coverage report generated for #{ result . command_name } to #{ output_path } ."
42- output += "\n Line Coverage: #{ result . covered_percent . round ( 2 ) } % (#{ result . covered_lines } / #{ result . total_lines } )"
43- output += "\n Branch Coverage: #{ result . coverage_statistics [ :branch ] . percent . round ( 2 ) } % (#{ result . covered_branches } / #{ result . total_branches } )" if branchable_result?
44- output
45- end
40+ private
4641
4742 def branchable_result?
4843 # cached in initialize because we truly look it up a whole bunch of times
@@ -59,7 +54,12 @@ def line_status?(source_file, line)
5954 end
6055 end
6156
62- private
57+ def output_message ( result )
58+ output = "Coverage report generated for #{ result . command_name } to #{ output_path } ."
59+ output += "\n Line Coverage: #{ result . covered_percent . round ( 2 ) } % (#{ result . covered_lines } / #{ result . total_lines } )"
60+ output += "\n Branch Coverage: #{ result . coverage_statistics [ :branch ] . percent . round ( 2 ) } % (#{ result . covered_branches } / #{ result . total_branches } )" if branchable_result?
61+ output
62+ end
6363
6464 # Returns the an erb instance for the template of given name
6565 def template ( name )
You can’t perform that action at this time.
0 commit comments