free_mutant/lib/mutant/mutator/node/literal/string.rb

30 lines
507 B
Ruby
Raw Normal View History

# encoding: utf-8
module Mutant
class Mutator
class Node
class Literal
# Mutator for string literals
class String < self
handle(:str)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit_new { new_self(Random.hex_string) }
end
end # String
end # Literal
end # Node
end # Mutator
end # Mutant