GovernanceActionDetails.java

1
package org.cardanofoundation.explorer.api.model.response.governanceAction;
2
3
import java.math.BigInteger;
4
import java.util.Date;
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 com.fasterxml.jackson.annotation.JsonIgnore;
13
import com.fasterxml.jackson.databind.JsonNode;
14
15
import org.cardanofoundation.explorer.common.entity.enumeration.GovActionStatus;
16
import org.cardanofoundation.explorer.common.entity.enumeration.GovActionType;
17
import org.cardanofoundation.explorer.common.entity.enumeration.Vote;
18
19
@Getter
20
@Setter
21 22 1. details : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::details → SURVIVED
2. poolName : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::poolName → NO_COVERAGE
3. submissionDate : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::submissionDate → SURVIVED
4. status : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::status → SURVIVED
5. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::toString → NO_COVERAGE
6. govActionType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::govActionType → SURVIVED
7. voteType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::voteType → NO_COVERAGE
8. self : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilderImpl::self → NO_COVERAGE
9. blockTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::blockTime → SURVIVED
10. epoch : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::epoch → SURVIVED
11. voterHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::voterHash → NO_COVERAGE
12. allowedVoteByCC : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::allowedVoteByCC → NO_COVERAGE
13. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilderImpl::build → NO_COVERAGE
14. expiryDate : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::expiryDate → NO_COVERAGE
15. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::builder → NO_COVERAGE
16. allowedVoteBySPO : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::allowedVoteBySPO → NO_COVERAGE
17. votingPower : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::votingPower → SURVIVED
18. indexType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::indexType → SURVIVED
19. txHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::txHash → KILLED
20. anchorUrl : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::anchorUrl → KILLED
21. index : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::index → KILLED
22. anchorHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::anchorHash → KILLED
@SuperBuilder
22
@AllArgsConstructor
23
@NoArgsConstructor
24
public class GovernanceActionDetails {
25 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getTxHash → KILLED
  String txHash;
26
27 1 1. getIndex : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getIndex → SURVIVED
  Long index;
28
29 1 1. getGovActionType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getGovActionType → SURVIVED
  GovActionType govActionType;
30
31 1 1. getAnchorHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAnchorHash → KILLED
  String anchorHash;
32
33 1 1. getAnchorUrl : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAnchorUrl → SURVIVED
  String anchorUrl;
34
35 1 1. getDetails : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getDetails → SURVIVED
  JsonNode details;
36
37 1 1. getEpoch : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getEpoch → SURVIVED
  @JsonIgnore Integer epoch;
38
39 1 1. getBlockTime : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getBlockTime → SURVIVED
  @JsonIgnore Long blockTime;
40
41 1 1. getVoteType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getVoteType → KILLED
  Vote voteType;
42
43 1 1. getVoterHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getVoterHash → SURVIVED
  String voterHash;
44
45 1 1. getStatus : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getStatus → SURVIVED
  GovActionStatus status;
46
47 1 1. getVotingPower : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getVotingPower → SURVIVED
  BigInteger votingPower;
48
49 1 1. getSubmissionDate : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getSubmissionDate → SURVIVED
  Date submissionDate;
50
51 1 1. getExpiryDate : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getExpiryDate → SURVIVED
  Date expiryDate;
52
53 1 1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getPoolName → SURVIVED
  String poolName;
54
55 1 1. getIndexType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getIndexType → SURVIVED
  BigInteger indexType;
56
57 2 1. getAllowedVoteBySPO : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteBySPO → SURVIVED
2. getAllowedVoteBySPO : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteBySPO → SURVIVED
  Boolean allowedVoteBySPO;
58
59 2 1. getAllowedVoteByCC : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteByCC → SURVIVED
2. getAllowedVoteByCC : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteByCC → SURVIVED
  Boolean allowedVoteByCC;
60
}

Mutations

21

1.1
Location : details
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::details → SURVIVED

2.2
Location : poolName
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::poolName → NO_COVERAGE

3.3
Location : submissionDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::submissionDate → SURVIVED

4.4
Location : status
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::status → SURVIVED

5.5
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::toString → NO_COVERAGE

6.6
Location : govActionType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::govActionType → SURVIVED

7.7
Location : voteType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::voteType → NO_COVERAGE

8.8
Location : self
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilderImpl::self → NO_COVERAGE

9.9
Location : blockTime
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::blockTime → SURVIVED

10.10
Location : epoch
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::epoch → SURVIVED

11.11
Location : voterHash
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::voterHash → NO_COVERAGE

12.12
Location : allowedVoteByCC
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::allowedVoteByCC → NO_COVERAGE

13.13
Location : txHash
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetVotingProcedureChart()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::txHash → KILLED

14.14
Location : anchorUrl
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetVotingProcedureChart()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::anchorUrl → KILLED

15.15
Location : build
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilderImpl::build → NO_COVERAGE

16.16
Location : expiryDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::expiryDate → NO_COVERAGE

17.17
Location : index
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetVotingProcedureChart()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::index → KILLED

18.18
Location : builder
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::builder → NO_COVERAGE

19.19
Location : anchorHash
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetVotingProcedureChart()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::anchorHash → KILLED

20.20
Location : allowedVoteBySPO
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::allowedVoteBySPO → NO_COVERAGE

21.21
Location : votingPower
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::votingPower → SURVIVED

22.22
Location : indexType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails$GovernanceActionDetailsBuilder::indexType → SURVIVED

25

1.1
Location : getTxHash
Killed by : org.cardanofoundation.explorer.api.service.GovActionServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.GovActionServiceTest]/[method:getGovActionDetails()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getTxHash → KILLED

27

1.1
Location : getIndex
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getIndex → SURVIVED

29

1.1
Location : getGovActionType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getGovActionType → SURVIVED

31

1.1
Location : getAnchorHash
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetVotingProcedureChart()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAnchorHash → KILLED

33

1.1
Location : getAnchorUrl
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAnchorUrl → SURVIVED

35

1.1
Location : getDetails
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getDetails → SURVIVED

37

1.1
Location : getEpoch
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getEpoch → SURVIVED

39

1.1
Location : getBlockTime
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getBlockTime → SURVIVED

41

1.1
Location : getVoteType
Killed by : org.cardanofoundation.explorer.api.service.GovActionServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.GovActionServiceTest]/[method:getGovActionDetails()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getVoteType → KILLED

43

1.1
Location : getVoterHash
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getVoterHash → SURVIVED

45

1.1
Location : getStatus
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getStatus → SURVIVED

47

1.1
Location : getVotingPower
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getVotingPower → SURVIVED

49

1.1
Location : getSubmissionDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getSubmissionDate → SURVIVED

51

1.1
Location : getExpiryDate
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getExpiryDate → SURVIVED

53

1.1
Location : getPoolName
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getPoolName → SURVIVED

55

1.1
Location : getIndexType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getIndexType → SURVIVED

57

1.1
Location : getAllowedVoteBySPO
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteBySPO → SURVIVED

2.2
Location : getAllowedVoteBySPO
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteBySPO → SURVIVED

59

1.1
Location : getAllowedVoteByCC
Killed by : none
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteByCC → SURVIVED

2.2
Location : getAllowedVoteByCC
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionDetails::getAllowedVoteByCC → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2