AddressMapperImpl.java

1
package org.cardanofoundation.explorer.api.mapper;
2
3
import javax.annotation.processing.Generated;
4
import org.cardanofoundation.explorer.api.model.response.address.AddressResponse;
5
import org.cardanofoundation.explorer.common.entity.ledgersyncsagg.Address;
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 AddressMapperImpl implements AddressMapper {
15
16
    @Override
17
    public AddressResponse fromAddress(Address address) {
18 1 1. fromAddress : negated conditional → NO_COVERAGE
        if ( address == null ) {
19
            return null;
20
        }
21
22
        AddressResponse.AddressResponseBuilder addressResponse = AddressResponse.builder();
23
24
        addressResponse.address( address.getAddress() );
25
        addressResponse.stakeAddress( address.getStakeAddress() );
26
27 1 1. fromAddress : replaced return value with null for org/cardanofoundation/explorer/api/mapper/AddressMapperImpl::fromAddress → NO_COVERAGE
        return addressResponse.build();
28
    }
29
}

Mutations

18

1.1
Location : fromAddress
Killed by : none
negated conditional → NO_COVERAGE

27

1.1
Location : fromAddress
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/mapper/AddressMapperImpl::fromAddress → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.14.2