SimplePassportsValidator.kt

1
package com.adventofcode.day04
2
3 6 1. areAllPassportsValidOnes : replaced boolean return with false for com/adventofcode/day04/SimplePassportsValidator::areAllPassportsValidOnes → KILLED
2. areAllPassportsValidOnes : replaced boolean return with true for com/adventofcode/day04/SimplePassportsValidator::areAllPassportsValidOnes → KILLED
3. asString : replaced return value with "" for com/adventofcode/day04/SimplePassportsValidator::asString → KILLED
4. validateAll : replaced return value with Collections.emptyList for com/adventofcode/day04/SimplePassportsValidator::validateAll → KILLED
5. validatePassport : replaced boolean return with false for com/adventofcode/day04/SimplePassportsValidator::validatePassport → KILLED
6. validatePassport : replaced boolean return with true for com/adventofcode/day04/SimplePassportsValidator::validatePassport → KILLED
class SimplePassportsValidator(passports: Collection<Passport>) : PassportsValidator {
4
5 1 1. getInvalidityCause : replaced return value with "" for com/adventofcode/day04/SimplePassportsValidator::getInvalidityCause → KILLED
    override var invalidityCause: String = "Missing some field"
6 1 1. getValidationData : replaced return value with Collections.emptyList for com/adventofcode/day04/SimplePassportsValidator::getValidationData → KILLED
    override val validationData: Collection<Pair<Passport, Boolean>> = validateAll(passports)
7
8
    override fun toString(): String {
9 1 1. toString : replaced return value with "" for com/adventofcode/day04/SimplePassportsValidator::toString → KILLED
        return asString()
10
    }
11
12
}

Mutations

3

1.1
Location : areAllPassportsValidOnes
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldValidatePassportWhenDataHasAllFieldsCompleted()]
replaced boolean return with false for com/adventofcode/day04/SimplePassportsValidator::areAllPassportsValidOnes → KILLED

2.2
Location : areAllPassportsValidOnes
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldInvalidatePassportWhenSomeDataIsMissing()]
replaced boolean return with true for com/adventofcode/day04/SimplePassportsValidator::areAllPassportsValidOnes → KILLED

3.3
Location : asString
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldDisplayNumberOfValidData()]
replaced return value with "" for com/adventofcode/day04/SimplePassportsValidator::asString → KILLED

4.4
Location : validateAll
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldInvalidatePassportWhenSomeDataIsMissing()]
replaced return value with Collections.emptyList for com/adventofcode/day04/SimplePassportsValidator::validateAll → KILLED

5.5
Location : validatePassport
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldValidatePassportWhenDataHasAllFieldsCompleted()]
replaced boolean return with false for com/adventofcode/day04/SimplePassportsValidator::validatePassport → KILLED

6.6
Location : validatePassport
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldInvalidatePassportWhenSomeDataIsMissing()]
replaced boolean return with true for com/adventofcode/day04/SimplePassportsValidator::validatePassport → KILLED

5

1.1
Location : getInvalidityCause
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldGiveInvalidityCauseWhenPassportIsInvalid()]
replaced return value with "" for com/adventofcode/day04/SimplePassportsValidator::getInvalidityCause → KILLED

6

1.1
Location : getValidationData
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldInvalidatePassportWhenSomeDataIsMissing()]
replaced return value with Collections.emptyList for com/adventofcode/day04/SimplePassportsValidator::getValidationData → KILLED

9

1.1
Location : toString
Killed by : com.adventofcode.day04.PassportScannerWithSimpleValidationTest.[engine:junit-jupiter]/[class:com.adventofcode.day04.PassportScannerWithSimpleValidationTest]/[method:shouldDisplayNumberOfValidData()]
replaced return value with "" for com/adventofcode/day04/SimplePassportsValidator::toString → KILLED

Active mutators

Tests examined


Report generated by PIT 1.6.1