How can we include modules defined in lib.rs using pub mod in the line coverage generated . It seems only main.rs file is covered while passing flags:[ "-Z instrument-coverage" ] in the Android.bp file
Modules shouldn't have any influence over debugging information. In the generated code it doesn't matter if something was
pub or not.
Perhaps the functions you're trying to see were inlined? Try adding
#[inline(never)] on functions.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.