Closed mehcode closed 7 years ago
Unfortunately this is a known limitation.
If a generic function is never used, they are not instantiated and won't be sent to LLVM. Coverage information is generated by an LLVM pass. Since LLVM never sees these functions, they will be ignored in the coverage report.
The only solution is to generate coverage information by rustc itself.
Is this a known limitation or am I doing something wrong?
Ran
On https://github.com/mehcode/wadatsumi
This crate seems to pick up a lot more than kcov so that's a plus (kcov misses the entire
cpu/
directory).It's missing files that are wholly compromised of generics and greys out code that is generics.