1
|
|
package org.cardanofoundation.explorer.api.model.response.stake.lifecycle; |
2
|
|
|
3
|
|
import java.math.BigInteger; |
4
|
|
import java.util.Date; |
5
|
|
|
6
|
|
import lombok.AllArgsConstructor; |
7
|
|
import lombok.Builder; |
8
|
|
import lombok.Getter; |
9
|
|
import lombok.Setter; |
10
|
|
|
11
|
|
import com.fasterxml.jackson.annotation.JsonInclude; |
12
|
|
|
13
|
|
import org.cardanofoundation.explorer.common.entity.enumeration.RewardType; |
14
|
|
|
15
|
|
@Getter |
16
|
|
@Setter |
17
|
|
@AllArgsConstructor |
18
|
9
1. poolView : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::poolView → NO_COVERAGE
2. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::toString → NO_COVERAGE
3. poolHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::poolHash → NO_COVERAGE
4. type : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::type → NO_COVERAGE
5. epoch : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::epoch → KILLED
6. time : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::time → KILLED
7. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::builder → KILLED
8. amount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::amount → KILLED
9. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::build → KILLED
|
@Builder |
19
|
|
public class StakeRewardResponse { |
20
|
1
1. getEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getEpoch → KILLED
|
private Integer epoch; |
21
|
1
1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getTime → SURVIVED
|
private Date time; |
22
|
1
1. getAmount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getAmount → KILLED
|
private BigInteger amount; |
23
|
|
|
24
|
|
@JsonInclude(JsonInclude.Include.NON_NULL) |
25
|
1
1. getType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getType → SURVIVED
|
private RewardType type; |
26
|
|
|
27
|
1
1. getPoolView : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getPoolView → SURVIVED
|
private String poolView; |
28
|
1
1. getPoolHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getPoolHash → SURVIVED
|
private String poolHash; |
29
|
|
|
30
|
|
public StakeRewardResponse(Integer epoch, Date time, BigInteger amount) { |
31
|
|
this.epoch = epoch; |
32
|
|
this.time = time; |
33
|
|
this.amount = amount; |
34
|
|
} |
35
|
|
|
36
|
|
public StakeRewardResponse(Integer epoch, Date time, BigInteger amount, RewardType type) { |
37
|
|
this.epoch = epoch; |
38
|
|
this.time = time; |
39
|
|
this.amount = amount; |
40
|
|
this.type = type; |
41
|
|
} |
42
|
|
|
43
|
|
public StakeRewardResponse( |
44
|
|
Integer epoch, Date time, BigInteger amount, String poolView, String poolHash) { |
45
|
|
this.epoch = epoch; |
46
|
|
this.time = time; |
47
|
|
this.amount = amount; |
48
|
|
this.poolView = poolView; |
49
|
|
this.poolHash = poolHash; |
50
|
|
} |
51
|
|
} |
| | Mutations |
18 |
|
1.1 Location : poolView Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::poolView → NO_COVERAGE 2.2 Location : toString Killed by : none replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::toString → NO_COVERAGE 3.3 Location : poolHash Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::poolHash → NO_COVERAGE 4.4 Location : epoch Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:getStakeRewardsByReportId_shouldReturnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::epoch → KILLED 5.5 Location : time Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:getStakeRewardsByReportId_shouldReturnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::time → KILLED 6.6 Location : type Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::type → NO_COVERAGE 7.7 Location : builder Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:getStakeRewardsByReportId_shouldReturnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::builder → KILLED 8.8 Location : amount Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:getStakeRewardsByReportId_shouldReturnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::amount → KILLED 9.9 Location : build Killed by : org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyReportServiceTest]/[method:getStakeRewardsByReportId_shouldReturnResponse()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse$StakeRewardResponseBuilder::build → KILLED
|
20 |
|
1.1 Location : getEpoch Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyReportControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyReportControllerTest]/[method:shouldGetRewards()] replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getEpoch → KILLED
|
21 |
|
1.1 Location : getTime Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getTime → SURVIVED
|
22 |
|
1.1 Location : getAmount Killed by : org.cardanofoundation.explorer.api.service.StakeKeyLifeCycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyLifeCycleServiceTest]/[method:whenStakeAddressHaveRewardsAvailable_showReturnRewards()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getAmount → KILLED
|
25 |
|
1.1 Location : getType Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getType → SURVIVED
|
27 |
|
1.1 Location : getPoolView Killed by : none replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getPoolView → SURVIVED
|
28 |
|
1.1 Location : getPoolHash Killed by : none replaced return value with "" for org/cardanofoundation/explorer/api/model/response/stake/lifecycle/StakeRewardResponse::getPoolHash → SURVIVED
|