BlockSyncMessage.java

1
package org.cardanofoundation.explorer.api.event.blocksync;
2
3
import java.io.Serializable;
4
5
import lombok.AllArgsConstructor;
6
import lombok.Builder;
7
import lombok.Data;
8
import lombok.NoArgsConstructor;
9
10 30 1. equals : negated conditional → NO_COVERAGE
2. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
3. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
4. hashCode : Replaced integer multiplication with division → NO_COVERAGE
5. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
6. hashCode : Replaced integer multiplication with division → NO_COVERAGE
7. equals : negated conditional → NO_COVERAGE
8. hashCode : negated conditional → NO_COVERAGE
9. toString : replaced return value with "" for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::toString → NO_COVERAGE
10. equals : negated conditional → NO_COVERAGE
11. equals : negated conditional → NO_COVERAGE
12. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
13. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
14. hashCode : replaced int return with 0 for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::hashCode → NO_COVERAGE
15. equals : negated conditional → NO_COVERAGE
16. equals : negated conditional → NO_COVERAGE
17. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
18. equals : negated conditional → NO_COVERAGE
19. equals : negated conditional → NO_COVERAGE
20. hashCode : Replaced integer addition with subtraction → NO_COVERAGE
21. equals : negated conditional → NO_COVERAGE
22. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
23. hashCode : negated conditional → NO_COVERAGE
24. equals : replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
25. equals : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE
26. canEqual : replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::canEqual → NO_COVERAGE
27. equals : negated conditional → NO_COVERAGE
28. canEqual : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::canEqual → NO_COVERAGE
29. hashCode : Replaced integer multiplication with division → NO_COVERAGE
30. hashCode : negated conditional → NO_COVERAGE
@Data
11
@NoArgsConstructor
12
@AllArgsConstructor
13 6 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::toString → NO_COVERAGE
2. build : replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::build → KILLED
3. builder : replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::builder → KILLED
4. hasTx : replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::hasTx → KILLED
5. lastBlockNo : replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::lastBlockNo → KILLED
6. lastBlockHash : replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::lastBlockHash → KILLED
@Builder
14
public class BlockSyncMessage implements Serializable {
15 1 1. getLastBlockHash : replaced return value with "" for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::getLastBlockHash → SURVIVED
  private String lastBlockHash;
16 1 1. getLastBlockNo : replaced Long return value with 0L for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::getLastBlockNo → SURVIVED
  private Long lastBlockNo;
17 2 1. isHasTx : replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::isHasTx → SURVIVED
2. isHasTx : replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::isHasTx → SURVIVED
  private boolean hasTx;
18
}

Mutations

10

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

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

3.3
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

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

5.5
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

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

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

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

9.9
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::toString → NO_COVERAGE

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

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

12.12
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

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

14.14
Location : hashCode
Killed by : none
replaced int return with 0 for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::hashCode → NO_COVERAGE

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

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

17.17
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

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

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

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

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

22.22
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

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

24.24
Location : equals
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

25.25
Location : equals
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::equals → NO_COVERAGE

26.26
Location : canEqual
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::canEqual → NO_COVERAGE

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

28.28
Location : canEqual
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::canEqual → NO_COVERAGE

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

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

13

1.1
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::toString → NO_COVERAGE

2.2
Location : build
Killed by : org.cardanofoundation.explorer.api.service.WebSocketServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.WebSocketServiceTest]/[method:getBatchBlockInfoMessage_shouldReturnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::build → KILLED

3.3
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.WebSocketServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.WebSocketServiceTest]/[method:getBatchBlockInfoMessage_shouldReturnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::builder → KILLED

4.4
Location : hasTx
Killed by : org.cardanofoundation.explorer.api.service.WebSocketServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.WebSocketServiceTest]/[method:getBatchBlockInfoMessage_shouldReturnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::hasTx → KILLED

5.5
Location : lastBlockNo
Killed by : org.cardanofoundation.explorer.api.service.WebSocketServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.WebSocketServiceTest]/[method:getBatchBlockInfoMessage_shouldReturnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::lastBlockNo → KILLED

6.6
Location : lastBlockHash
Killed by : org.cardanofoundation.explorer.api.service.WebSocketServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.WebSocketServiceTest]/[method:getBatchBlockInfoMessage_shouldReturnResponse()]
replaced return value with null for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage$BlockSyncMessageBuilder::lastBlockHash → KILLED

15

1.1
Location : getLastBlockHash
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::getLastBlockHash → SURVIVED

16

1.1
Location : getLastBlockNo
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::getLastBlockNo → SURVIVED

17

1.1
Location : isHasTx
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::isHasTx → SURVIVED

2.2
Location : isHasTx
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/event/blocksync/BlockSyncMessage::isHasTx → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2