Exclude tor-bytes fuzzing helper code from tarpaulin coverage.
This commit is contained in:
parent
358b3e1ea0
commit
353a16ce7e
|
@ -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::*;
|
||||||
|
|
Loading…
Reference in New Issue