Class: Mutant::Killer::Static

Inherits:
Mutant::Killer show all
Defined in:
lib/mutant/killer/static.rb

Overview

Abstract base class for killer with static result

Direct Known Subclasses

Fail, Success

Defined Under Namespace

Classes: Fail, Success

Instance Attribute Summary

Attributes inherited from Mutant::Killer

#mutation, #runtime, #strategy

Instance Method Summary collapse

Methods inherited from Mutant::Killer

#fail?, #identification, #mutation_source, #original_source, type, #type

Instance Method Details

#runtrue, false

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.

Return result

Returns:

  • (true)

    if mutation was killed

  • (false)

    otherwise



16
17
18
# File 'lib/mutant/killer/static.rb', line 16

def run
  self.class::RESULT
end