TutorialScreenLogic.java

1
package io.github.some_example_name;
2
3
public class TutorialScreenLogic {
4
5
    public enum Action {
6
        START_GAME,
7
        EXIT,
8
        NONE
9
    }
10
11
    public static Action decide(
12
        boolean spacePressed,
13
        boolean escapePressed
14
    ) {
15 2 1. decide : replaced return value with null for io/github/some_example_name/TutorialScreenLogic::decide → KILLED
2. decide : negated conditional → KILLED
        if (spacePressed) return Action.START_GAME;
16 2 1. decide : replaced return value with null for io/github/some_example_name/TutorialScreenLogic::decide → KILLED
2. decide : negated conditional → KILLED
        if (escapePressed) return Action.EXIT;
17 1 1. decide : replaced return value with null for io/github/some_example_name/TutorialScreenLogic::decide → KILLED
        return Action.NONE;
18
    }
19
}
20

Mutations

15

1.1
Location : decide
Killed by : io.github.some_example_name.TutorialScreenLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.TutorialScreenLogicTest]/[method:spaceStartsGame()]
replaced return value with null for io/github/some_example_name/TutorialScreenLogic::decide → KILLED

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

16

1.1
Location : decide
Killed by : io.github.some_example_name.TutorialScreenLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.TutorialScreenLogicTest]/[method:escapeExitsGame()]
replaced return value with null for io/github/some_example_name/TutorialScreenLogic::decide → KILLED

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

17

1.1
Location : decide
Killed by : io.github.some_example_name.TutorialScreenLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.TutorialScreenLogicTest]/[method:noKeyDoesNothing()]
replaced return value with null for io/github/some_example_name/TutorialScreenLogic::decide → KILLED

Active mutators

Tests examined


Report generated by PIT 1.15.0