StakeLifeCycleFilterRequest.java

1
package org.cardanofoundation.explorer.api.model.request.stake;
2
3
import java.util.Date;
4
5
import lombok.*;
6
7
import io.swagger.v3.oas.annotations.Parameter;
8
9
import org.cardanofoundation.explorer.api.common.constant.CommonConstant;
10
import org.cardanofoundation.explorer.common.validation.date.DatePattern;
11
import org.cardanofoundation.explorer.common.validation.date.param.DateValid;
12
import org.cardanofoundation.explorer.common.validation.length.LengthValid;
13
14
@Getter
15
@Setter
16 31 1. equals : negated conditional → NO_COVERAGE
2. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE
3. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
4. equals : negated conditional → NO_COVERAGE
5. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE
6. hashCode : negated conditional → NO_COVERAGE
7. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE
8. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
9. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::hashCode → NO_COVERAGE
10. equals : negated conditional → NO_COVERAGE
11. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE
12. equals : negated conditional → SURVIVED
13. hashCode : negated conditional → NO_COVERAGE
14. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE
15. hashCode : Replaced integer multiplication with division → NO_COVERAGE
16. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE
17. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
18. hashCode : Replaced integer multiplication with division → NO_COVERAGE
19. hashCode : negated conditional → NO_COVERAGE
20. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::canEqual → SURVIVED
21. hashCode : Replaced integer multiplication with division → NO_COVERAGE
22. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → KILLED
23. equals : negated conditional → KILLED
24. equals : negated conditional → KILLED
25. equals : negated conditional → KILLED
26. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::canEqual → KILLED
27. equals : negated conditional → KILLED
28. equals : negated conditional → KILLED
29. equals : negated conditional → KILLED
30. equals : negated conditional → KILLED
31. equals : negated conditional → KILLED
@EqualsAndHashCode
17
@AllArgsConstructor
18
@NoArgsConstructor
19
public class StakeLifeCycleFilterRequest {
20
21
  @LengthValid(CommonConstant.TX_HASH_LENGTH)
22
  @Parameter(description = "The hash identifier of the transaction.")
23 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::getTxHash → KILLED
  private String txHash;
24
25
  @DateValid(pattern = DatePattern.YYYY_MM_DD)
26
  @Parameter(description = "The date from which the stake life cycle is considered.")
27 1 1. getFromDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::getFromDate → KILLED
  private Date fromDate;
28
29
  @DateValid(pattern = DatePattern.YYYY_MM_DD)
30
  @Parameter(description = "The date to which the stake life cycle is considered.")
31 1 1. getToDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::getToDate → KILLED
  private Date toDate;
32
}

Mutations

16

1.1
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE

3.3
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
replaced boolean return with false for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → KILLED

4.4
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

5.5
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

6.6
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

7.7
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE

8.8
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

9.9
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE

10.10
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

11.11
Location : hashCode
Killed by : none
replaced int return with 0 for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::hashCode → NO_COVERAGE

12.12
Location : equals
Killed by : none
negated conditional → NO_COVERAGE

13.13
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE

14.14
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

15.15
Location : equals
Killed by : none
negated conditional → SURVIVED

16.16
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

17.17
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE

18.18
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

19.19
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

20.20
Location : canEqual
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
replaced boolean return with false for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::canEqual → KILLED

21.21
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::equals → NO_COVERAGE

22.22
Location : hashCode
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

23.23
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

24.24
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

25.25
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

26.26
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

27.27
Location : hashCode
Killed by : none
negated conditional → NO_COVERAGE

28.28
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

29.29
Location : canEqual
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::canEqual → SURVIVED

30.30
Location : hashCode
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

31.31
Location : equals
Killed by : org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.StakeKeyLifeCycleControllerTest]/[method:shouldGetWithdrawals()]
negated conditional → KILLED

23

1.1
Location : getTxHash
Killed by : org.cardanofoundation.explorer.api.service.StakeKeyLifeCycleServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyLifeCycleServiceTest]/[method:whenStakeAddressTxHashNull_showReturnDeRegistrations()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/stake/StakeLifeCycleFilterRequest::getTxHash → KILLED

27

1.1
Location : getFromDate
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/request/stake/StakeLifeCycleFilterRequest::getFromDate → KILLED

31

1.1
Location : getToDate
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/request/stake/StakeLifeCycleFilterRequest::getToDate → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2