You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inst/package/codecoverage_explanation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
- Covered = Number of lines covered by a test
8
8
- Missed = Number of lines not covered by a test
9
9
- Hits/Line = Corresponds to the average number of times specific lines are tested in the file.
10
-
+ In other words, if I have an 11-lines file where (1) the first 6 lines are tested 4 times, (2) the seventh is tested 1 time, (3) the last 4 are tested 10 times. The calculation is then: ((6 * 4) + 1 + (10 * 4))/11 = 6. This gives the average number of times a line is tested, here 6.
10
+
+ In other words, if I have an 11-lines file where (1) the first 6 lines are tested 4 times, (2) the seventh is tested 1 time, (3) the last 4 are tested 10 times. The calculation is then: ((6 * 4) + (1 * 1) + (4 * 10))/11 = 6. This gives the average number of times a line is tested, here 6.
11
11
- Coverage = corresponds to the percentage of lines covered by a test. Calculation: Covered / Relevant * 100, number of lines covered by a test divided by the number of lines requiring testing.
12
12
- If we go into detail by file, the color code is as follows:
13
13
- green line = line tested by at least one test (the x? corresponds to the number of times the line is tested)
0 commit comments