|
1
|
|
package io.github.some_example_name; |
|
2
|
|
|
|
3
|
|
public class GameOverInputLogic { |
|
4
|
|
|
|
5
|
|
public enum Action { |
|
6
|
|
NONE, |
|
7
|
|
GO_TO_MENU, |
|
8
|
|
GO_TO_LEADERBOARD |
|
9
|
|
} |
|
10
|
|
|
|
11
|
|
public Action handleInput(boolean spacePressed, boolean lPressed) { |
|
12
|
1
1. handleInput : negated conditional → KILLED
|
if (spacePressed) { |
|
13
|
1
1. handleInput : replaced return value with null for io/github/some_example_name/GameOverInputLogic::handleInput → KILLED
|
return Action.GO_TO_MENU; |
|
14
|
|
} |
|
15
|
1
1. handleInput : negated conditional → KILLED
|
if (lPressed) { |
|
16
|
1
1. handleInput : replaced return value with null for io/github/some_example_name/GameOverInputLogic::handleInput → KILLED
|
return Action.GO_TO_LEADERBOARD; |
|
17
|
|
} |
|
18
|
1
1. handleInput : replaced return value with null for io/github/some_example_name/GameOverInputLogic::handleInput → KILLED
|
return Action.NONE; |
|
19
|
|
} |
|
20
|
|
} |
|
21
|
|
|
| | Mutations |
| 12 |
|
1.1 Location : handleInput Killed by : io.github.some_example_name.GameOverInputLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.GameOverInputLogicTest]/[method:spaceGoesToMenu()] negated conditional → KILLED
|
| 13 |
|
1.1 Location : handleInput Killed by : io.github.some_example_name.GameOverInputLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.GameOverInputLogicTest]/[method:spaceGoesToMenu()] replaced return value with null for io/github/some_example_name/GameOverInputLogic::handleInput → KILLED
|
| 15 |
|
1.1 Location : handleInput Killed by : io.github.some_example_name.GameOverInputLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.GameOverInputLogicTest]/[method:noInputDoesNothing()] negated conditional → KILLED
|
| 16 |
|
1.1 Location : handleInput Killed by : io.github.some_example_name.GameOverInputLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.GameOverInputLogicTest]/[method:lGoesToLeaderboard()] replaced return value with null for io/github/some_example_name/GameOverInputLogic::handleInput → KILLED
|
| 18 |
|
1.1 Location : handleInput Killed by : io.github.some_example_name.GameOverInputLogicTest.[engine:junit-jupiter]/[class:io.github.some_example_name.GameOverInputLogicTest]/[method:noInputDoesNothing()] replaced return value with null for io/github/some_example_name/GameOverInputLogic::handleInput → KILLED
|