| Class: | Api.Utils.MapperUtils |
|---|---|
| Assembly: | Api |
| File(s): | /home/runner/work/ProjectRead.ing/ProjectRead.ing/Api/Utils/MapperUtils.cs |
| Covered lines: | 1 |
|---|---|
| Uncovered lines: | 0 |
| Coverable lines: | 1 |
| Total lines: | 15 |
| Line coverage: | 100% |
| Covered branches: | 0 |
|---|---|
| Total branches: | 0 |
| Branch coverage: | N/A |
Feature is only available for sponsors
Upgrade to PRO version| Method | Branch coverage | Crap Score | Cyclomatic complexity | Line coverage |
|---|---|---|---|---|
| FromInstantToZonedDateTime(...) | 100% | 1 | 1 | 100% |
| # | Line | Line coverage | ||
|---|---|---|---|---|
1 | // SPDX-FileCopyrightText: 2026 Alper Çelik <[email protected]> | |||
2 | // | |||
3 | // SPDX-License-Identifier: AGPL-3.0-or-later | |||
4 | | |||
5 | using NodaTime; | |||
6 | using Riok.Mapperly.Abstractions; | |||
7 | | |||
8 | namespace Api.Utils; | |||
9 | | |||
10 | [Mapper] | |||
11 | public static partial class MapperUtils | |||
12 | { | |||
13 | [UserMapping(Default = true)] | |||
| 1 | 14 | public static ZonedDateTime FromInstantToZonedDateTime(Instant i) => i.InUtc(); | ||
15 | } |