26 lines
466 B
Ruby
26 lines
466 B
Ruby
module Mutant
|
|
class Mutator
|
|
class Node
|
|
class Literal
|
|
# Mutator for string literals
|
|
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
|
|
end
|