1 | package org.cardanofoundation.explorer.api.mapper; | |
2 | ||
3 | import javax.annotation.processing.Generated; | |
4 | import org.cardanofoundation.explorer.api.model.response.tx.TxOutResponse; | |
5 | import org.cardanofoundation.explorer.api.projection.AddressInputOutputProjection; | |
6 | import org.springframework.stereotype.Component; | |
7 | ||
8 | @Generated( | |
9 | value = "org.mapstruct.ap.MappingProcessor", | |
10 | date = "2024-11-05T06:00:27+0000", | |
11 | comments = "version: 1.5.3.Final, compiler: javac, environment: Java 18.0.2.1 (Eclipse Adoptium)" | |
12 | ) | |
13 | @Component | |
14 | public class TxOutMapperImpl implements TxOutMapper { | |
15 | ||
16 | @Override | |
17 | public TxOutResponse fromAddressInputOutput(AddressInputOutputProjection addressInputOutputProjection) { | |
18 |
1
1. fromAddressInputOutput : negated conditional → NO_COVERAGE |
if ( addressInputOutputProjection == null ) { |
19 | return null; | |
20 | } | |
21 | ||
22 | TxOutResponse.TxOutResponseBuilder txOutResponse = TxOutResponse.builder(); | |
23 | ||
24 | txOutResponse.stakeAddress( addressInputOutputProjection.getStakeView() ); | |
25 | txOutResponse.address( addressInputOutputProjection.getAddress() ); | |
26 |
1
1. fromAddressInputOutput : negated conditional → NO_COVERAGE |
if ( addressInputOutputProjection.getIndex() != null ) { |
27 | txOutResponse.index( String.valueOf( addressInputOutputProjection.getIndex() ) ); | |
28 | } | |
29 | txOutResponse.txHash( addressInputOutputProjection.getTxHash() ); | |
30 | txOutResponse.value( addressInputOutputProjection.getValue() ); | |
31 | txOutResponse.assetId( addressInputOutputProjection.getAssetId() ); | |
32 | ||
33 |
1
1. fromAddressInputOutput : replaced return value with null for org/cardanofoundation/explorer/api/mapper/TxOutMapperImpl::fromAddressInputOutput → NO_COVERAGE |
return txOutResponse.build(); |
34 | } | |
35 | ||
36 | @Override | |
37 | public TxOutResponse fromStakeAddressInputOutput(AddressInputOutputProjection addressInputOutputProjection) { | |
38 |
1
1. fromStakeAddressInputOutput : negated conditional → NO_COVERAGE |
if ( addressInputOutputProjection == null ) { |
39 | return null; | |
40 | } | |
41 | ||
42 | TxOutResponse.TxOutResponseBuilder txOutResponse = TxOutResponse.builder(); | |
43 | ||
44 | txOutResponse.address( addressInputOutputProjection.getStakeAddress() ); | |
45 |
1
1. fromStakeAddressInputOutput : negated conditional → NO_COVERAGE |
if ( addressInputOutputProjection.getIndex() != null ) { |
46 | txOutResponse.index( String.valueOf( addressInputOutputProjection.getIndex() ) ); | |
47 | } | |
48 | txOutResponse.txHash( addressInputOutputProjection.getTxHash() ); | |
49 | txOutResponse.value( addressInputOutputProjection.getValue() ); | |
50 | txOutResponse.assetId( addressInputOutputProjection.getAssetId() ); | |
51 | txOutResponse.stakeAddress( addressInputOutputProjection.getStakeAddress() ); | |
52 | ||
53 |
1
1. fromStakeAddressInputOutput : replaced return value with null for org/cardanofoundation/explorer/api/mapper/TxOutMapperImpl::fromStakeAddressInputOutput → NO_COVERAGE |
return txOutResponse.build(); |
54 | } | |
55 | } | |
Mutations | ||
18 |
1.1 |
|
26 |
1.1 |
|
33 |
1.1 |
|
38 |
1.1 |
|
45 |
1.1 |
|
53 |
1.1 |