Class: Minitest::TestProf::EventProfFormatter
- Inherits:
-
Object
- Object
- Minitest::TestProf::EventProfFormatter
- Defined in:
- lib/minitest/event_prof_formatter.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(profilers) ⇒ EventProfFormatter
constructor
A new instance of EventProfFormatter.
- #prepare_results ⇒ Object
Constructor Details
#initialize(profilers) ⇒ EventProfFormatter
Returns a new instance of EventProfFormatter.
12 13 14 15 |
# File 'lib/minitest/event_prof_formatter.rb', line 12 def initialize(profilers) @profilers = profilers @results = [] end |
Instance Method Details
#prepare_results ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/minitest/event_prof_formatter.rb', line 17 def prepare_results @profilers.each do |profiler| total_results(profiler) by_groups(profiler) by_examples(profiler) end @results.join end |