Skip to content

Commit

Permalink
Exclude manual impls from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Dec 6, 2023
1 parent 20b4ef3 commit b8e0f9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/round/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ where
}

impl<Ctx: Context> Clone for Input<Ctx> {
#[cfg_attr(coverage_nightly, coverage(off))]
fn clone(&self) -> Self {
match self {
Input::NewRound => Input::NewRound,
Expand Down Expand Up @@ -108,6 +109,7 @@ impl<Ctx: Context> Clone for Input<Ctx> {
}

impl<Ctx: Context> PartialEq for Input<Ctx> {
#[cfg_attr(coverage_nightly, coverage(off))]
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Input::NewRound, Input::NewRound) => true,
Expand Down Expand Up @@ -158,6 +160,7 @@ where
Ctx::Value: fmt::Debug,
Ctx::Proposal: fmt::Debug,
{
#[cfg_attr(coverage_nightly, coverage(off))]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Input::NewRound => write!(f, "NewRound"),
Expand Down

0 comments on commit b8e0f9c

Please sign in to comment.