add cfg test

this adds cfg-test for
test modules
This commit is contained in:
JettChenT 2023-05-26 10:53:14 +08:00 committed by Conrad Kramer
parent cdea9eba8c
commit 5baf86d975
2 changed files with 2 additions and 0 deletions

View file

@ -122,6 +122,7 @@ impl TunInterface {
}
}
#[cfg(test)]
mod test {
use super::*;
use std::net::Ipv4Addr;

View file

@ -120,6 +120,7 @@ impl TunInterface {
}
}
#[cfg(test)]
mod test {
use super::TunInterface;
use std::net::Ipv4Addr;