DeanRepellentLogic.java

1
package io.github.some_example_name;
2
3
public class DeanRepellentLogic {
4
5
    private boolean collected = false;
6
    private boolean usable = false;
7
    private boolean eventTriggered = false;
8
    private boolean deanRepelled = false;
9
10
    public void discover(float distance) {
11 3 1. discover : changed conditional boundary → SURVIVED
2. discover : negated conditional → KILLED
3. discover : negated conditional → KILLED
        if(!usable && distance < 16f) {
12
            usable = true;
13
        }
14
    }
15
16
    public void pickUp(float distance, boolean ePressed) {
17 5 1. pickUp : changed conditional boundary → SURVIVED
2. pickUp : negated conditional → KILLED
3. pickUp : negated conditional → KILLED
4. pickUp : negated conditional → KILLED
5. pickUp : negated conditional → KILLED
        if(!collected && usable && ePressed && distance < 20f) {
18
            collected = true;
19
            deanRepelled = true;
20
            eventTriggered = true;
21
        }
22
    }
23
24
    public boolean isUsable() {
25 2 1. isUsable : replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isUsable → KILLED
2. isUsable : replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isUsable → KILLED
        return usable;
26
    }
27
    public boolean isCollected() {
28 2 1. isCollected : replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isCollected → KILLED
2. isCollected : replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isCollected → KILLED
        return collected;
29
    }
30
    public boolean isDeanRepelled() {
31 2 1. isDeanRepelled : replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isDeanRepelled → SURVIVED
2. isDeanRepelled : replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isDeanRepelled → KILLED
        return deanRepelled;
32
    }
33
    public boolean isEventTriggered() {
34 2 1. isEventTriggered : replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isEventTriggered → SURVIVED
2. isEventTriggered : replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isEventTriggered → KILLED
        return eventTriggered;
35
    }
36
}

Mutations

11

1.1
Location : discover
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:usableWhenPlayerClose()]
negated conditional → KILLED

2.2
Location : discover
Killed by : none
changed conditional boundary → SURVIVED

3.3
Location : discover
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:usableWhenPlayerClose()]
negated conditional → KILLED

17

1.1
Location : pickUp
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:interactableWhenUsableAndEPressed()]
negated conditional → KILLED

2.2
Location : pickUp
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:doesNotCollectIfENotPressed()]
negated conditional → KILLED

3.3
Location : pickUp
Killed by : none
changed conditional boundary → SURVIVED

4.4
Location : pickUp
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:interactableWhenUsableAndEPressed()]
negated conditional → KILLED

5.5
Location : pickUp
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:interactableWhenUsableAndEPressed()]
negated conditional → KILLED

25

1.1
Location : isUsable
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:notUsableWhenPlayerFar()]
replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isUsable → KILLED

2.2
Location : isUsable
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:usableWhenPlayerClose()]
replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isUsable → KILLED

28

1.1
Location : isCollected
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:interactableWhenUsableAndEPressed()]
replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isCollected → KILLED

2.2
Location : isCollected
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:doesNotCollectIfENotPressed()]
replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isCollected → KILLED

31

1.1
Location : isDeanRepelled
Killed by : none
replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isDeanRepelled → SURVIVED

2.2
Location : isDeanRepelled
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:interactableWhenUsableAndEPressed()]
replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isDeanRepelled → KILLED

34

1.1
Location : isEventTriggered
Killed by : none
replaced boolean return with true for io/github/some_example_name/DeanRepellentLogic::isEventTriggered → SURVIVED

2.2
Location : isEventTriggered
Killed by : io.github.some_example_name.DeanRepellentLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.DeanRepellentLogicTest]/[method:interactableWhenUsableAndEPressed()]
replaced boolean return with false for io/github/some_example_name/DeanRepellentLogic::isEventTriggered → KILLED

Active mutators

Tests examined


Report generated by PIT 1.15.0