< Summary

Information
Class: Syki.Front.Features.Student.GetStudentAverageNote.GetStudentAverageNoteClient
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Student/GetStudentAverageNote/GetStudentAverageNoteClient.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 9
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
Get()50%22100%

File(s)

/home/runner/work/syki/syki/Front/Features/Student/GetStudentAverageNote/GetStudentAverageNoteClient.cs

#LineLine coverage
 1namespace Syki.Front.Features.Student.GetStudentAverageNote;
 2
 23public class GetStudentAverageNoteClient(HttpClient http) : IStudentClient
 4{
 5    public async Task<GetStudentAverageNoteOut> Get()
 6    {
 27        return await http.GetFromJsonAsync<GetStudentAverageNoteOut>("/student/average-note") ?? new();
 28    }
 9}