< Summary - Syki

Information
Class: Syki.Back.Features.Identity.GetRoles.GetRolesItemOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/GetRoles/GetRolesOut.cs
Tag: 97_27801654829
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 21
Line coverage: 100%
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
get_Id()100%11100%
get_Name()100%11100%
get_Description()100%11100%
get_BaseType()100%11100%
get_Permissions()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/GetRoles/GetRolesOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Identity.GetRoles;
 2
 3public class GetRolesOut : IApiDto<GetRolesOut>
 4{
 5    public int Total { get; set; }
 6    public List<GetRolesItemOut> Items { get; set; } = [];
 7
 8    public static IEnumerable<(string, GetRolesOut)> GetExamples() =>
 9    [
 10        ("Exemplo", new() { Total = 1, Items = [new() { Id = 1, Name = "Admin", Description = "Perfil de administrador",
 11    ];
 12}
 13
 14public class GetRolesItemOut
 15{
 1216    public int Id { get; set; }
 1617    public string Name { get; set; }
 1218    public string Description { get; set; }
 1219    public UserType BaseType { get; set; }
 1220    public int Permissions { get; set; }
 21}