2012-07-31 19:45:46 +02:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Literal
|
|
|
|
# Represent mutations on string literal
|
|
|
|
class String < Literal
|
|
|
|
|
|
|
|
handle(Rubinius::AST::StringLiteral)
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutants
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
emit_nil
|
2012-07-31 20:11:37 +02:00
|
|
|
emit_new { new_self(Random.hex_string) }
|
2012-07-31 19:45:46 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|