PoolUpdateResponse.java

1
package org.cardanofoundation.explorer.api.model.response.pool.lifecycle;
2
3
import java.io.Serializable;
4
import java.math.BigInteger;
5
import java.sql.Timestamp;
6
7
import lombok.Getter;
8
import lombok.Setter;
9
10
import org.cardanofoundation.explorer.api.model.response.pool.projection.PoolUpdateProjection;
11
12
@Getter
13
@Setter
14
public class PoolUpdateResponse implements Serializable {
15
16 1 1. getPoolUpdateId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateResponse::getPoolUpdateId → NO_COVERAGE
  private Long poolUpdateId;
17
18 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateResponse::getTxHash → NO_COVERAGE
  private String txHash;
19
20 1 1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateResponse::getFee → NO_COVERAGE
  private BigInteger fee;
21
22 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateResponse::getTime → NO_COVERAGE
  private Timestamp time;
23
24 1 1. getMargin : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateResponse::getMargin → NO_COVERAGE
  private Double margin;
25
26 1 1. getPoolHold : replaced return value with null for org/cardanofoundation/explorer/api/model/response/pool/lifecycle/PoolUpdateResponse::getPoolHold → NO_COVERAGE
  private BigInteger poolHold;
27
28
  public PoolUpdateResponse(PoolUpdateProjection projection) {
29
    this.poolUpdateId = projection.getPoolUpdateId();
30
    this.txHash = projection.getTxHash();
31
    this.fee = projection.getFee();
32
    this.time = projection.getTime();
33
    this.margin = projection.getMargin();
34
    this.poolHold = projection.getDeposit();
35
  }
36
}

Mutations

16

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

18

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

20

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

22

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

24

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

26

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

Active mutators

Tests examined


Report generated by PIT 1.14.2