![Markus Schirp](/assets/img/avatar_default.png)
* This is in progress code. The plan is to support all literals before beginning to cleanup and dedup the mutation generation. Have to understand the AST and the possible mutations more in depth before making structural decisions here.
18 lines
399 B
Ruby
18 lines
399 B
Ruby
module Mutant
|
|
class Mutator
|
|
# Represent mutations on symbol literal
|
|
class SymbolLiteral < Mutator
|
|
private
|
|
# Append mutants
|
|
#
|
|
# @param [#<<] generator
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
def mutants(generator)
|
|
generator << new_nil
|
|
generator << new(Rubinius::AST::SymbolLiteral,Mutant.random_hex_string.to_sym)
|
|
end
|
|
end
|
|
end
|
|
end
|