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 868004b

Browse filesBrowse files
authored
Merge pull request #26130 from oscargus/lcovbranch
Enable branch coverage for C/C++ code
2 parents 503432a + 6b9ce11 commit 868004b
Copy full SHA for 868004b

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
@@ -313,10 +313,10 @@ jobs:
313313
314314
- name: Filter C coverage
315315
run: |
316-
lcov --capture --directory . --output-file coverage.info
317-
lcov --output-file coverage.info \
316+
lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file coverage.info
317+
lcov --rc lcov_branch_coverage=1 --output-file coverage.info \
318318
--extract coverage.info $PWD/src/'*' $PWD/lib/'*'
319-
lcov --list coverage.info
319+
lcov --rc lcov_branch_coverage=1 --list coverage.info
320320
find . -name '*.gc*' -delete
321321
if: ${{ runner.os != 'macOS' }}
322322
- 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.