< Summary - Syki

Information
Class: Syki.Back.Features.Periods.GetAcademicPeriods.GetAcademicPeriodsMapper
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Periods/GetAcademicPeriods/GetAcademicPeriodsMapper.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 20
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
ToGetAcademicPeriodsItemOut(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Periods/GetAcademicPeriods/GetAcademicPeriodsMapper.cs

#LineLine coverage
 1using Syki.Back.Domain.Periods;
 2
 3namespace Syki.Back.Features.Periods.GetAcademicPeriods;
 4
 5public static class GetAcademicPeriodsMapper
 6{
 7    extension(AcademicPeriod period)
 8    {
 9        public GetAcademicPeriodsItemOut ToGetAcademicPeriodsItemOut()
 10        {
 411            return new()
 412            {
 413                Id = period.Id,
 414                Name = period.Name,
 415                StartAt = period.StartAt,
 416                EndAt = period.EndAt,
 417            };
 18        }
 19    }
 20}