< Summary

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

File(s)

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

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public static class DateTimeExtensions
 4{
 5    public static string Format(this DateTime dateTime)
 6    {
 07        return dateTime.ToString("dd/MM/yyy HH:mm");
 8    }
 9
 10    public static DateTime ToDateTime(this DateOnly date)
 11    {
 012        return date.ToDateTime(TimeOnly.MinValue);
 13    }
 14}