class Covered::Summary

def call(wrapper, output = $stdout)

A coverage array gives, for each line, the number of line execution by the interpreter. A nil value means coverage is disabled for this line (lines like else and end).
def call(wrapper, output = $stdout)
	terminal = self.terminal(output)
	
	statistics = self.each(wrapper) do |coverage|
		line_offset = 1
		
		path = wrapper.relative_path(coverage.path)
		terminal.puts ""
		terminal.puts path, style: :path
		
		counts = coverage.counts
		
		coverage.read do |file|
			print_line_header(terminal)
			
			file.each_line do |line|
				count = counts[line_offset]
				
				print_annotations(terminal, coverage, line, line_offset)
				
				print_line(terminal, line, line_offset, count)
				
				line_offset += 1
			end
		end
		
		coverage.print(output)
	end
	
	statistics.print(output)
end