< Summary - Syki

Information
Class: Syki.Shared.CrossLoginOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/CrossLogin/CrossLoginOut.cs
Tag: 36_19195353031
Line coverage
60%
Covered lines: 6
Uncovered lines: 4
Coverable lines: 10
Total lines: 21
Line coverage: 60%
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_AccessToken()100%11100%
get_Id()100%11100%
get_Name()100%11100%
get_Email()100%11100%
get_Role()100%11100%
GetExamples()100%210%
op_Implicit(...)100%11100%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/CrossLogin/CrossLoginOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class CrossLoginOut : IApiDto<CrossLoginOut>
 4{
 245    public string AccessToken { get; set; }
 206    public Guid Id { get; set; }
 207    public string Name { get; set; }
 208    public string Email { get; set; }
 209    public UserRole Role { get; set; }
 10
 11    public static IEnumerable<(string, CrossLoginOut)> GetExamples() =>
 012    [
 013        ("Aluno", new() { Id = Guid.CreateVersion7(), Name = "Carlos Nobre", Email = "carlos.nobre@syki.com", Role = Use
 014        ("Professor", new() { Id = Guid.CreateVersion7(), Name = "Josenilton Gomes", Email = "josenilton.gomes@syki.com"
 015    ];
 16
 17    public static implicit operator CrossLoginOut(OneOf<CrossLoginOut, ErrorOut> value)
 18    {
 419        return value.Success;
 20    }
 21}