DRepFilterRequest.java

1
package org.cardanofoundation.explorer.api.model.request.drep;
2
3
import java.math.BigInteger;
4
import java.time.LocalDateTime;
5
6
import lombok.AllArgsConstructor;
7
import lombok.Getter;
8
import lombok.NoArgsConstructor;
9
import lombok.Setter;
10
import lombok.experimental.SuperBuilder;
11
12
import org.springframework.format.annotation.DateTimeFormat;
13
14
import org.cardanofoundation.explorer.common.entity.enumeration.DRepStatus;
15
16
@Getter
17
@Setter
18
@AllArgsConstructor
19
@NoArgsConstructor
20 15 1. maxGovParticipationRate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::maxGovParticipationRate → NO_COVERAGE
2. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::toString → NO_COVERAGE
3. minGovParticipationRate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::minGovParticipationRate → NO_COVERAGE
4. drepIdOrHash : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::drepIdOrHash → NO_COVERAGE
5. fromDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::fromDate → NO_COVERAGE
6. anchorText : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::anchorText → NO_COVERAGE
7. toDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::toDate → NO_COVERAGE
8. activeStakeTo : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::activeStakeTo → KILLED
9. build : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilderImpl::build → KILLED
10. activeStakeFrom : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::activeStakeFrom → KILLED
11. votingPowerFrom : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::votingPowerFrom → KILLED
12. votingPowerTo : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::votingPowerTo → KILLED
13. drepStatus : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::drepStatus → KILLED
14. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::builder → KILLED
15. self : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilderImpl::self → KILLED
@SuperBuilder
21
public class DRepFilterRequest {
22
23 1 1. getDrepIdOrHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getDrepIdOrHash → SURVIVED
  private String drepIdOrHash;
24 1 1. getAnchorText : replaced return value with "" for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getAnchorText → SURVIVED
  private String anchorText;
25
26 1 1. getActiveStakeFrom : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getActiveStakeFrom → KILLED
  private BigInteger activeStakeFrom;
27 1 1. getActiveStakeTo : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getActiveStakeTo → KILLED
  private BigInteger activeStakeTo;
28
29 1 1. getVotingPowerFrom : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getVotingPowerFrom → SURVIVED
  private Double votingPowerFrom;
30 1 1. getVotingPowerTo : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getVotingPowerTo → SURVIVED
  private Double votingPowerTo;
31
32 1 1. getDrepStatus : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getDrepStatus → SURVIVED
  private DRepStatus drepStatus;
33
34 1 1. getMinGovParticipationRate : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getMinGovParticipationRate → SURVIVED
  private Double minGovParticipationRate;
35
36 1 1. getMaxGovParticipationRate : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getMaxGovParticipationRate → SURVIVED
  private Double maxGovParticipationRate;
37
38
  @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
39 1 1. getFromDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getFromDate → SURVIVED
  private LocalDateTime fromDate;
40
41
  @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
42 1 1. getToDate : replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getToDate → SURVIVED
  private LocalDateTime toDate;
43
}

Mutations

20

1.1
Location : maxGovParticipationRate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::maxGovParticipationRate → NO_COVERAGE

2.2
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::toString → NO_COVERAGE

3.3
Location : activeStakeTo
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::activeStakeTo → KILLED

4.4
Location : build
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilderImpl::build → KILLED

5.5
Location : activeStakeFrom
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::activeStakeFrom → KILLED

6.6
Location : minGovParticipationRate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::minGovParticipationRate → NO_COVERAGE

7.7
Location : votingPowerFrom
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::votingPowerFrom → KILLED

8.8
Location : votingPowerTo
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::votingPowerTo → KILLED

9.9
Location : drepIdOrHash
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::drepIdOrHash → NO_COVERAGE

10.10
Location : fromDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::fromDate → NO_COVERAGE

11.11
Location : drepStatus
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::drepStatus → KILLED

12.12
Location : anchorText
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::anchorText → NO_COVERAGE

13.13
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::builder → KILLED

14.14
Location : toDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilder::toDate → NO_COVERAGE

15.15
Location : self
Killed by : org.cardanofoundation.explorer.api.service.DRepServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.DRepServiceTest]/[method:testGetDRepListByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest$DRepFilterRequestBuilderImpl::self → KILLED

23

1.1
Location : getDrepIdOrHash
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getDrepIdOrHash → SURVIVED

24

1.1
Location : getAnchorText
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getAnchorText → SURVIVED

26

1.1
Location : getActiveStakeFrom
Killed by : org.cardanofoundation.explorer.api.controller.DrepControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.DrepControllerTest]/[method:testDRepFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getActiveStakeFrom → KILLED

27

1.1
Location : getActiveStakeTo
Killed by : org.cardanofoundation.explorer.api.controller.DrepControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.DrepControllerTest]/[method:testDRepFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getActiveStakeTo → KILLED

29

1.1
Location : getVotingPowerFrom
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getVotingPowerFrom → SURVIVED

30

1.1
Location : getVotingPowerTo
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getVotingPowerTo → SURVIVED

32

1.1
Location : getDrepStatus
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getDrepStatus → SURVIVED

34

1.1
Location : getMinGovParticipationRate
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getMinGovParticipationRate → SURVIVED

36

1.1
Location : getMaxGovParticipationRate
Killed by : none
replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getMaxGovParticipationRate → SURVIVED

39

1.1
Location : getFromDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getFromDate → SURVIVED

42

1.1
Location : getToDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/request/drep/DRepFilterRequest::getToDate → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2