Class: Mutant::Strategy
- Inherits:
-
Object
- Object
- Mutant::Strategy
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/strategy.rb,
lib/mutant/strategy/rspec.rb
Overview
Abstract base class for killing strategies
Direct Known Subclasses
Defined Under Namespace
Classes: Rspec
Instance Method Summary collapse
-
#kill(mutation) ⇒ Killer
private
Kill mutation.
-
#setup ⇒ self
private
Perform strategy setup.
-
#teardown ⇒ self
private
Perform strategy teardown.
Instance Method Details
#kill(mutation) ⇒ Killer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Kill mutation
37 38 39 |
# File 'lib/mutant/strategy.rb', line 37 def kill(mutation) killer.new(self, mutation) end |
#setup ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform strategy setup
15 16 17 |
# File 'lib/mutant/strategy.rb', line 15 def setup self end |
#teardown ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform strategy teardown
25 26 27 |
# File 'lib/mutant/strategy.rb', line 25 def teardown self end |