MenuOption.java

1
package g0803.bindingofshiba.model.menu;
2
3
import g0803.bindingofshiba.App;
4
import java.util.function.Consumer;
5
6
public class MenuOption {
7
8
    private final String text;
9
    private final Consumer<App> action;
10
11
    public MenuOption(String text, Consumer<App> action) {
12
        this.text = text;
13
        this.action = action;
14
    }
15
16
    public String getText() {
17 1 1. getText : replaced return value with "" for g0803/bindingofshiba/model/menu/MenuOption::getText → NO_COVERAGE
        return text;
18
    }
19
20
    public void execute(App app) {
21 1 1. execute : removed call to java/util/function/Consumer::accept → NO_COVERAGE
        action.accept(app);
22
    }
23
}

Mutations

17

1.1
Location : getText
Killed by : none
replaced return value with "" for g0803/bindingofshiba/model/menu/MenuOption::getText → NO_COVERAGE

21

1.1
Location : execute
Killed by : none
removed call to java/util/function/Consumer::accept → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.7.0