PolicyResponse.java

1
package org.cardanofoundation.explorer.api.model.response.token;
2
3
import lombok.Builder;
4
import lombok.Getter;
5
import lombok.Setter;
6
7
@Getter
8
@Setter
9 8 1. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::toString → NO_COVERAGE
2. policyScript : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::policyScript → SURVIVED
3. isSmartContract : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::isSmartContract → SURVIVED
4. isNativeScript : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::isNativeScript → SURVIVED
5. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::build → KILLED
6. policyId : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::policyId → KILLED
7. totalToken : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::totalToken → KILLED
8. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::builder → KILLED
@Builder
10
public class PolicyResponse {
11 1 1. getPolicyId : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::getPolicyId → KILLED
  private String policyId;
12 1 1. getTotalToken : replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::getTotalToken → KILLED
  private Integer totalToken;
13 1 1. getPolicyScript : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::getPolicyScript → KILLED
  private String policyScript;
14 2 1. isNativeScript : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isNativeScript → SURVIVED
2. isNativeScript : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isNativeScript → SURVIVED
  private boolean isNativeScript = false;
15 2 1. isSmartContract : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isSmartContract → SURVIVED
2. isSmartContract : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isSmartContract → SURVIVED
  private boolean isSmartContract = false;
16
}

Mutations

9

1.1
Location : build
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::build → KILLED

2.2
Location : toString
Killed by : none
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::toString → NO_COVERAGE

3.3
Location : policyScript
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::policyScript → SURVIVED

4.4
Location : isSmartContract
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::isSmartContract → SURVIVED

5.5
Location : policyId
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::policyId → KILLED

6.6
Location : isNativeScript
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::isNativeScript → SURVIVED

7.7
Location : totalToken
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse$PolicyResponseBuilder::totalToken → KILLED

8.8
Location : builder
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced return value with null for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::builder → KILLED

11

1.1
Location : getPolicyId
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::getPolicyId → KILLED

12

1.1
Location : getTotalToken
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced Integer return value with 0 for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::getTotalToken → KILLED

13

1.1
Location : getPolicyScript
Killed by : org.cardanofoundation.explorer.api.service.PolicyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.PolicyServiceTest]/[method:testGetPolicyDetail_thenReturnScriptExist()]
replaced return value with "" for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::getPolicyScript → KILLED

14

1.1
Location : isNativeScript
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isNativeScript → SURVIVED

2.2
Location : isNativeScript
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isNativeScript → SURVIVED

15

1.1
Location : isSmartContract
Killed by : none
replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isSmartContract → SURVIVED

2.2
Location : isSmartContract
Killed by : none
replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/token/PolicyResponse::isSmartContract → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2