< Summary

Information
Class: Syki.Shared.CourseOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/CreateCourse/CourseOut.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 29
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
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_Type()100%11100%
Equals(...)100%22100%
GetHashCode()100%11100%
ToString()100%11100%
op_Implicit(...)100%11100%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/CreateCourse/CourseOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class CourseOut
 4{
 30215    public Guid Id { get; set; }
 8056    public string Name { get; set; }
 7917    public CourseType Type { get; set; }
 8
 9    public override bool Equals(object? obj)
 10    {
 411        if (obj is null) return false;
 212        return Id == ((CourseOut)obj).Id;
 13    }
 14
 15    public override int GetHashCode()
 16    {
 117        return Id.ToHashCode();
 18    }
 19
 20    public override string ToString()
 21    {
 122        return Name;
 23    }
 24
 25    public static implicit operator CourseOut(OneOf<CourseOut, ErrorOut> value)
 26    {
 24027        return value.GetSuccess();
 28    }
 29}