BlockResponse.java

1
package org.cardanofoundation.explorer.api.model.response;
2
3
import java.math.BigInteger;
4
import java.time.LocalDateTime;
5
6
import lombok.*;
7
8
@Getter
9
@Setter
10 18 1. time : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::time → NO_COVERAGE
2. blockNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::blockNo → NO_COVERAGE
3. confirmation : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::confirmation → NO_COVERAGE
4. epochNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::epochNo → NO_COVERAGE
5. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::toString → NO_COVERAGE
6. epochSlotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::epochSlotNo → NO_COVERAGE
7. txCount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::txCount → NO_COVERAGE
8. totalOutput : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::totalOutput → NO_COVERAGE
9. description : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::description → NO_COVERAGE
10. poolTicker : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::poolTicker → NO_COVERAGE
11. slotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::slotNo → NO_COVERAGE
12. totalFees : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::totalFees → NO_COVERAGE
13. poolView : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::poolView → NO_COVERAGE
14. poolName : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::poolName → NO_COVERAGE
15. slotLeader : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::slotLeader → NO_COVERAGE
16. hash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::hash → KILLED
17. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse::builder → KILLED
18. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::build → KILLED
@Builder
11
@AllArgsConstructor
12
@NoArgsConstructor
13
public class BlockResponse {
14
15 1 1. getHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getHash → SURVIVED
  private String hash;
16
17 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse::getTime → SURVIVED
  private LocalDateTime time;
18
19 1 1. getTxCount : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/BlockResponse::getTxCount → SURVIVED
  private Long txCount;
20
21 1 1. getEpochNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/BlockResponse::getEpochNo → SURVIVED
  private Integer epochNo;
22
23 1 1. getBlockNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/BlockResponse::getBlockNo → SURVIVED
  private Integer blockNo;
24
25 1 1. getSlotNo : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/BlockResponse::getSlotNo → SURVIVED
  private Long slotNo;
26
27 1 1. getEpochSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/BlockResponse::getEpochSlotNo → SURVIVED
  private Integer epochSlotNo;
28
29 1 1. getTotalFees : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse::getTotalFees → SURVIVED
  private BigInteger totalFees;
30
31 1 1. getTotalOutput : replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse::getTotalOutput → SURVIVED
  private BigInteger totalOutput;
32
33 1 1. getSlotLeader : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getSlotLeader → SURVIVED
  private String slotLeader;
34
35 1 1. getConfirmation : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/BlockResponse::getConfirmation → SURVIVED
  private Integer confirmation;
36
37 1 1. getPoolView : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getPoolView → KILLED
  private String poolView;
38
39 1 1. getPoolTicker : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getPoolTicker → SURVIVED
  private String poolTicker;
40
41 1 1. getPoolName : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getPoolName → SURVIVED
  private String poolName;
42
43 1 1. getDescription : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getDescription → SURVIVED
  private String description;
44
}

Mutations

10

1.1
Location : time
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::time → NO_COVERAGE

2.2
Location : blockNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::blockNo → NO_COVERAGE

3.3
Location : confirmation
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::confirmation → NO_COVERAGE

4.4
Location : epochNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::epochNo → NO_COVERAGE

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

6.6
Location : epochSlotNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::epochSlotNo → NO_COVERAGE

7.7
Location : txCount
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::txCount → NO_COVERAGE

8.8
Location : totalOutput
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::totalOutput → NO_COVERAGE

9.9
Location : description
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::description → NO_COVERAGE

10.10
Location : poolTicker
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::poolTicker → NO_COVERAGE

11.11
Location : slotNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::slotNo → NO_COVERAGE

12.12
Location : hash
Killed by : org.cardanofoundation.explorer.api.controller.BlockControllerIntegrationTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.BlockControllerIntegrationTest]/[method:testGetBlockDetailByBlockId()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::hash → KILLED

13.13
Location : totalFees
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::totalFees → NO_COVERAGE

14.14
Location : poolView
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::poolView → NO_COVERAGE

15.15
Location : poolName
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::poolName → NO_COVERAGE

16.16
Location : builder
Killed by : org.cardanofoundation.explorer.api.controller.BlockControllerIntegrationTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.BlockControllerIntegrationTest]/[method:testGetBlockDetailByBlockId()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse::builder → KILLED

17.17
Location : slotLeader
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::slotLeader → NO_COVERAGE

18.18
Location : build
Killed by : org.cardanofoundation.explorer.api.controller.BlockControllerIntegrationTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.BlockControllerIntegrationTest]/[method:testGetBlockDetailByBlockId()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/BlockResponse$BlockResponseBuilder::build → KILLED

15

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

17

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

19

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

21

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

23

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

25

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

27

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

29

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

31

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

33

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

35

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

37

1.1
Location : getPoolView
Killed by : org.cardanofoundation.explorer.api.service.BlockServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.BlockServiceTest]/[method:testGetBlockDetailByBlockId_WhenBlockHashExists()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/BlockResponse::getPoolView → KILLED

39

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

41

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

43

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

Active mutators

Tests examined


Report generated by PIT 1.14.2