-
-
Notifications
You must be signed in to change notification settings - Fork 284
Calculation details
This page explains how ReportGenerator calculates its metrics.
Assemblies: The number of assemblies.
Classes: The number of all classes in all assemblies. Nested classes are excluded.
Files: The number of distinct files containing classes.
Covered lines: The number of lines that got executed at least once. Most coverage tools don't track by line, but by sequence point. One sequence point can span several lines of code. Sequence points are mapped to the corresponding lines of code.
Uncovered lines: The number of lines that never got executed.
Coverable lines: The number of lines that can be executed. Lines containing comments or method signatures can not be executed.
Total lines: The total number of lines. The number of lines of all files is summed up.
Line coverage: Covered lines devided by Coverable lines. Only available if Coverable lines is greater than 0.
Branch coverage: Covered branches devided by Total branches. Only available if Total branches is greater than 0.
Covered branches is the number of executed branches. Total branches is the total number of branches.
Only "real" branches (<BranchPoint>
in OpenCover XML) are taken into account.
OpenCover counts differently here, it counts one extra branch per method.