IReportedMutant
One mutant of a report, as far as a verdict reads it.
Properties
Section titled “Properties”
readonlyfile:string
The report’s key for the file: its path relative to the package Stryker ran in.
lineAfter
Section titled “lineAfter”
readonlylineAfter:string|null
The nearest non-blank line below that line, trimmed; empty at the end of the file.
lineBefore
Section titled “lineBefore”
readonlylineBefore:string|null
The nearest non-blank line above that line, trimmed; empty at the top of the file.
readonlylines: {end:number;start:number; } |null
1-based first and last line, or null when the report gives the mutant no location.
mutatorName
Section titled “mutatorName”
readonlymutatorName:string
replacement
Section titled “replacement”
readonlyreplacement:string|null
The code the mutant put in place of the original, when the report carries it.
sourceLine
Section titled “sourceLine”
readonlysourceLine:string|null
The text of the mutant’s first line in the report’s copy of the file, trimmed, when it has one.
static
Section titled “static”
readonlystatic:boolean
Runs once, when its module is imported: no single test covers it (ignoreStatic ignores these).
status
Section titled “status”
readonlystatus:TallyField
statusReason
Section titled “statusReason”
readonlystatusReason:string|null
Stryker’s note on the status: why a mutant was ignored, which limit a timeout hit.
testsCompleted
Section titled “testsCompleted”
readonlytestsCompleted:number|null