PoolResponse.java

1
package org.cardanofoundation.explorer.api.model.response.pool;
2
3
import java.io.Serializable;
4
import java.math.BigInteger;
5
6
import lombok.AllArgsConstructor;
7
import lombok.Builder;
8
import lombok.Getter;
9
import lombok.NoArgsConstructor;
10
import lombok.Setter;
11
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
14
import org.cardanofoundation.explorer.api.json.serialize.PercentSerializer;
15
16
@Getter
17
@Setter
18 15 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::toString → NO_COVERAGE
2. retired : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::retired → KILLED
3. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::build → KILLED
4. id : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::id → KILLED
5. lifetimeBlock : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::lifetimeBlock → KILLED
6. saturation : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::saturation → KILLED
7. votingPower : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::votingPower → KILLED
8. poolSize : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::poolSize → KILLED
9. poolId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::poolId → KILLED
10. epochBlock : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::epochBlock → KILLED
11. poolName : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::poolName → KILLED
12. governanceParticipationRate : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::governanceParticipationRate → KILLED
13. pledge : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::pledge → KILLED
14. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::builder → KILLED
15. tickerName : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::tickerName → KILLED
@Builder
19
@NoArgsConstructor
20
@AllArgsConstructor
21
public class PoolResponse implements Serializable {
22
23 1 1. getId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getId → KILLED
  private Long id;
24
25 1 1. getPoolId : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPoolId → SURVIVED
  private String poolId;
26
27 1 1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPoolName → SURVIVED
  private String poolName;
28
29 1 1. getTickerName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getTickerName → SURVIVED
  private String tickerName;
30
31 1 1. getPoolSize : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPoolSize → SURVIVED
  private BigInteger poolSize;
32 1 1. getPledge : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPledge → SURVIVED
  private BigInteger pledge;
33
34
  @JsonSerialize(using = PercentSerializer.class)
35 1 1. getSaturation : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getSaturation → SURVIVED
  private Double saturation;
36
37 1 1. getEpochBlock : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getEpochBlock → SURVIVED
  private Integer epochBlock;
38
39 1 1. getLifetimeBlock : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getLifetimeBlock → SURVIVED
  private Integer lifetimeBlock;
40
41 1 1. getVotingPower : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getVotingPower → SURVIVED
  private Double votingPower;
42
43 1 1. getGovernanceParticipationRate : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getGovernanceParticipationRate → SURVIVED
  private Double governanceParticipationRate;
44
45 2 1. isRetired : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::isRetired → SURVIVED
2. isRetired : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::isRetired → SURVIVED
  private boolean retired;
46
}

Mutations

18

1.1
Location : retired
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::retired → KILLED

2.2
Location : build
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::build → KILLED

3.3
Location : id
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::id → KILLED

4.4
Location : lifetimeBlock
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::lifetimeBlock → KILLED

5.5
Location : saturation
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::saturation → KILLED

6.6
Location : votingPower
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::votingPower → KILLED

7.7
Location : poolSize
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::poolSize → KILLED

8.8
Location : poolId
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::poolId → KILLED

9.9
Location : epochBlock
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::epochBlock → KILLED

10.10
Location : poolName
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::poolName → KILLED

11.11
Location : governanceParticipationRate
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::governanceParticipationRate → KILLED

12.12
Location : pledge
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::pledge → KILLED

13.13
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testFindTopDelegationPool_shouldReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::builder → KILLED

14.14
Location : tickerName
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::tickerName → KILLED

15.15
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse$PoolResponseBuilder::toString → NO_COVERAGE

23

1.1
Location : getId
Killed by : org.cardanofoundation.explorer.api.service.DelegationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DelegationServiceTest]/[method:testGetDataForPoolTable_withSearch()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getId → KILLED

25

1.1
Location : getPoolId
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPoolId → SURVIVED

27

1.1
Location : getPoolName
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPoolName → SURVIVED

29

1.1
Location : getTickerName
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getTickerName → SURVIVED

31

1.1
Location : getPoolSize
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPoolSize → SURVIVED

32

1.1
Location : getPledge
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getPledge → SURVIVED

35

1.1
Location : getSaturation
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getSaturation → SURVIVED

37

1.1
Location : getEpochBlock
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getEpochBlock → SURVIVED

39

1.1
Location : getLifetimeBlock
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getLifetimeBlock → SURVIVED

41

1.1
Location : getVotingPower
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getVotingPower → SURVIVED

43

1.1
Location : getGovernanceParticipationRate
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::getGovernanceParticipationRate → SURVIVED

45

1.1
Location : isRetired
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::isRetired → SURVIVED

2.2
Location : isRetired
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/pool/PoolResponse::isRetired → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2