Methods
(static) booleanLiteralsMutator()
Mutates boolean literals values. Boolean literals are mutated to their negative.
- Source:
(static) conditionalsBoundaryMutator()
The conditionals boundary mutator replaces the relational operators <, <=, >, >=
with their boundary counterpart.
(static) incrementsMutator()
Mutates increments (i++
) / decrements (i--
) statements to their counterparts.
- Source:
(static) invertNegativesMutator()
Mutates -a
to a
.
- Source:
(static) mathMutator()
Mutates math and bitwise operators to their inverse. The modulus operator %
and the exponential operator **
are mutated to multiplication *
.
- Source:
(static) negateConditionalsMutator()
Mutates conditionals to their inverse.
(static) numericLiteralsMutator()
Mutates numeric literals values. Numeric literals are mutated to value + 1, value - 1, random value, and 0 if not previously 0.
- Source:
(static) removeArrayElementsMutator()
Mutates array by removing single elements.
(static) removeConditionalsMutator()
Mutates equality conditionals (==, ===, !=, !==
) to both true
and false
literals
(static) removeFuncCallArgsMutator()
Mutates function calls removing single arguments.
(static) removeFuncDeclarationParamsMutator()
Mutates function declarations removing single parameters
(static) removeFunctionsMutator()
Mutates functions by commenting them
- Source:
(static) removeLinesMutator()
Mutator that comments single line statements
- Source:
(static) removeObjPropsMutator()
Mutates objects by removing single properties
- Source:
(static) removeSwitchCasesMutator()
Mutates switch statement by removing single cases
(static) stringLiteralsMutator()
Mutates string literals values. Strings are mutated to a random string, and to an empty string (if not previously empty).
- Source: