ScriptSearchResponse.java

1
package org.cardanofoundation.explorer.api.model.response.search;
2
3
import lombok.AllArgsConstructor;
4
import lombok.Builder;
5
import lombok.Getter;
6
import lombok.NoArgsConstructor;
7
import lombok.Setter;
8
9
@Getter
10
@Setter
11
@AllArgsConstructor
12
@NoArgsConstructor
13 6 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::toString → NO_COVERAGE
2. isSmartContract : replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::isSmartContract → NO_COVERAGE
3. scriptHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::scriptHash → KILLED
4. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::builder → KILLED
5. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::build → KILLED
6. isNativeScript : replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::isNativeScript → KILLED
@Builder
14
public class ScriptSearchResponse {
15 1 1. getScriptHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::getScriptHash → KILLED
  private String scriptHash;
16 2 1. isNativeScript : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isNativeScript → KILLED
2. isNativeScript : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isNativeScript → KILLED
  private boolean isNativeScript = false;
17 2 1. isSmartContract : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isSmartContract → KILLED
2. isSmartContract : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isSmartContract → KILLED
  private boolean isSmartContract = false;
18
}

Mutations

13

1.1
Location : scriptHash
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetScriptByHash()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::scriptHash → KILLED

2.2
Location : builder
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetScriptByHash()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::builder → KILLED

3.3
Location : build
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetScriptByHash()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::build → KILLED

4.4
Location : isNativeScript
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetScriptByHash()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::isNativeScript → KILLED

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

6.6
Location : isSmartContract
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse$ScriptSearchResponseBuilder::isSmartContract → NO_COVERAGE

15

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

16

1.1
Location : isNativeScript
Killed by : org.cardanofoundation.explorer.api.controller.ScriptControllerTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.controller.ScriptControllerTest]/[method:testGetScriptByHash()]
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isNativeScript → KILLED

2.2
Location : isNativeScript
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:searchScript_shouldReturnNativeScriptResponse()]
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isNativeScript → KILLED

17

1.1
Location : isSmartContract
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:searchScript_shouldReturnSmartContractResponseWithTypePlutus3()]
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isSmartContract → KILLED

2.2
Location : isSmartContract
Killed by : org.cardanofoundation.explorer.api.service.ScriptServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.ScriptServiceTest]/[method:searchScript_shouldReturnNativeScriptResponse()]
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/search/ScriptSearchResponse::isSmartContract → KILLED

Active mutators

Tests examined


Report generated by PIT 1.14.2