TxInfoResponse.java

1
package org.cardanofoundation.explorer.api.model.response.tx;
2
3
import java.math.BigInteger;
4
import java.time.LocalDateTime;
5
6
import lombok.AllArgsConstructor;
7
import lombok.Builder;
8
import lombok.Getter;
9
import lombok.NoArgsConstructor;
10
import lombok.Setter;
11
12
import org.cardanofoundation.explorer.api.common.enumeration.TxStatus;
13
14
@Getter
15
@Setter
16
@NoArgsConstructor
17
@AllArgsConstructor
18 15 1. slotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::slotNo → NO_COVERAGE
2. status : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::status → NO_COVERAGE
3. confirmation : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::confirmation → NO_COVERAGE
4. blockNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::blockNo → NO_COVERAGE
5. maxEpochSlot : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::maxEpochSlot → NO_COVERAGE
6. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::toString → NO_COVERAGE
7. time : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::time → NO_COVERAGE
8. blockHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::blockHash → NO_COVERAGE
9. totalOutput : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::totalOutput → NO_COVERAGE
10. fee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::fee → NO_COVERAGE
11. epochSlot : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::epochSlot → NO_COVERAGE
12. epochNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::epochNo → KILLED
13. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::builder → KILLED
14. hash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::hash → KILLED
15. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::build → KILLED
@Builder
19
public class TxInfoResponse {
20
21 1 1. getHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getHash → SURVIVED
  private String hash;
22 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getTime → SURVIVED
  private LocalDateTime time;
23 1 1. getBlockNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getBlockNo → SURVIVED
  private Integer blockNo;
24 1 1. getBlockHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getBlockHash → SURVIVED
  private String blockHash;
25 1 1. getEpochSlot : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getEpochSlot → SURVIVED
  private Integer epochSlot;
26 1 1. getMaxEpochSlot : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getMaxEpochSlot → SURVIVED
  private Integer maxEpochSlot;
27 1 1. getEpochNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getEpochNo → SURVIVED
  private Integer epochNo;
28 1 1. getSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getSlotNo → SURVIVED
  private Integer slotNo;
29 1 1. getStatus : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getStatus → SURVIVED
  private TxStatus status;
30 1 1. getConfirmation : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getConfirmation → SURVIVED
  private Integer confirmation;
31 1 1. getFee : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getFee → SURVIVED
  private BigInteger fee;
32 1 1. getTotalOutput : replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::getTotalOutput → SURVIVED
  private BigInteger totalOutput;
33
}

Mutations

18

1.1
Location : slotNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::slotNo → NO_COVERAGE

2.2
Location : epochNo
Killed by : org.cardanofoundation.explorer.api.service.TxServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TxServiceTest]/[method:testGetTxDetailByHash_EpochRepositoryReturnsAbsent()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::epochNo → KILLED

3.3
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.TxServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TxServiceTest]/[method:testGetTxDetailByHash_EpochRepositoryReturnsAbsent()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse::builder → KILLED

4.4
Location : hash
Killed by : org.cardanofoundation.explorer.api.controller.TxControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.TxControllerTest]/[method:testGetTransactionDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::hash → KILLED

5.5
Location : status
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::status → NO_COVERAGE

6.6
Location : confirmation
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::confirmation → NO_COVERAGE

7.7
Location : blockNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::blockNo → NO_COVERAGE

8.8
Location : maxEpochSlot
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::maxEpochSlot → NO_COVERAGE

9.9
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::toString → NO_COVERAGE

10.10
Location : time
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::time → NO_COVERAGE

11.11
Location : blockHash
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::blockHash → NO_COVERAGE

12.12
Location : build
Killed by : org.cardanofoundation.explorer.api.service.TxServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.TxServiceTest]/[method:testGetTxDetailByHash_EpochRepositoryReturnsAbsent()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::build → KILLED

13.13
Location : totalOutput
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::totalOutput → NO_COVERAGE

14.14
Location : fee
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::fee → NO_COVERAGE

15.15
Location : epochSlot
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/tx/TxInfoResponse$TxInfoResponseBuilder::epochSlot → NO_COVERAGE

21

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

22

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

23

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

24

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

25

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

26

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

27

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

28

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

29

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

30

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

31

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

32

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

Active mutators

Tests examined


Report generated by PIT 1.14.2