< Summary

Information
Class: Syki.Back.Features.Cross.SkipUserRegister.SkipUserRegisterController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Cross/SkipUserRegister/SkipUserRegisterController.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 22
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%
Skip()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Cross/SkipUserRegister/SkipUserRegisterController.cs

#LineLine coverage
 1using Syki.Back.Auth;
 2
 3namespace Syki.Back.Features.Cross.SkipUserRegister;
 4
 5/// <summary>
 6/// Loga direto no sistema, pulando a fase de Cadastro.
 7/// Endpoint habilitado apenas em momentos pontuais para demonstração.
 8/// </summary>
 9[ApiController]
 10[EnableRateLimiting("VerySmall")]
 11[Consumes("application/json"), Produces("application/json")]
 012public class SkipUserRegisterController(SkipUserRegisterService service) : ControllerBase
 13{
 14    [HttpPost("skip-user-register")]
 15    [Authorize(BackPolicy.SkipUserRegister)]
 16    public async Task<IActionResult> Skip([FromBody] SkipUserRegisterLoginIn data)
 17    {
 018        var result = await service.Skip(data);
 19
 020        return result.Match<IActionResult>(Ok, BadRequest);
 021    }
 22}