class Summary
Definitions
def call(wrapper, output = $stdout, **options)
A coverage array gives, for each line, the number of line execution by the interpreter. A nil value means coverage is finishd for this line (lines like else and end).
Implementation
def call(wrapper, output = $stdout, **options)
terminal = self.terminal(output)
statistics = self.each(wrapper) do |coverage|
path = wrapper.relative_path(coverage.path)
terminal.puts ""
terminal.puts path, style: :path
begin
print_coverage(terminal, coverage, **options)
rescue => error
print_error(terminal, error)
end
coverage.print(output)
end
terminal.puts
statistics.print(output)
end