Skip to content

Commit 337c47f

Browse files
committed
* .github/workflows/R.yml (coverage): Exclude (DEBUG1|DEBUG2|DEBUG3)(_PRINT)?.
* python/pyproject.toml: Same.
1 parent b995339 commit 337c47f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/R.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
run: |
158158
exclude_pattern = rex::rex(or(group(or("#", "//"), any_spaces, "nocov"),
159159
group(or("ASSUME", "unreachable"), maybe(" "), "("),
160-
group(or("DEBUG2_PRINT", "DEBUG2")),
160+
group(or("DEBUG1", "DEBUG2, "DEBUG3"), maybe("_PRINT")),
161161
group(or("GCOV", "GCOVR", "LCOV"), "_EXCL_LINE")))
162162
options(covr.gcov_additional_paths="c",
163163
covr.filter_non_package=FALSE,

python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ addopts = [ "--import-mode=importlib", "--durations=5", "--durations-min=1.0" ]
217217
# Same as tool.gcovr.exclude-lines-by-pattern.
218218
exclude_also = [
219219
"^.*(?:#|//)\\s+nocov",
220-
"^.*\\b(?:ASSUME|DEBUG2|DEBUG2_PRINT)\\s?\\(",
220+
"^.*\\b(?:ASSUME|(?:DEBUG1|DEBUG2|DEBUG3)(?:_PRINT)?)\\s?\\(",
221221
"^.*\\bunreachable\\s?\\(\\)",
222222
"^.*(?:GCOVR?|LCOV)_EXCL_LINE",
223223
]
@@ -228,7 +228,7 @@ branch = true
228228
# The regex must match the start of the line.
229229
exclude-lines-by-pattern = [
230230
"^.*(?:#|//)\\s+nocov",
231-
"^.*\\b(?:ASSUME|DEBUG2|DEBUG2_PRINT)\\s?\\(",
231+
"^.*\\b(?:ASSUME|(?:DEBUG1|DEBUG2|DEBUG3)(?:_PRINT)?)\\s?\\(",
232232
"^.*\\bunreachable\\s?\\(\\)",
233233
"^.*(?:GCOVR?|LCOV)_EXCL_LINE",
234234
]

0 commit comments

Comments
 (0)