free_mutant/lib/mutant/mutator/literal/string.rb
2012-08-09 23:07:22 +02:00

24 lines
419 B
Ruby

module Mutant
class Mutator
class Literal
# Represent mutations on string literal
class String < self
handle(Rubinius::AST::StringLiteral)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit_new { new_self(Random.hex_string) }
end
end
end
end
end