Skip to content
mutastic

Ignore

record in io.mutastic.api

record Ignore(
String id,
String code,
String reason,
String kind)

A mutant the project has decided not to test, by id, from .mutastic/ignores.yaml: written by mutastic ignore, committed, and reviewed like code.

Components

codethe source line the mutant was on, trimmed, when it was ignored: once the line changes, the decision no longer holds and the mutant runs again
kindwhat sort of decision it is, one of KINDS, or empty when it doesn’t say

Constants

KINDS

static final List<String> KINDS

The sorts of decision: the change can’t be told apart, its case can’t happen in practice, it only feeds logs or metrics, the code is on its way out, or the risk is accepted. Counted apart, so what the ignores hide can be reviewed by sort.

Constructors

Ignore

Ignore(String id, String code, String reason)

A decision that doesn’t say its sort.

Methods

skipReason

String skipReason()

user: unreachable: totals are rounded (ignored): the skip reason its mutant gets.

holdsFor

boolean holdsFor(String line)

Whether the decision still holds for the line as it is now.