Module: SimpleCov::Formatter::MultiFormatter::InstanceMethods

Defined in:
lib/simplecov/formatter/multi_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(result) ⇒ Object


7
8
9
10
11
12
13
14
15
16
# File 'lib/simplecov/formatter/multi_formatter.rb', line 7

def format(result)
  formatters.map do |formatter|
    begin
      formatter.new.format(result)
    rescue StandardError => e
      warn("Formatter #{formatter} failed with #{e.class}: #{e.message} (#{e.backtrace.first})")
      nil
    end
  end
end