< Summary

Information
Class: Syki.Shared.ResultExtensions
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Extensions/ResultExtensions.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
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
IsSuccess(...)100%11100%
GetSuccess(...)100%11100%
IsError(...)100%11100%
GetError(...)100%11100%

File(s)

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

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public static class ResultExtensions
 4{
 3995    public static bool IsSuccess<S, E>(this OneOf<S, E> value) => value.IsT0;
 28616    public static S GetSuccess<S, E>(this OneOf<S, E> value) => value.AsT0;
 7
 22598    public static bool IsError<S, E>(this OneOf<S, E> value) => value.IsT1;
 4979    public static E GetError<S, E>(this OneOf<S, E> value) => value.AsT1;
 10}