WatchKind.java

1
package com.rox.debug.breakpoints;
2
3
/** Which CPU accesses a watchpoint catches. */
4
public enum WatchKind {
5
    READ(true, false),
6
    WRITE(false, true),
7
    ACCESS(true, true);
8
9
    private final boolean reads;
10
    private final boolean writes;
11
12
    WatchKind(final boolean reads, final boolean writes){
13
        this.reads = reads;
14
        this.writes = writes;
15
    }
16
17
    public boolean catches(final boolean write){
18 3 1. catches : replaced boolean return with false for com/rox/debug/breakpoints/WatchKind::catches → KILLED
2. catches : replaced boolean return with true for com/rox/debug/breakpoints/WatchKind::catches → KILLED
3. catches : negated conditional → KILLED
        return write ? writes : reads;
19
    }
20
}

Mutations

18

1.1
Location : catches
Killed by : com.rox.debug.breakpoints.BreakpointsTest.[engine:junit-jupiter]/[class:com.rox.debug.breakpoints.BreakpointsTest]/[test-template:aWatchCatchesOnlyItsKindOfAccess(com.rox.debug.breakpoints.WatchKind, boolean, boolean)]/[test-template-invocation:#4]
replaced boolean return with false for com/rox/debug/breakpoints/WatchKind::catches → KILLED

2.2
Location : catches
Killed by : com.rox.debug.breakpoints.BreakpointsTest.[engine:junit-jupiter]/[class:com.rox.debug.breakpoints.BreakpointsTest]/[test-template:aWatchCatchesOnlyItsKindOfAccess(com.rox.debug.breakpoints.WatchKind, boolean, boolean)]/[test-template-invocation:#2]
replaced boolean return with true for com/rox/debug/breakpoints/WatchKind::catches → KILLED

3.3
Location : catches
Killed by : com.rox.debug.breakpoints.BreakpointsTest.[engine:junit-jupiter]/[class:com.rox.debug.breakpoints.BreakpointsTest]/[test-template:aWatchCatchesOnlyItsKindOfAccess(com.rox.debug.breakpoints.WatchKind, boolean, boolean)]/[test-template-invocation:#2]
negated conditional → KILLED

Active mutators

Tests examined


Report generated by PIT 1.22.1