VotingOnGovActionResponse.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.Data;
8
import lombok.NoArgsConstructor;
9
10
import org.cardanofoundation.explorer.common.entity.enumeration.Vote;
11
import org.cardanofoundation.explorer.common.entity.enumeration.VoterType;
12
13 60 1. equals : negated conditional → NO_COVERAGE
2. equals : negated conditional → NO_COVERAGE
3. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
4. equals : negated conditional → NO_COVERAGE
5. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
6. equals : negated conditional → NO_COVERAGE
7. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
8. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
9. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
10. hashCode : Replaced integer multiplication with division → NO_COVERAGE
11. hashCode : Replaced integer multiplication with division → NO_COVERAGE
12. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
13. hashCode : negated conditional → NO_COVERAGE
14. equals : negated conditional → NO_COVERAGE
15. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
16. hashCode : Replaced integer multiplication with division → NO_COVERAGE
17. equals : negated conditional → NO_COVERAGE
18. hashCode : negated conditional → NO_COVERAGE
19. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
20. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
21. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
22. equals : negated conditional → NO_COVERAGE
23. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
24. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
25. hashCode : negated conditional → NO_COVERAGE
26. hashCode : negated conditional → NO_COVERAGE
27. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
28. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE
29. equals : negated conditional → NO_COVERAGE
30. equals : negated conditional → NO_COVERAGE
31. hashCode : Replaced integer multiplication with division → NO_COVERAGE
32. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
33. hashCode : negated conditional → NO_COVERAGE
34. equals : negated conditional → NO_COVERAGE
35. hashCode : negated conditional → NO_COVERAGE
36. equals : negated conditional → NO_COVERAGE
37. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
38. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::canEqual → NO_COVERAGE
39. hashCode : Replaced integer multiplication with division → NO_COVERAGE
40. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::toString → NO_COVERAGE
41. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::canEqual → NO_COVERAGE
42. equals : negated conditional → NO_COVERAGE
43. equals : negated conditional → NO_COVERAGE
44. hashCode : Replaced integer multiplication with division → NO_COVERAGE
45. equals : negated conditional → NO_COVERAGE
46. equals : negated conditional → NO_COVERAGE
47. equals : negated conditional → NO_COVERAGE
48. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
49. equals : negated conditional → NO_COVERAGE
50. equals : negated conditional → NO_COVERAGE
51. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
52. equals : negated conditional → NO_COVERAGE
53. equals : negated conditional → NO_COVERAGE
54. hashCode : Replaced integer multiplication with division → NO_COVERAGE
55. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::hashCode → NO_COVERAGE
56. equals : negated conditional → NO_COVERAGE
57. equals : negated conditional → NO_COVERAGE
58. hashCode : negated conditional → NO_COVERAGE
59. equals : negated conditional → NO_COVERAGE
60. equals : negated conditional → NO_COVERAGE
@Data
14
@NoArgsConstructor
15
@AllArgsConstructor
16
public class VotingOnGovActionResponse {
17
18 1 1. getVoterHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getVoterHash → KILLED
  String voterHash;
19
20 1 1. getTimestamp : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getTimestamp → SURVIVED
  Date timestamp;
21
22 1 1. getVoterType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getVoterType → KILLED
  VoterType voterType;
23
24 1 1. getVotingStake : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getVotingStake → KILLED
  BigInteger votingStake;
25
26 1 1. getVotingPower : replaced Double return value with 0 for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getVotingPower → SURVIVED
  Double votingPower;
27
28 1 1. getVote : replaced return value with null for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getVote → KILLED
  Vote vote;
29
30 2 1. getIsRepeatVote : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getIsRepeatVote → SURVIVED
2. getIsRepeatVote : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::getIsRepeatVote → SURVIVED
  Boolean isRepeatVote;
31
}

Mutations

13

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

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

3.3
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

5.5
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

7.7
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

8.8
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

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

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

12.12
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

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

15.15
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

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

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

19.19
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

20.20
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

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

23.23
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

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

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

27.27
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

28.28
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::equals → NO_COVERAGE

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

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

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

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

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

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

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

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

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

38.38
Location : canEqual
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::canEqual → NO_COVERAGE

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

40.40
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::toString → NO_COVERAGE

41.41
Location : canEqual
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::canEqual → NO_COVERAGE

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

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

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

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

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

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

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

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

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

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

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

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

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

55.55
Location : hashCode
Killed by : none
replaced int return with 0 for org/cardanofoundation/explorer/api/model/response/governanceAction/VotingOnGovActionResponse::hashCode → NO_COVERAGE

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

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

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

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

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

18

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

20

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

22

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

24

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

26

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

28

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

30

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

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

Active mutators

Tests examined


Report generated by PIT 1.14.2