< Summary - Syki

Information
Class: Syki.Shared.TeacherClassStudentOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClass/TeacherClassStudentOut.cs
Tag: 4_16869239191
Line coverage
71%
Covered lines: 5
Uncovered lines: 2
Coverable lines: 7
Total lines: 17
Line coverage: 71.4%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_Name()100%11100%
get_Frequency()100%11100%
get_AverageNote()100%11100%
get_Notes()100%11100%
GetNote(...)0%620%

File(s)

/home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClass/TeacherClassStudentOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class TeacherClassStudentOut
 4{
 285    public Guid Id { get; set; }
 126    public string Name { get; set; }
 127    public decimal Frequency { get; set; }
 108    public decimal AverageNote { get; set; }
 309    public List<StudentClassNoteOut> Notes { get; set; } = [];
 10
 11    public string GetNote(ClassNoteType type)
 12    {
 013        var item = Notes.Where(x => x.Type == type).FirstOrDefault();
 14
 015        return item != null ? item.Note.Format() : "-";
 16    }
 17}