NativeScriptResponse.java

1
package org.cardanofoundation.explorer.api.model.response.script.nativescript;
2
3
import java.time.LocalDateTime;
4
import java.util.List;
5
6
import lombok.*;
7
8
import com.bloxbean.cardano.client.transaction.spec.script.ScriptType;
9
10
@Getter
11
@Setter
12 16 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::toString → NO_COVERAGE
2. after : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::after → NO_COVERAGE
3. conditionType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::conditionType → NO_COVERAGE
4. isOneTimeMint : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::isOneTimeMint → NO_COVERAGE
5. numberOfAssetHolders : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::numberOfAssetHolders → NO_COVERAGE
6. verifiedContract : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::verifiedContract → NO_COVERAGE
7. associatedAddress : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::associatedAddress → NO_COVERAGE
8. before : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::before → NO_COVERAGE
9. required : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::required → NO_COVERAGE
10. isOpen : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::isOpen → NO_COVERAGE
11. keyHashes : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::keyHashes → NO_COVERAGE
12. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::builder → KILLED
13. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::build → KILLED
14. script : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::script → KILLED
15. numberOfTokens : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::numberOfTokens → KILLED
16. scriptHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::scriptHash → KILLED
@Builder
13
@AllArgsConstructor
14
@NoArgsConstructor
15
public class NativeScriptResponse {
16 1 1. getScriptHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getScriptHash → KILLED
  private String scriptHash;
17 1 1. getNumberOfTokens : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getNumberOfTokens → KILLED
  private Long numberOfTokens;
18 1 1. getNumberOfAssetHolders : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getNumberOfAssetHolders → KILLED
  private Long numberOfAssetHolders;
19 1 1. getConditionType : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getConditionType → KILLED
  private ScriptType conditionType;
20 1 1. getRequired : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getRequired → KILLED
  private Integer required;
21 1 1. getKeyHashes : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getKeyHashes → KILLED
  private List<String> keyHashes;
22 1 1. getAfter : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getAfter → SURVIVED
  private LocalDateTime after;
23 1 1. getBefore : replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getBefore → KILLED
  private LocalDateTime before;
24 1 1. getAssociatedAddress : replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getAssociatedAddress → SURVIVED
  private List<String> associatedAddress;
25 1 1. getScript : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getScript → KILLED
  private String script;
26 2 1. getIsOneTimeMint : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOneTimeMint → KILLED
2. getIsOneTimeMint : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOneTimeMint → KILLED
  private Boolean isOneTimeMint;
27 2 1. getVerifiedContract : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getVerifiedContract → SURVIVED
2. getVerifiedContract : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getVerifiedContract → KILLED
  private Boolean verifiedContract;
28 2 1. getIsOpen : replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOpen → SURVIVED
2. getIsOpen : replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOpen → KILLED
  private Boolean isOpen;
29
}

Mutations

12

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

2.2
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::toString → NO_COVERAGE

3.3
Location : after
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::after → NO_COVERAGE

4.4
Location : conditionType
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::conditionType → NO_COVERAGE

5.5
Location : isOneTimeMint
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::isOneTimeMint → NO_COVERAGE

6.6
Location : numberOfAssetHolders
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::numberOfAssetHolders → NO_COVERAGE

7.7
Location : verifiedContract
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::verifiedContract → NO_COVERAGE

8.8
Location : associatedAddress
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::associatedAddress → NO_COVERAGE

9.9
Location : build
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetNativeScriptDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::build → KILLED

10.10
Location : script
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetNativeScriptDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::script → KILLED

11.11
Location : numberOfTokens
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetNativeScriptDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::numberOfTokens → KILLED

12.12
Location : before
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::before → NO_COVERAGE

13.13
Location : required
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::required → NO_COVERAGE

14.14
Location : isOpen
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::isOpen → NO_COVERAGE

15.15
Location : keyHashes
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::keyHashes → NO_COVERAGE

16.16
Location : scriptHash
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetNativeScriptDetail()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse$NativeScriptResponseBuilder::scriptHash → KILLED

16

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

17

1.1
Location : getNumberOfTokens
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetNativeScriptDetail()]
replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getNumberOfTokens → KILLED

18

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

19

1.1
Location : getConditionType
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse_withOneTimeMint()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getConditionType → KILLED

20

1.1
Location : getRequired
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getRequired → KILLED

21

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

22

1.1
Location : getAfter
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getAfter → SURVIVED

23

1.1
Location : getBefore
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse_withOneTimeMint()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getBefore → KILLED

24

1.1
Location : getAssociatedAddress
Killed by : none
replaced return value with Collections.emptyList for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getAssociatedAddress → SURVIVED

25

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

26

1.1
Location : getIsOneTimeMint
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse_withOneTimeMint()]
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOneTimeMint → KILLED

2.2
Location : getIsOneTimeMint
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse()]
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOneTimeMint → KILLED

27

1.1
Location : getVerifiedContract
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse_withOneTimeMint()]
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getVerifiedContract → KILLED

2.2
Location : getVerifiedContract
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getVerifiedContract → SURVIVED

28

1.1
Location : getIsOpen
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:testGetNativeScriptDetail_shouldReturnNativeScriptResponse_withOneTimeMint()]
replaced Boolean return with False for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOpen → KILLED

2.2
Location : getIsOpen
Killed by : none
replaced Boolean return with True for org/cardanofoundation/explorer/api/model/response/script/nativescript/NativeScriptResponse::getIsOpen → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2