Class: Mutant::Strategy

Inherits:
Object
  • Object
show all
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

Rspec

Defined Under Namespace

Classes: Rspec

Instance Method Summary collapse

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

Parameters:

Returns:



37
38
39
# File 'lib/mutant/strategy.rb', line 37

def kill(mutation)
  killer.new(self, mutation)
end

#setupself

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

Returns:

  • (self)


15
16
17
# File 'lib/mutant/strategy.rb', line 15

def setup
  self
end

#teardownself

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

Returns:

  • (self)


25
26
27
# File 'lib/mutant/strategy.rb', line 25

def teardown
  self
end