< Summary

Information
Class: Syki.Shared.GuidExtensions
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Extensions/GuidExtensions.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 10
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
ToHashCode(...)100%11100%

File(s)

/home/runner/work/syki/syki/Shared/Extensions/GuidExtensions.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public static class GuidExtensions
 4{
 5    public static int ToHashCode(this Guid guid)
 6    {
 67        var justNumbers = guid.ToString().OnlyNumbers();
 68        return int.Parse(justNumbers[..8]);
 9    }
 10}

Methods/Properties

ToHashCode(System.Guid)