Module: Mutineer::ChildCoverage::StopBeforeStart
- Defined in:
- lib/mutineer/child_coverage.rb
Overview
Prepended to Coverage's singleton class in the child: stops a suspended Coverage before a start or setup.
Instance Method Summary collapse
-
#setup ⇒ nil
Stops a suspended Coverage, then sets it up.
-
#start ⇒ nil
Stops a suspended Coverage, then starts it.
Instance Method Details
#setup ⇒ nil
Stops a suspended Coverage, then sets it up.
27 28 29 30 |
# File 'lib/mutineer/child_coverage.rb', line 27 def setup(...) result(stop: true, clear: true) if state == :suspended super end |
#start ⇒ nil
Stops a suspended Coverage, then starts it.
35 36 37 38 |
# File 'lib/mutineer/child_coverage.rb', line 35 def start(...) result(stop: true, clear: true) if state == :suspended super end |