< Summary

Information
Class: Syki.Front.Features.Academic.GetAcademicClasses.GetAcademicClassesClient
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Academic/GetClasses/GetClassesClient.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 10
Line coverage: 100%
Branch coverage
83%
Covered branches: 5
Total branches: 6
Branch coverage: 83.3%
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()83.33%66100%

File(s)

/home/runner/work/syki/syki/Front/Features/Academic/GetClasses/GetClassesClient.cs

#LineLine coverage
 1namespace Syki.Front.Features.Academic.GetAcademicClasses;
 2
 43public class GetAcademicClassesClient(HttpClient http) : IAcademicClient
 4{
 5    public async Task<List<ClassOut>> Get(GetAcademicClassesIn? query = null)
 6    {
 47        var queryString = query?.Status != null ? $"?status={query.Status}" : "";
 48        return await http.GetFromJsonAsync<List<ClassOut>>($"/academic/classes{queryString}") ?? [];
 49    }
 10}