PoolDetailEpochResponse.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.*;
7
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
10
import org.cardanofoundation.explorer.api.json.serialize.PercentSerializer;
11
import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolActiveStakeProjection;
12
import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolHistoryKoiosProjection;
13
14
@Getter
15
@Setter
16 9 1. stakeAmount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::stakeAmount → NO_COVERAGE
2. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::toString → NO_COVERAGE
3. fee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::fee → NO_COVERAGE
4. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::builder → KILLED
5. block : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::block → KILLED
6. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::build → KILLED
7. ros : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::ros → KILLED
8. delegators : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::delegators → KILLED
9. epoch : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::epoch → KILLED
@Builder
17
@AllArgsConstructor
18
@NoArgsConstructor
19
public class PoolDetailEpochResponse implements Serializable {
20
21 1 1. getEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getEpoch → SURVIVED
  private Integer epoch;
22
23 1 1. getBlock : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getBlock → SURVIVED
  private Long block;
24
25 1 1. getStakeAmount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getStakeAmount → SURVIVED
  private BigInteger stakeAmount;
26
27 1 1. getDelegators : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getDelegators → SURVIVED
  private BigInteger delegators;
28
29 1 1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getFee → SURVIVED
  private BigInteger fee;
30
31
  @JsonSerialize(using = PercentSerializer.class)
32 1 1. getRos : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getRos → SURVIVED
  private Double ros;
33
34
  public PoolDetailEpochResponse(PoolActiveStakeProjection projection) {
35
    this.epoch = projection.getEpochNo();
36
    this.stakeAmount = projection.getTotalStake();
37
  }
38
39
  public PoolDetailEpochResponse(PoolHistoryKoiosProjection projection) {
40
    this.epoch = projection.getEpochNo();
41
    this.delegators = projection.getDelegateReward();
42
    this.fee = projection.getPoolFees();
43
    this.ros = projection.getRos();
44
    this.stakeAmount = projection.getActiveStake();
45
  }
46
}

Mutations

16

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

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

3.3
Location : stakeAmount
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::stakeAmount → NO_COVERAGE

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

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

6.6
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::toString → NO_COVERAGE

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

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

9.9
Location : fee
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse$PoolDetailEpochResponseBuilder::fee → NO_COVERAGE

21

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

23

1.1
Location : getBlock
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolDetailEpochResponse::getBlock → SURVIVED

25

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

27

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

29

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

32

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

Active mutators

Tests examined


Report generated by PIT 1.14.2