< Summary

Information
Class: Api.Utils.MapperUtils
Assembly: Api
File(s): /home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Utils/MapperUtils.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 15
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
FromInstantToZonedDateTime(...)100%11100%

File(s)

/home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Utils/MapperUtils.cs

#LineLine coverage
 1// SPDX-FileCopyrightText: 2026 Alper Çelik <alper@alper-celik.dev>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5using NodaTime;
 6using Riok.Mapperly.Abstractions;
 7
 8namespace Api.Utils;
 9
 10[Mapper]
 11public static partial class MapperUtils
 12{
 13    [UserMapping(Default = true)]
 114    public static ZonedDateTime FromInstantToZonedDateTime(Instant i) => i.InUtc();
 15}