Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b9ce11

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.