free_mutant/lib/mutant/mutator/noop.rb
Markus Schirp 9533a92bb7 Default to forking killer
* Remove rspec world preserving will never work correctly
* Add new unmutated nodes to noop mutators
2012-12-04 19:38:58 +01:00

50 lines
1.5 KiB
Ruby

module Mutant
class Mutator
# Mutator that does not do mutations on ast
class Noop < self
# Literal references to self do not need to be mutated.
handle(Rubinius::AST::Self)
# Some unimplemented mutations
handle(Rubinius::AST::NilLiteral)
handle(Rubinius::AST::Return)
handle(Rubinius::AST::ElementAssignment)
handle(Rubinius::AST::AttributeAssignment)
handle(Rubinius::AST::Not)
handle(Rubinius::AST::And)
handle(Rubinius::AST::Defined)
handle(Rubinius::AST::Super)
handle(Rubinius::AST::Match3)
handle(Rubinius::AST::ZSuper)
handle(Rubinius::AST::MultipleAssignment)
handle(Rubinius::AST::ScopedConstant)
handle(Rubinius::AST::LocalVariableAssignment)
handle(Rubinius::AST::LocalVariableAccess)
handle(Rubinius::AST::InstanceVariableAssignment)
handle(Rubinius::AST::InstanceVariableAccess)
handle(Rubinius::AST::GlobalVariableAssignment)
handle(Rubinius::AST::GlobalVariableAccess)
handle(Rubinius::AST::Ensure)
handle(Rubinius::AST::Rescue)
handle(Rubinius::AST::DynamicString)
handle(Rubinius::AST::DynamicSymbol)
handle(Rubinius::AST::DynamicRegex)
handle(Rubinius::AST::OpAssignOr19)
handle(Rubinius::AST::OpAssign1)
handle(Rubinius::AST::Or)
handle(Rubinius::AST::ConstantAccess)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
# noop
end
end
end
end