Method: Uncov::Formatter::Terminal#output_line

Defined in:
lib/plugins/uncov/formatter/terminal.rb

#output_line(line, max) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/plugins/uncov/formatter/terminal.rb', line 53

def output_line(line, max)
  if line.uncov?
    puts format_line(line, max).red
  elsif line.context
    puts format_line(line, max).green
  elsif line.nocov_covered?
    puts format_line(line, max).blue
  else
    # :nocov:
    raise 'unknown display line' # unreachable code
    # :nocov:
  end
end