Class: OpenapiFirst::Test::Coverage::TerminalFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_first/test/coverage/terminal_formatter.rb

Overview

This is the default formatter

Instance Method Summary collapse

Instance Method Details

#format(coverage_result) ⇒ Object

This takes a list of Coverage::Plan instances and outputs a String



9
10
11
12
13
# File 'lib/openapi_first/test/coverage/terminal_formatter.rb', line 9

def format(coverage_result)
  @out = StringIO.new
  coverage_result.plans.each { |plan| format_plan(plan) }
  @out.string
end