1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
fn main() {}
#[cfg(test)]
mod tcp_tests {
#[test_with::tcp(8.8.8.8:53)]
#[test]
fn test_works() {
assert!(true);
}
#[test_with::tcp(193.194.195.196)]
#[test]
fn test_ignored() {
panic!("should be ignored")
}
}
#[test_with::tcp(8.8.8.8:53)]
pub mod workable_tcp_mod {
#[test]
fn test_works() {
assert!(true);
}
}
#[test_with::tcp(193.194.195.196)]
pub mod ignore_pub_tcp_mod {
#[test]
fn test_ignored() {
panic!("should be ignored")
}
}
#[test_with::tcp(193.194.195.196)]
mod ignore_private_tcp_mod {
#[test]
fn test_ignored() {
panic!("should be ignored")
}
}
#[test_with::tcp(193.194.195.196)]
#[cfg(test)]
pub mod ignore_pub_test_tcp_mod {
#[test]
fn test_ignored() {
panic!("should be ignored")
}
}
|