We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d97b3a commit bf96bf9Copy full SHA for bf96bf9
1 file changed
.github/workflows/ci.yml
@@ -75,9 +75,16 @@ jobs:
75
fi
76
77
# Strip GPU renderer paths that are physically untestable in a headless VM.
78
+ # lcov 2.0+ requires explicitly ignoring "empty" function coverage errors.
79
+ if lcov --version | grep -q 'lcov: LCOV version 2'; then
80
+ IGNORE_FLAGS="--ignore-errors unused,empty"
81
+ else
82
+ IGNORE_FLAGS="--ignore-errors unused"
83
+ fi
84
+
85
lcov --remove coverage/lcov.info \
86
'lib/src/renderer/*' \
- --ignore-errors unused \
87
+ $IGNORE_FLAGS \
88
-o coverage/lcov_effective.info
89
90
TOTAL=$(lcov --summary coverage/lcov_effective.info 2>&1 \
0 commit comments