GovernanceActionResponse.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 org.cardanofoundation.explorer.common.entity.enumeration.GovActionStatus;
13
import org.cardanofoundation.explorer.common.entity.enumeration.GovActionType;
14
import org.cardanofoundation.explorer.common.entity.enumeration.Vote;
15
16
@Getter
17
@Setter
18 15 1. isRepeatVote : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::isRepeatVote → SURVIVED
2. createdAt : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::createdAt → SURVIVED
3. govActionName : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::govActionName → SURVIVED
4. indexType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::indexType → SURVIVED
5. voterHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::voterHash → SURVIVED
6. votingPower : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::votingPower → SURVIVED
7. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::toString → NO_COVERAGE
8. type : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::type → SURVIVED
9. txHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::txHash → KILLED
10. vote : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::vote → KILLED
11. status : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::status → KILLED
12. self : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilderImpl::self → KILLED
13. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilderImpl::build → KILLED
14. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::builder → KILLED
15. index : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::index → KILLED
@SuperBuilder
19
@AllArgsConstructor
20
@NoArgsConstructor
21
public class GovernanceActionResponse {
22 1 1. getTxHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getTxHash → KILLED
  String txHash;
23 1 1. getIndex : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getIndex → SURVIVED
  Long index;
24 1 1. getType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getType → SURVIVED
  GovActionType type;
25 1 1. getVote : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getVote → SURVIVED
  Vote vote;
26 1 1. getStatus : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getStatus → KILLED
  GovActionStatus status;
27 1 1. getVotingPower : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getVotingPower → SURVIVED
  BigInteger votingPower;
28 1 1. getIndexType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getIndexType → SURVIVED
  BigInteger indexType;
29 2 1. getIsRepeatVote : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getIsRepeatVote → SURVIVED
2. getIsRepeatVote : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getIsRepeatVote → SURVIVED
  Boolean isRepeatVote;
30 1 1. getVoterHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getVoterHash → SURVIVED
  String voterHash;
31 1 1. getCreatedAt : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getCreatedAt → SURVIVED
  Date createdAt;
32 1 1. getGovActionName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse::getGovActionName → SURVIVED
  String govActionName;
33
}

Mutations

18

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

2.2
Location : isRepeatVote
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::isRepeatVote → SURVIVED

3.3
Location : createdAt
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::createdAt → SURVIVED

4.4
Location : govActionName
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::govActionName → SURVIVED

5.5
Location : indexType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::indexType → SURVIVED

6.6
Location : voterHash
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::voterHash → SURVIVED

7.7
Location : votingPower
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::votingPower → SURVIVED

8.8
Location : vote
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetGovActionByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::vote → KILLED

9.9
Location : status
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetGovActionByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::status → KILLED

10.10
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::toString → NO_COVERAGE

11.11
Location : self
Killed by : org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.GovernanceActionControllerTest]/[method:testGetGovActionByFilter()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilderImpl::self → KILLED

12.12
Location : type
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilder::type → SURVIVED

13.13
Location : build
Killed by : org.cardanofoundation.explorer.api.service.GovActionServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.GovActionServiceTest]/[method:testGetGovCommitteeStatusHistory()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/GovernanceActionResponse$GovernanceActionResponseBuilderImpl::build → KILLED

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

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

22

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

23

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

24

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

25

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

26

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

27

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

28

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

29

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

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

30

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

31

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

32

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

Active mutators

Tests examined


Report generated by PIT 1.14.2