()
| 5 | use hbb_common::platform::macos; |
| 6 | |
| 7 | fn main() { |
| 8 | #[cfg(target_os = "linux")] |
| 9 | let res = linux::system_message("test title", "test message", true); |
| 10 | #[cfg(target_os = "macos")] |
| 11 | let res = macos::alert( |
| 12 | "System Preferences".to_owned(), |
| 13 | "warning".to_owned(), |
| 14 | "test title".to_owned(), |
| 15 | "test message".to_owned(), |
| 16 | ["Ok".to_owned()].to_vec(), |
| 17 | ); |
| 18 | #[cfg(any(target_os = "linux", target_os = "macos"))] |
| 19 | println!("result {:?}", &res); |
| 20 | } |
nothing calls this directly
no test coverage detected