6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/evilution/mutator/registry.rb', line 6
def self.default
registry = new
[
Operator::ComparisonReplacement,
Operator::ArithmeticReplacement,
Operator::BooleanOperatorReplacement,
Operator::BooleanLiteralReplacement,
Operator::NilReplacement,
Operator::IntegerLiteral,
Operator::FloatLiteral,
Operator::StringLiteral,
Operator::ArrayLiteral,
Operator::HashLiteral,
Operator::SymbolLiteral,
Operator::ConditionalNegation,
Operator::ConditionalBranch,
Operator::StatementDeletion,
Operator::MethodBodyReplacement,
Operator::NegationInsertion,
Operator::ReturnValueRemoval,
Operator::CollectionReplacement,
Operator::MethodCallRemoval,
Operator::ArgumentRemoval,
Operator::BlockRemoval,
Operator::ConditionalFlip,
Operator::RangeReplacement,
Operator::RegexpMutation,
Operator::ReceiverReplacement,
Operator::SendMutation,
Operator::ArgumentNilSubstitution
].each { |op| registry.register(op) }
registry
end
|