PoolTxResponse.java

1
package org.cardanofoundation.explorer.api.model.response.pool;
2
3
import java.io.Serializable;
4
import java.math.BigInteger;
5
import java.sql.Timestamp;
6
import java.util.List;
7
8
import lombok.Getter;
9
import lombok.Setter;
10
11
import org.cardanofoundation.explorer.api.model.response.pool.projection.TxBlockEpochProjection;
12
13
@Getter
14
@Setter
15
public class PoolTxResponse implements Serializable {
16
17 1 1. getTxId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getTxId → KILLED
  private Long txId;
18
19 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getTxHash → NO_COVERAGE
  private String txHash;
20
21 1 1. getTxTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getTxTime → NO_COVERAGE
  private Timestamp txTime;
22
23 1 1. getEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getEpoch → NO_COVERAGE
  private Integer epoch;
24
25 1 1. getBlock : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getBlock → NO_COVERAGE
  private Long block;
26
27 1 1. getEpochSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getEpochSlotNo → NO_COVERAGE
  private Integer epochSlotNo;
28
29 1 1. getSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getSlotNo → NO_COVERAGE
  private Integer slotNo;
30
31 1 1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getPoolName → NO_COVERAGE
  private String poolName;
32
33 1 1. getPledge : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getPledge → NO_COVERAGE
  private BigInteger pledge;
34
35 1 1. getCost : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getCost → NO_COVERAGE
  private BigInteger cost;
36
37 1 1. getMargin : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getMargin → NO_COVERAGE
  private Double margin;
38
39 1 1. getPoolId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getPoolId → KILLED
  private Long poolId;
40
41 1 1. getPoolView : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getPoolView → NO_COVERAGE
  private String poolView;
42
43 1 1. getStakeKey : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getStakeKey → KILLED
  private List<String> stakeKey;
44
45
  public PoolTxResponse(TxBlockEpochProjection trxBlockEpoch) {
46
    this.txId = trxBlockEpoch.getTxId();
47
    this.txHash = trxBlockEpoch.getTxHash();
48
    this.txTime = trxBlockEpoch.getTxTime();
49
    this.epoch = trxBlockEpoch.getEpochNo();
50
    this.slotNo = trxBlockEpoch.getSlotNo();
51
    this.pledge = trxBlockEpoch.getPledge();
52
    this.margin = trxBlockEpoch.getMargin();
53
    this.cost = trxBlockEpoch.getCost();
54
    this.poolName = trxBlockEpoch.getPoolName();
55
    this.poolId = trxBlockEpoch.getPoolId();
56
    this.block = trxBlockEpoch.getBlockNo();
57
    this.poolView = trxBlockEpoch.getPoolView();
58
  }
59
}

Mutations

17

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

19

1.1
Location : getTxHash
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getTxHash → NO_COVERAGE

21

1.1
Location : getTxTime
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getTxTime → NO_COVERAGE

23

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

25

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

27

1.1
Location : getEpochSlotNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getEpochSlotNo → NO_COVERAGE

29

1.1
Location : getSlotNo
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getSlotNo → NO_COVERAGE

31

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

33

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

35

1.1
Location : getCost
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getCost → NO_COVERAGE

37

1.1
Location : getMargin
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getMargin → NO_COVERAGE

39

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

41

1.1
Location : getPoolView
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getPoolView → NO_COVERAGE

43

1.1
Location : getStakeKey
Killed by : org.cardanofoundation.explorer.api.service.PoolRegistrationServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PoolRegistrationServiceTest]/[method:whenPoolRegistrationIsNotEmptyAndStakeKeyIsEmpty_returnResponseWithStakeKeyIsNull()]
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/pool/PoolTxResponse::getStakeKey → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2