< Summary - Syki

Information
Class: Syki.Shared.Auth.SykiFeature
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Auth/ExatoFeature.cs
Tag: 36_19195353031
Line coverage
68%
Covered lines: 11
Uncovered lines: 5
Coverable lines: 16
Total lines: 39
Line coverage: 68.7%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
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_GroupId()100%11100%
.ctor()100%210%
.ctor(...)100%11100%
Equals(...)0%620%
GetHashCode()100%210%
ToString()100%210%

File(s)

/home/runner/work/syki/syki/Shared/Auth/ExatoFeature.cs

#LineLine coverage
 1namespace Syki.Shared.Auth;
 2
 3/// <summary>
 4/// Representa uma funcionalidade do sistema.
 5/// </summary>
 6public class SykiFeature
 7{
 1908    public int Id { get; set; }
 769    public string Name { get; set; }
 14010    public int GroupId { get; set; }
 11
 012    public SykiFeature() { }
 13
 3814    public SykiFeature(
 3815        int groupId,
 3816        int id,
 3817        string name)
 18    {
 3819        GroupId = groupId;
 3820        Id = id;
 3821        Name = name;
 3822    }
 23
 24    public override bool Equals(object? obj)
 25    {
 026        if (obj is null) return false;
 027        return Id == ((SykiFeature)obj).Id;
 28    }
 29
 30    public override int GetHashCode()
 31    {
 032        return Id;
 33    }
 34
 35    public override string ToString()
 36    {
 037        return Name;
 38    }
 39}