summaryrefslogtreecommitdiffstats
path: root/vendor/os_info/src/unknown/mod.rs
blob: fbebe213dbbd7d9fbb0a8d0fede4773079155205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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());
    }
}