Exclude tor-bytes fuzzing helper code from tarpaulin coverage.

This commit is contained in:
Nick Mathewson 2021-09-07 13:30:53 -04:00
parent 358b3e1ea0
commit 353a16ce7e
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ struct Example {
ops: Vec<Op>, ops: Vec<Op>,
} }
#[cfg(fuzzing)] #[cfg(not(tarpaulin_include))]
impl Example { impl Example {
fn run(self) { fn run(self) {
let mut r = Reader::from_slice(&self.input[..]); let mut r = Reader::from_slice(&self.input[..]);
@ -41,7 +41,7 @@ impl Example {
} }
} }
#[cfg(fuzzing)] #[cfg(not(tarpaulin_include))]
impl Op { impl Op {
fn run(self, r: &mut Reader) { fn run(self, r: &mut Reader) {
use Op::*; use Op::*;