StakeAddressResponse.java

1
package org.cardanofoundation.explorer.api.model.response.address;
2
3
import java.math.BigInteger;
4
import java.util.List;
5
6
import lombok.AllArgsConstructor;
7
import lombok.Builder;
8
import lombok.Getter;
9
import lombok.NoArgsConstructor;
10
import lombok.Setter;
11
12
import org.cardanofoundation.explorer.api.common.enumeration.StakeAddressStatus;
13
14
@Getter
15
@Setter
16 10 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::toString → NO_COVERAGE
2. pool : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::pool → NO_COVERAGE
3. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::builder → NO_COVERAGE
4. status : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::status → NO_COVERAGE
5. rewardWithdrawn : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::rewardWithdrawn → NO_COVERAGE
6. totalStake : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::totalStake → NO_COVERAGE
7. stakeAddress : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::stakeAddress → NO_COVERAGE
8. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::build → NO_COVERAGE
9. rewardAvailable : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::rewardAvailable → NO_COVERAGE
10. rewardPools : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::rewardPools → NO_COVERAGE
@Builder
17
@NoArgsConstructor
18
@AllArgsConstructor
19
public class StakeAddressResponse {
20 1 1. getStatus : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getStatus → KILLED
  private StakeAddressStatus status;
21 1 1. getStakeAddress : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getStakeAddress → KILLED
  private String stakeAddress;
22 1 1. getTotalStake : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getTotalStake → KILLED
  private BigInteger totalStake;
23 1 1. getRewardAvailable : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getRewardAvailable → KILLED
  private BigInteger rewardAvailable;
24 1 1. getRewardWithdrawn : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getRewardWithdrawn → KILLED
  private BigInteger rewardWithdrawn;
25 1 1. getPool : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getPool → SURVIVED
  private DelegationPoolResponse pool;
26 1 1. getRewardPools : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getRewardPools → SURVIVED
  private List<String> rewardPools;
27
}

Mutations

16

1.1
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::toString → NO_COVERAGE

2.2
Location : pool
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::pool → NO_COVERAGE

3.3
Location : builder
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::builder → NO_COVERAGE

4.4
Location : status
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::status → NO_COVERAGE

5.5
Location : rewardWithdrawn
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::rewardWithdrawn → NO_COVERAGE

6.6
Location : totalStake
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::totalStake → NO_COVERAGE

7.7
Location : stakeAddress
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::stakeAddress → NO_COVERAGE

8.8
Location : build
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::build → NO_COVERAGE

9.9
Location : rewardAvailable
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::rewardAvailable → NO_COVERAGE

10.10
Location : rewardPools
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse$StakeAddressResponseBuilder::rewardPools → NO_COVERAGE

20

1.1
Location : getStatus
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetStakeByAddressWhenRewardAvailable_thenReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getStatus → KILLED

21

1.1
Location : getStakeAddress
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetStakeByAddressWhenRewardAvailable_thenReturn()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getStakeAddress → KILLED

22

1.1
Location : getTotalStake
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetStakeByAddressWhenRewardAvailable_thenReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getTotalStake → KILLED

23

1.1
Location : getRewardAvailable
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetStakeByAddressWhenRewardAvailable_thenReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getRewardAvailable → KILLED

24

1.1
Location : getRewardWithdrawn
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetStakeByAddressWhenRewardAvailable_thenReturn()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getRewardWithdrawn → KILLED

25

1.1
Location : getPool
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getPool → SURVIVED

26

1.1
Location : getRewardPools
Killed by : none
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/address/StakeAddressResponse::getRewardPools → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2