Method: SimpleCov::ResultAdapter#adapt
- Defined in:
- lib/simplecov/result_adapter.rb
#adapt ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/simplecov/result_adapter.rb', line 18 def adapt return unless result result.each_with_object({}) do |(file_name, cover_statistic), adapted_result| if cover_statistic.is_a?(Array) adapted_result.merge!(file_name => {"lines" => cover_statistic}) else adapted_result.merge!(file_name => cover_statistic) end end end |