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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ exclude:
140
140
141
141
### Exclude code from coverage statistics with comment annotation
142
142
143
-
For cases where there is a code block that does not need to be tested, it can be ignored from coverage statistics by adding the comment `// coverage-ignore` at the start line of the code block.
143
+
For cases where there is a code block that does not need to be tested, it can be ignored from coverage statistics by adding the comment `// coverage-ignore` at the start line of the statement body (right after `{`).
Similarly, the entire function can be excluded from coverage statistics when a comment is found at the start line of the function body.
154
+
Similarly, the entire function can be excluded from coverage statistics when a comment is found at the start line of the function body (right after `{`).
0 commit comments