< Summary - Syki

Information
Class: Syki.Back.Features.Academic.GetCampusStudents.GetCampusStudentsController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/GetCampusStudents/GetCampusStudentsController.cs
Tag: 21_17346963026
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 19
Line coverage: 0%
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
.ctor(...)100%210%
Get()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/GetCampusStudents/GetCampusStudentsController.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.GetCampusStudents;
 2
 3[ApiController, AuthAcademic]
 4[EnableRateLimiting("Medium")]
 05public class GetCampusStudentsController(GetCampusStudentsService service) : ControllerBase
 6{
 7    /// <summary>
 8    /// Alunos do campus
 9    /// </summary>
 10    /// <remarks>
 11    /// Retorna todos os alunos do campus especificado.
 12    /// </remarks>
 13    [HttpGet("academic/campi/{id}/students")]
 14    public async Task<IActionResult> Get([FromRoute] Guid id)
 15    {
 016        var students = await service.Get(id);
 017        return Ok(students);
 018    }
 19}