identifying uncovered (executable) lines from the XML export

Author: drzrafCreated Jul 28, 2025Updated Jul 28, 2025

XML reports (executable) covered lines and all lines (in <source>). That also mean both uncovered lines and non-executable lines are absent. As such, it seems impossible to only extract uncovered lines. What would you suggest to use?

/edit (Actually used: xmlstarlet sel -t -m "//file/line[@count=0]" -v "../@name" -o " num:" -v "@num" -n clover-coverage.xml)

Source: sebastianbergmann/php-code-coverage