rust_covfix/lib.rs
1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3//! Fix rust coverage based on source code.
4//!
5//! Correct coverage is useful if you want to know what kind of tests you should write
6//! to avoid bugs in your project.
7//! This crate offers utilities to read coverage information from file,
8//! fix that information by choosing the rules, and save coverage into file.
9//!
10//! This crate is very customizable.
11//! You can also create custom reader/writer by implementing
12//! `CoverageReader`/`CoverageWriter` trait. If you want to define a new rule to
13//! fix the coverage, implement `Rule` trait.
14
15#[macro_use]
16mod logger;
17pub use logger::*;
18
19mod coverage;
20pub use coverage::*;
21
22mod fix;
23pub use fix::*;
24
25pub mod rule;
26
27pub mod error;
28
29#[cfg(feature = "lcov")]
30#[cfg_attr(docsrs, doc(cfg(feature = "lcov")))]
31mod lcov;
32
33pub mod parser {
34 #[cfg(feature = "lcov")]
35 #[cfg_attr(docsrs, doc(cfg(feature = "lcov")))]
36 pub use super::lcov::*;
37}