Skip to content

Commit

Permalink
Exclude some standard instances from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 13, 2023
1 parent ecc0fd8 commit 3ce58af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/driver/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ impl<Ctx> fmt::Display for Error<Ctx>
where
Ctx: Context,
{
#[cfg_attr(coverage_nightly, coverage(off))]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Error::NoValueToPropose => write!(f, "No value to propose"),
Expand All @@ -42,6 +43,7 @@ impl<Ctx> PartialEq for Error<Ctx>
where
Ctx: Context,
{
#[cfg_attr(coverage_nightly, coverage(off))]
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Error::NoValueToPropose, Error::NoValueToPropose) => true,
Expand Down
1 change: 1 addition & 0 deletions Code/test/src/validator_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl Address {
}

impl fmt::Display for Address {
#[cfg_attr(coverage_nightly, coverage(off))]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
for byte in self.0.iter() {
write!(f, "{:02x}", byte)?;
Expand Down

0 comments on commit 3ce58af

Please sign in to comment.