cjermain / rust-python-coverage

Example PyO3 project with automated test coverage for Rust and Python
MIT License
35 stars 6 forks source link

Exclude pymodule line #1

Open cjermain opened 2 years ago

cjermain commented 2 years ago

The #[pymodule] line is the only one not covered in the repo.

https://github.com/cjermain/rust-python-coverage/blob/9ec11bffedcd3f3d9820911d33a5e5eeef06d6d7/src/lib.rs#L16

This issue tracks excluding that code from coverage, or understanding how to include it. The goal is to reach 100% coverage by being explicit about anything that should not be covered.

https://github.com/taiki-e/cargo-llvm-cov#exclude-function-from-coverage

cjermain commented 2 years ago

The reason for the lack of coverage is discussed in https://github.com/rust-lang/rust/issues/84605#issuecomment-998470260.