class Swagcov::Coverage

def count_output

def count_output
  {
    ignored: "yellow",
    total: "blue",
    covered: "green",
    uncovered: "red"
  }.each do |key, color|
    count = @data[:"#{key}_count"]
    $stdout.puts(
      format(
        "%<status>s #{key} #{count == 1 ? 'endpoint' : 'endpoints'}",
        { status: count.to_s.send(color) }
      )
    )
  end
end