EpochMapperImpl.java

1
package org.cardanofoundation.explorer.api.mapper;
2
3
import javax.annotation.processing.Generated;
4
import org.cardanofoundation.explorer.api.model.response.EpochResponse;
5
import org.cardanofoundation.explorer.common.entity.ledgersync.Epoch;
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 EpochMapperImpl implements EpochMapper {
15
16
    @Override
17
    public EpochResponse epochToEpochResponse(Epoch epoch) {
18 1 1. epochToEpochResponse : negated conditional → NO_COVERAGE
        if ( epoch == null ) {
19
            return null;
20
        }
21
22
        EpochResponse.EpochResponseBuilder epochResponse = EpochResponse.builder();
23
24
        epochResponse.no( epoch.getNo() );
25
        epochResponse.blkCount( epoch.getBlkCount() );
26
        epochResponse.outSum( epoch.getOutSum() );
27
        epochResponse.txCount( epoch.getTxCount() );
28
        epochResponse.startTime( fromTimestamp( epoch.getStartTime() ) );
29
        epochResponse.endTime( fromTimestamp( epoch.getEndTime() ) );
30
        epochResponse.maxSlot( epoch.getMaxSlot() );
31
        epochResponse.rewardsDistributed( epoch.getRewardsDistributed() );
32
33 1 1. epochToEpochResponse : replaced return value with null for org/cardanofoundation/explorer/api/mapper/EpochMapperImpl::epochToEpochResponse → NO_COVERAGE
        return epochResponse.build();
34
    }
35
}

Mutations

18

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

33

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

Active mutators

Tests examined


Report generated by PIT 1.14.2