summaryrefslogtreecommitdiffstats
path: root/vendor/os_info/src/unknown/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/os_info/src/unknown/mod.rs')
-rw-r--r--vendor/os_info/src/unknown/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/os_info/src/unknown/mod.rs b/vendor/os_info/src/unknown/mod.rs
new file mode 100644
index 000000000..fbebe213d
--- /dev/null
+++ b/vendor/os_info/src/unknown/mod.rs
@@ -0,0 +1,20 @@
+use log::trace;
+
+use crate::{Info, Type};
+
+pub fn current_platform() -> Info {
+ trace!("unknown::current_platform is called");
+ Info::unknown()
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use pretty_assertions::assert_eq;
+
+ #[test]
+ fn os_type() {
+ let version = current_platform();
+ assert_eq!(Type::Unknown, version.os_type());
+ }
+}