Skip to content

Commit

Permalink
Tweak the coverage configuration
Browse files Browse the repository at this point in the history
proc-macros are badly supported by tarpaulin, leading to mostly
uncovered lines, so we exclude them from the reporting.
The `content` module is copied from `serde` but without extensive tests.
  • Loading branch information
jonasbb committed Apr 2, 2023
1 parent 7d670c2 commit af69c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serde_with/src/content/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
//!
//! <https://github.com/serde-rs/serde/blob/55a7cedd737278a9d75a2efd038c6f38b8c38bd6/serde/src/private/ser.rs#L338-L997>
#![cfg(not(tarpaulin_include))]

pub(crate) mod de;
pub(crate) mod ser;
2 changes: 2 additions & 0 deletions serde_with_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#![allow(renamed_and_removed_lints)]
// Necessary for nightly clippy lints
#![allow(clippy::unknown_clippy_lints)]
// Tarpaulin does not work well with proc macros and marks most of the lines as uncovered.
#![cfg(not(tarpaulin_include))]

//! proc-macro extensions for [`serde_with`].
//!
Expand Down

0 comments on commit af69c44

Please sign in to comment.