Skip to content
mutastic

Policy

record in io.mutastic.api

record Policy(
List<Rule> rules,
List<Filter> filters,
List<Ignore> ignores,
List<String> operators,
List<Mutator> mutators)

A project’s own say over which mutants run: the mutants it ignores by id (from .mutastic/ignores.yaml), and from mutastic.yaml its rules, then filters of its own (found in its plugins, run only when named), after the built-in ones; which operators run, and the operators its plugins and rules files add.

Components

operatorswhich operators run, as --operators or operators: says: sets (defaults, stronger), operator ids (mutastic/arithmetic-replacement) and their namespaces (stream), any with a - in front to leave it out; none means defaults
mutatorsthe operators the project’s plugins and rules files add

Constants

NONE

static final Policy NONE

No rules, no filters and no ignores of the project’s own, and the default operators.

Constructors

Policy

Policy(List<Rule> rules, List<Filter> filters, List<Ignore> ignores)

Rules, filters and ignores, with the default operators.

Policy

Policy(List<Rule> rules, List<Filter> filters)

Rules and filters, ignoring nothing.

Methods

withIgnores

Policy withIgnores(List<Ignore> found)

The same, with these ignores.

withOperators

Policy withOperators(List<String> chosen, List<Mutator> added)

The same, with these operators chosen and these added.