1 | package org.cardanofoundation.explorer.api.mapper; | |
2 | ||
3 | import javax.annotation.processing.Generated; | |
4 | import org.cardanofoundation.explorer.api.model.response.tx.TxReferenceInput; | |
5 | import org.cardanofoundation.explorer.api.projection.ReferenceInputProjection; | |
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 TxReferenceInputMapperImpl implements TxReferenceInputMapper { | |
15 | ||
16 | @Override | |
17 | public TxReferenceInput fromReferenceInputProjectionTxReferenceInput(ReferenceInputProjection projection) { | |
18 |
1
1. fromReferenceInputProjectionTxReferenceInput : negated conditional → NO_COVERAGE |
if ( projection == null ) { |
19 | return null; | |
20 | } | |
21 | ||
22 | TxReferenceInput.TxReferenceInputBuilder txReferenceInput = TxReferenceInput.builder(); | |
23 | ||
24 | txReferenceInput.datum( bytesToString( projection.getDatumBytes() ) ); | |
25 | txReferenceInput.script( bytesToString( projection.getScriptBytes() ) ); | |
26 | txReferenceInput.address( projection.getAddress() ); | |
27 | txReferenceInput.index( projection.getIndex() ); | |
28 | txReferenceInput.txHash( projection.getTxHash() ); | |
29 | txReferenceInput.value( projection.getValue() ); | |
30 | txReferenceInput.datumHash( projection.getDatumHash() ); | |
31 | txReferenceInput.scriptHash( projection.getScriptHash() ); | |
32 | ||
33 |
1
1. fromReferenceInputProjectionTxReferenceInput : replaced return value with null for org/cardanofoundation/explorer/api/mapper/TxReferenceInputMapperImpl::fromReferenceInputProjectionTxReferenceInput → NO_COVERAGE |
return txReferenceInput.build(); |
34 | } | |
35 | } | |
Mutations | ||
18 |
1.1 |
|
33 |
1.1 |