8000 Enable branch coverage for C/C++ code · matplotlib/matplotlib@6b9ce11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b9ce11

Browse files
committed
Enable branch coverage for C/C++ code
1 parent fa21b42 commit 6b9ce11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ jobs:
307307
308308
- name: Filter C coverage
309309
run: |
310-
lcov --capture --directory . --output-file coverage.info
311-
lcov --output-file coverage.info \
310+
lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file coverage.info
311+
lcov --rc lcov_branch_coverage=1 --output-file coverage.info \
312312
--extract coverage.info $PWD/src/'*' $PWD/lib/'*'
313-
lcov --list coverage.info
313+
lcov --rc lcov_branch_coverage=1 --list coverage.info
314314
find . -name '*.gc*' -delete
315315
if: ${{ runner.os != 'macOS' }}
316316
- name: Upload code coverage

0 commit comments

Comments
 (0)
0