1
|
|
package org.cardanofoundation.explorer.api.model.response.address; |
2
|
|
|
3
|
|
import java.math.BigInteger; |
4
|
|
|
5
|
|
import lombok.AllArgsConstructor; |
6
|
|
import lombok.Builder; |
7
|
|
import lombok.Getter; |
8
|
|
import lombok.NoArgsConstructor; |
9
|
|
import lombok.Setter; |
10
|
|
|
11
|
|
import org.cardanofoundation.explorer.api.projection.AddressResponseProjection; |
12
|
|
|
13
|
|
@Getter |
14
|
|
@Setter |
15
|
10
1. scriptHash : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::scriptHash → NO_COVERAGE
2. isAssociatedSmartContract : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::isAssociatedSmartContract → NO_COVERAGE
3. toString : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::toString → NO_COVERAGE
4. isAssociatedNativeScript : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::isAssociatedNativeScript → NO_COVERAGE
5. builder : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::builder → KILLED
6. build : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::build → KILLED
7. address : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::address → KILLED
8. stakeAddress : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::stakeAddress → KILLED
9. txCount : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::txCount → KILLED
10. balance : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::balance → KILLED
|
@Builder |
16
|
|
@NoArgsConstructor |
17
|
|
@AllArgsConstructor |
18
|
|
public class AddressResponse implements AddressResponseProjection { |
19
|
1
1. getAddress : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getAddress → KILLED
|
private String address; |
20
|
1
1. getTxCount : replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getTxCount → SURVIVED
|
private Long txCount; |
21
|
1
1. getBalance : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getBalance → KILLED
|
private BigInteger balance; |
22
|
1
1. getStakeAddress : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getStakeAddress → KILLED
|
private String stakeAddress; |
23
|
1
1. getScriptHash : replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getScriptHash → KILLED
|
private String scriptHash; |
24
|
2
1. isAssociatedSmartContract : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedSmartContract → SURVIVED
2. isAssociatedSmartContract : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedSmartContract → KILLED
|
private boolean isAssociatedSmartContract; |
25
|
2
1. isAssociatedNativeScript : replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedNativeScript → SURVIVED
2. isAssociatedNativeScript : replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedNativeScript → KILLED
|
private boolean isAssociatedNativeScript; |
26
|
|
|
27
|
|
public AddressResponse(String address, BigInteger balance) { |
28
|
|
this.address = address; |
29
|
|
this.balance = balance; |
30
|
|
} |
31
|
|
|
32
|
|
public static AddressResponse fromProjection(AddressResponseProjection projection) { |
33
|
1
1. fromProjection : negated conditional → KILLED
|
if (projection == null) { |
34
|
|
return null; |
35
|
|
} |
36
|
|
|
37
|
1
1. fromProjection : replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::fromProjection → SURVIVED
|
return AddressResponse.builder() |
38
|
|
.address(projection.getAddress()) |
39
|
|
.txCount(projection.getTxCount()) |
40
|
|
.balance(projection.getBalance()) |
41
|
|
.build(); |
42
|
|
} |
43
|
|
} |
| | Mutations |
15 |
|
1.1 Location : builder Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturnV2()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::builder → KILLED 2.2 Location : scriptHash Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::scriptHash → NO_COVERAGE 3.3 Location : build Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturnV2()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::build → KILLED 4.4 Location : isAssociatedSmartContract Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::isAssociatedSmartContract → NO_COVERAGE 5.5 Location : address Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturnV2()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::address → KILLED 6.6 Location : stakeAddress Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturn()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::stakeAddress → KILLED 7.7 Location : toString Killed by : none replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::toString → NO_COVERAGE 8.8 Location : isAssociatedNativeScript Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::isAssociatedNativeScript → NO_COVERAGE 9.9 Location : txCount Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturnV2()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::txCount → KILLED 10.10 Location : balance Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturnV2()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse$AddressResponseBuilder::balance → KILLED
|
19 |
|
1.1 Location : getAddress Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetAddresses_thenReturn()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getAddress → KILLED
|
20 |
|
1.1 Location : getTxCount Killed by : none replaced Long return value with 0L for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getTxCount → SURVIVED
|
21 |
|
1.1 Location : getBalance Killed by : org.cardanofoundation.explorer.api.service.StakeKeyServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.StakeKeyServiceTest]/[method:testGetAddresses_thenReturn()] replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getBalance → KILLED
|
22 |
|
1.1 Location : getStakeAddress Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturn()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getStakeAddress → KILLED
|
23 |
|
1.1 Location : getScriptHash Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldAssociatedWithSmartContract()] replaced return value with "" for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::getScriptHash → KILLED
|
24 |
|
1.1 Location : isAssociatedSmartContract Killed by : none replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedSmartContract → SURVIVED 2.2 Location : isAssociatedSmartContract Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldAssociatedWithSmartContract()] replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedSmartContract → KILLED
|
25 |
|
1.1 Location : isAssociatedNativeScript Killed by : none replaced boolean return with true for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedNativeScript → SURVIVED 2.2 Location : isAssociatedNativeScript Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldAssociatedWithNativeScript()] replaced boolean return with false for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::isAssociatedNativeScript → KILLED
|
33 |
|
1.1 Location : fromProjection Killed by : org.cardanofoundation.explorer.api.service.AddressServiceTest.[engine:junit-jupiter]/[class:org.cardanofoundation.explorer.api.service.AddressServiceTest]/[method:getAddressDetail_shouldReturnV2()] negated conditional → KILLED
|
37 |
|
1.1 Location : fromProjection Killed by : none replaced return value with null for org/cardanofoundation/explorer/api/model/response/address/AddressResponse::fromProjection → SURVIVED
|