< Summary - Syki

Information
Class: Syki.Back.Features.Students.GetStudents.GetStudentsMapper
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Students/GetStudents/GetStudentsMapper.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 21
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
ToGetStudentsItemOut(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Students/GetStudents/GetStudentsMapper.cs

#LineLine coverage
 1using Syki.Back.Domain.Students;
 2
 3namespace Syki.Back.Features.Students.GetStudents;
 4
 5public static class GetStudentsMapper
 6{
 7    extension(SykiStudent student)
 8    {
 9        public GetStudentsItemOut ToGetStudentsItemOut()
 10        {
 411            return new()
 412            {
 413                Id = student.Id,
 414                Name = student.Name,
 415                Email = student.User!.Email!,
 416                EnrollmentCode = student.EnrollmentCode,
 417                Status = student.Status,
 418            };
 19        }
 20    }
 21}