mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-24 21:36:48 +00:00
15 lines
245 B
Rust
15 lines
245 B
Rust
cfg_if::cfg_if! {
|
|
if #[cfg(foo)] {
|
|
fn works() -> bool { false }
|
|
} else if #[cfg(test)] {
|
|
fn works() -> bool { true }
|
|
} else {
|
|
fn works() -> bool { false }
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn smoke() {
|
|
assert!(works());
|
|
}
|