| 1 | package com.github.dakusui.symfonion.song; | |
| 2 | ||
| 3 | import com.github.dakusui.json.JsonFormatException; | |
| 4 | import com.github.dakusui.json.JsonInvalidPathException; | |
| 5 | import com.github.dakusui.json.JsonTypeMismatchException; | |
| 6 | import com.github.dakusui.json.JsonUtils; | |
| 7 | import com.github.dakusui.symfonion.exceptions.SymfonionException; | |
| 8 | import com.google.gson.JsonObject; | |
| 9 | ||
| 10 | ||
| 11 | public class Part { | |
| 12 | int channel; | |
| 13 | private final String name; | |
| 14 | private final String portName; | |
| 15 | ||
| 16 | public Part(String name, JsonObject json) throws SymfonionException, JsonTypeMismatchException, JsonFormatException, JsonInvalidPathException { | |
| 17 | this.name = name; | |
| 18 | this.channel = JsonUtils.asInt(json, Keyword.$channel); | |
| 19 | this.portName = JsonUtils.asStringWithDefault(json, null, Keyword.$port); | |
| 20 | } | |
| 21 | ||
| 22 | public String name() { | |
| 23 |
1
1. name : replaced return value with "" for com/github/dakusui/symfonion/song/Part::name → NO_COVERAGE |
return this.name; |
| 24 | } | |
| 25 | ||
| 26 | public int channel() { | |
| 27 |
1
1. channel : replaced int return with 0 for com/github/dakusui/symfonion/song/Part::channel → SURVIVED |
return this.channel; |
| 28 | } | |
| 29 | ||
| 30 | public String portName() { | |
| 31 |
1
1. portName : replaced return value with "" for com/github/dakusui/symfonion/song/Part::portName → KILLED |
return this.portName; |
| 32 | } | |
| 33 | } | |
Mutations | ||
| 23 |
1.1 |
|
| 27 |
1.1 |
|
| 31 |
1.1 |