SmartContractTxResponse.java

1
package org.cardanofoundation.explorer.api.model.response.script.smartcontract;
2
3
import java.sql.Timestamp;
4
import java.util.List;
5
import java.util.Set;
6
7
import lombok.AllArgsConstructor;
8
import lombok.Builder;
9
import lombok.Getter;
10
import lombok.NoArgsConstructor;
11
import lombok.Setter;
12
13
import com.fasterxml.jackson.annotation.JsonIgnore;
14
15
import org.cardanofoundation.explorer.common.entity.enumeration.ScriptPurposeType;
16
17
@Getter
18
@Setter
19 12 1. blockNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::blockNo → SURVIVED
2. absoluteSlot : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::absoluteSlot → SURVIVED
3. txId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::txId → SURVIVED
4. scriptPurposeTypes : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::scriptPurposeTypes → NO_COVERAGE
5. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::toString → NO_COVERAGE
6. addresses : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::addresses → NO_COVERAGE
7. epochSlotNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::epochSlotNo → SURVIVED
8. time : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::time → SURVIVED
9. hash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::hash → KILLED
10. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::build → KILLED
11. epochNo : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::epochNo → KILLED
12. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::builder → KILLED
@Builder
20
@AllArgsConstructor
21
@NoArgsConstructor
22
public class SmartContractTxResponse {
23
24 1 1. getTxId : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getTxId → KILLED
  @JsonIgnore private Long txId;
25 1 1. getHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getHash → KILLED
  private String hash;
26 1 1. getTime : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getTime → SURVIVED
  private Timestamp time;
27 1 1. getBlockNo : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getBlockNo → SURVIVED
  private Long blockNo;
28 1 1. getEpochNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getEpochNo → KILLED
  private Integer epochNo;
29 1 1. getEpochSlotNo : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getEpochSlotNo → SURVIVED
  private Integer epochSlotNo;
30 1 1. getAbsoluteSlot : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getAbsoluteSlot → SURVIVED
  private Integer absoluteSlot;
31 1 1. getAddresses : replaced return value with Collections.emptySet for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getAddresses → SURVIVED
  private Set<String> addresses;
32 1 1. getScriptPurposeTypes : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getScriptPurposeTypes → KILLED
  private List<ScriptPurposeType> scriptPurposeTypes;
33
}

Mutations

19

1.1
Location : blockNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::blockNo → SURVIVED

2.2
Location : absoluteSlot
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::absoluteSlot → SURVIVED

3.3
Location : txId
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::txId → SURVIVED

4.4
Location : hash
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetSmartContractsTxs()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::hash → KILLED

5.5
Location : scriptPurposeTypes
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::scriptPurposeTypes → NO_COVERAGE

6.6
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::toString → NO_COVERAGE

7.7
Location : build
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetSmartContractsTxs()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::build → KILLED

8.8
Location : epochNo
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetSmartContractsTxs()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::epochNo → KILLED

9.9
Location : addresses
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::addresses → NO_COVERAGE

10.10
Location : epochSlotNo
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::epochSlotNo → SURVIVED

11.11
Location : time
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse$SmartContractTxResponseBuilder::time → SURVIVED

12.12
Location : builder
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetSmartContractsTxs()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::builder → KILLED

24

1.1
Location : getTxId
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:getSmartContractTxs_shouldReturnSmartContractTxResponse()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getTxId → KILLED

25

1.1
Location : getHash
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetSmartContractsTxs()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getHash → KILLED

26

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

27

1.1
Location : getBlockNo
Killed by : none
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getBlockNo → SURVIVED

28

1.1
Location : getEpochNo
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetSmartContractsTxs()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getEpochNo → KILLED

29

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

30

1.1
Location : getAbsoluteSlot
Killed by : none
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getAbsoluteSlot → SURVIVED

31

1.1
Location : getAddresses
Killed by : none
replaced return value with Collections.emptySet for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getAddresses → SURVIVED

32

1.1
Location : getScriptPurposeTypes
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:getSmartContractTxs_shouldReturnSmartContractTxResponse()]
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/script/smartcontract/SmartContractTxResponse::getScriptPurposeTypes → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2