BeamPosition.java

1
package com.rox.debug;
2
3
/**
4
 * Where the PPU is drawing: scanline 0-261 (0-239 visible, 241 starts vblank, 261 is the pre-render line) and dot
5
 * 0-340 along it.
6
 */
7
public record BeamPosition(int scanline, int dot) {
8
    /** For a hit recorded without a PPU to ask. */
9
    public static final BeamPosition UNKNOWN = new BeamPosition(-1, -1);
10
11
    public boolean isKnown(){
12 2 1. isKnown : negated conditional → KILLED
2. isKnown : replaced boolean return with true for com/rox/debug/BeamPosition::isKnown → KILLED
        return !equals(UNKNOWN);
13
    }
14
}

Mutations

12

1.1
Location : isKnown
Killed by : com.rox.debug.cpu.CpuStateTextTest.[engine:junit-jupiter]/[class:com.rox.debug.cpu.CpuStateTextTest]/[method:hitSaysWhereTheBeamWasWhenKnown()]
negated conditional → KILLED

2.2
Location : isKnown
Killed by : com.rox.debug.cpu.CpuStateTextTest.[engine:junit-jupiter]/[class:com.rox.debug.cpu.CpuStateTextTest]/[method:hitSaysWhatStoppedTheEmulation()]
replaced boolean return with true for com/rox/debug/BeamPosition::isKnown → KILLED

Active mutators

Tests examined


Report generated by PIT 1.22.1