1
|
|
package com.adventofcode.day05 |
2
|
|
|
3
|
|
import java.io.Serializable |
4
|
|
import java.util.* |
5
|
|
|
6
|
2
1. getColumn : replaced int return with 0 for com/adventofcode/day05/Seat::getColumn → KILLED
2. getRow : replaced int return with 0 for com/adventofcode/day05/Seat::getRow → KILLED
|
data class Seat(val row: Int, val column: Int) : Serializable { |
7
|
|
|
8
|
3
1. <init> : Replaced integer multiplication with division → KILLED
2. <init> : Replaced integer addition with subtraction → KILLED
3. getId : replaced int return with 0 for com/adventofcode/day05/Seat::getId → KILLED
|
val id: Int = row * 8 + column |
9
|
|
|
10
|
|
override fun toString(): String { |
11
|
1
1. toString : replaced return value with "" for com/adventofcode/day05/Seat::toString → KILLED
|
return "Seat(row=$row, column=$column, id=$id)" |
12
|
|
} |
13
|
|
|
14
|
|
|
15
|
|
|
16
|
|
} |
| | Mutations |
6 |
|
1.1 Location : getColumn Killed by : com.adventofcode.day05.SeatTest.[engine:junit-jupiter]/[class:com.adventofcode.day05.SeatTest]/[method:shouldHaveRowAndColumnWellSet()] replaced int return with 0 for com/adventofcode/day05/Seat::getColumn → KILLED 2.2 Location : getRow Killed by : com.adventofcode.day05.SeatTest.[engine:junit-jupiter]/[class:com.adventofcode.day05.SeatTest]/[method:shouldHaveRowAndColumnWellSet()] replaced int return with 0 for com/adventofcode/day05/Seat::getRow → KILLED
|
8 |
|
1.1 Location : <init> Killed by : com.adventofcode.day05.SeatTest.[engine:junit-jupiter]/[class:com.adventofcode.day05.SeatTest]/[method:shouldDisplayNicely()] Replaced integer multiplication with division → KILLED 2.2 Location : <init> Killed by : com.adventofcode.day05.SeatTest.[engine:junit-jupiter]/[class:com.adventofcode.day05.SeatTest]/[method:shouldDisplayNicely()] Replaced integer addition with subtraction → KILLED 3.3 Location : getId Killed by : com.adventofcode.day05.SeatTest.[engine:junit-jupiter]/[class:com.adventofcode.day05.SeatTest]/[method:shouldHaveAnID()] replaced int return with 0 for com/adventofcode/day05/Seat::getId → KILLED
|
11 |
|
1.1 Location : toString Killed by : com.adventofcode.day05.SeatTest.[engine:junit-jupiter]/[class:com.adventofcode.day05.SeatTest]/[method:shouldDisplayNicely()] replaced return value with "" for com/adventofcode/day05/Seat::toString → KILLED
|