(version: &str)
| 111 | } |
| 112 | |
| 113 | pub fn get_version_number(version: &str) -> i64 { |
| 114 | let mut n = 0; |
| 115 | for x in version.split(".") { |
| 116 | n = n * 10000 + x.parse::<i64>().unwrap_or(0); |
| 117 | } |
| 118 | n |
| 119 | } |
| 120 | |
| 121 | pub fn get_platform() -> String { |
| 122 | #[cfg(all(target_os = "linux", target_arch = "x86_64"))] |
no outgoing calls
no test coverage detected