< Summary

Information
Class: Cover.SumCode
Assembly: Cover
File(s): C:\dev\CoverageReportGeneratorDemo\Cover\SumCode.cs
Line coverage
50%
Covered lines: 3
Uncovered lines: 3
Coverable lines: 6
Total lines: 22
Line coverage: 50%
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
Sum(...)100%11100%
Sum2(...)100%210%

File(s)

C:\dev\CoverageReportGeneratorDemo\Cover\SumCode.cs

#LineLine coverage
 1using System.Diagnostics.CodeAnalysis;
 2
 3namespace Cover;
 4
 5public class SumCode
 6{
 7    public static int Sum(int a, int b)
 18    {
 19        return a + b;
 110    }
 11
 12    public static int Sum2(int a, int b)
 013    {
 014        return a + b;
 015    }
 16
 17    [ExcludeFromCodeCoverage]
 18    public static int Sum3(int a, int b)
 19    {
 20        return a + b;
 21    }
 22}