EpochChange.java

1
package org.cardanofoundation.explorer.api.model.response.protocol;
2
3
import lombok.AllArgsConstructor;
4
import lombok.Builder;
5
import lombok.Data;
6
import lombok.NoArgsConstructor;
7
8 5 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::toString → NO_COVERAGE
2. endEpoch : replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::endEpoch → KILLED
3. startEpoch : replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::startEpoch → KILLED
4. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::builder → KILLED
5. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::build → KILLED
@Builder
9 25 1. equals : negated conditional → NO_COVERAGE
2. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → NO_COVERAGE
3. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
4. hashCode : negated conditional → NO_COVERAGE
5. hashCode : negated conditional → NO_COVERAGE
6. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → NO_COVERAGE
7. hashCode : Replaced integer multiplication with division → NO_COVERAGE
8. equals : negated conditional → NO_COVERAGE
9. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::canEqual → SURVIVED
10. hashCode : Replaced integer multiplication with division → NO_COVERAGE
11. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → NO_COVERAGE
12. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::hashCode → NO_COVERAGE
13. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::toString → NO_COVERAGE
14. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → SURVIVED
15. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
16. equals : negated conditional → KILLED
17. equals : negated conditional → KILLED
18. equals : negated conditional → KILLED
19. equals : negated conditional → KILLED
20. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::canEqual → KILLED
21. equals : negated conditional → KILLED
22. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → KILLED
23. equals : negated conditional → KILLED
24. equals : negated conditional → KILLED
25. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → KILLED
@Data
10
@NoArgsConstructor
11
@AllArgsConstructor
12
public class EpochChange implements Cloneable {
13
14 1 1. getStartEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::getStartEpoch → KILLED
  Integer startEpoch;
15 1 1. getEndEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::getEndEpoch → KILLED
  Integer endEpoch;
16
17
  @Override
18
  public EpochChange clone() {
19 1 1. clone : replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::clone → KILLED
    return EpochChange.builder().startEpoch(this.startEpoch).endEpoch(this.endEpoch).build();
20
  }
21
}

Mutations

8

1.1
Location : endEpoch
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testMapProtocols_thenReturnCostModelNull()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::endEpoch → KILLED

2.2
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::toString → NO_COVERAGE

3.3
Location : startEpoch
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testMapProtocols_thenReturnCostModelNull()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::startEpoch → KILLED

4.4
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testMapProtocols_thenReturnCostModelNull()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::builder → KILLED

5.5
Location : build
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testAddedHistoriesDecentralisation()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange$EpochChangeBuilder::build → KILLED

9

1.1
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → NO_COVERAGE

3.3
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

4.4
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
negated conditional → KILLED

5.5
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch2()]
negated conditional → KILLED

6.6
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

7.7
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

8.8
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
negated conditional → KILLED

9.9
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → NO_COVERAGE

10.10
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

11.11
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

12.12
Location : canEqual
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::canEqual → SURVIVED

13.13
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

14.14
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
negated conditional → KILLED

15.15
Location : canEqual
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::canEqual → KILLED

16.16
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
negated conditional → KILLED

17.17
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch2()]
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → KILLED

18.18
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → NO_COVERAGE

19.19
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
negated conditional → KILLED

20.20
Location : hashCode
Killed by : none
replaced int return with 0 for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::hashCode → NO_COVERAGE

21.21
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::toString → NO_COVERAGE

22.22
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
negated conditional → KILLED

23.23
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → SURVIVED

24.24
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

25.25
Location : equals
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::equals → KILLED

14

1.1
Location : getStartEpoch
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testAddedHistoriesDecentralisation()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::getStartEpoch → KILLED

15

1.1
Location : getEndEpoch
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::getEndEpoch → KILLED

19

1.1
Location : clone
Killed by : org.cardanofoundation.explorer.api.service.ProtocolServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ProtocolServiceTest]/[method:testChangeHistoryChangeEpoch1()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/protocol/EpochChange::clone → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2