Find the functions the coverage report leaves out of its 100% #8
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Nostro#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tests/coverage.shends on lines, functions and regions at 100.00%, and the guide and commit messages quote that. The same report prints, before and after its table:llvm-cov drops a function's record when its profile does not match its coverage mapping. So the 100% is of what was counted, and 57 records are in neither the covered nor the missed column. Whether the same functions are counted through another executable's record is part of what is not known.
Found by the pre-push review of 1.0.0 (the commit-truth lens), reading the captured report. It is not that release's doing: at the commit before it (
564fcdf) the report says 58, and at the release's own change (b43ab12) 57. Whether it was there on 2026-11-19, when the guide records the 100%, was not checked.Where
tests/coverage.shmerges every process's profile into one (llvm-profdata merge -sparse) and reports over all the test executables at once (llvm-cov report, thenllvm-cov show). The script checks that no source of the toolkit and the app is missing from the report, and prints every line no test ran. It does not look at the warning.What is not known
Which functions they are, and why they mismatch. A function has one name and two hashes when the same source is compiled into two executables in two shapes. Candidates here, none of them checked: what
tests/Support/*.incdefines, included into several tests with different things in scope;implementations/main.cppandnostrod.cpp, compiled into tests withmainrenamed; inline functions and templates of the module interfaces, instantiated per test.What it would take
-dump) that should name each record it found no profile for; that was not tried.What was run, and what was read
Run:
tests/coverage.shwith the host's profile runtime (clang 23'slibclang_rt.profile.a). Atb43ab12, whose code is that of8dd31e2but for the version, the totals are 5143 regions, 1040 functions and 9561 lines at 100.00%, branches at 95.70%, and the warning says 57. At564fcdf, the commit before the release's range: 5040 regions, 1055 functions and 9615 lines at 100.00%, branches at 95.72%, and the warning says 58. Nothing beyond that: no list of the functions was made.