< Summary - ZhEaIsNsAaBn.Libraries coverage (affected: 23 packages)

Information
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 12
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Result(...)50%22100%

File(s)

/home/runner/work/ZhEaIsNsAaBn.Libraries.V1/ZhEaIsNsAaBn.Libraries.V1/src/DataBasePackages/ZhEaIsNsAaBn.DbSeeder/Running/SyncPath.cs

#LineLine coverage
 1namespace ZhEaIsNsAaBn.DbSeeder;
 2
 3/// EF's <c>bool async</c> pattern: the sync API runs the shared implementation with <c>async: false</c>, which complete
 4internal static class SyncPath
 5{
 6    /// Gets the result of a task that must already be complete; never blocks.
 7    /// <exception cref="InvalidOperationException">The task didn't complete synchronously (a provider awaited on the sy
 8    public static T Result< T >( Task<T> task )
 539        => task.IsCompleted
 5310               ? task.GetAwaiter().GetResult()
 5311               : throw new InvalidOperationException( "A sync seed operation went asynchronous: with async = false an IS
 12}