Skip to content
mutastic

BuiltIn

enum in io.mutastic.api

enum BuiltIn implements Operator

mutastic’s own operators. How each finds its sites and rewrites them is the engine’s.

Constants

BOUNDARY

BOUNDARY

NEGATE_CONDITIONAL

NEGATE_CONDITIONAL

In stronger, not defaults: a test that catches it can still leave both of REMOVE_CONDITIONAL’s mutants alive, and not the other way round, so in the defaults its catches only add to the score. PIT made the same change in 1.7.2.

MATH

MATH

RETURN_DEFAULT

RETURN_DEFAULT

REMOVE_VOID_CALL

REMOVE_VOID_CALL

REMOVE_CONDITIONAL

REMOVE_CONDITIONAL

ARITHMETIC_REPLACEMENT

ARITHMETIC_REPLACEMENT

Methods

id

String id()

explanation

String explanation()

onCalls

boolean onCalls()

tier

Operator.Tier tier()

first

boolean first()

One of the first five, whose mutants’ ids were fixed before operators were open: their ids leave the operator out, and stay as they were. Every other operator’s put it in.