fn test_scan_memory()

in src/lib.rs [337:353]


    fn test_scan_memory() {
        let fname = default_test_file();
        let expected_type = default_test_file_type();

        let flags = ScanFlags::DEEP_SCAN;
        let file = File::open(fname).unwrap();
        let mem = unsafe { Mmap::map(&file).unwrap() };

        let res = scan_memory(mem.as_ref(), flags).unwrap();
        #[cfg(not(target_os = "macos"))]
        assert!(
            res.starts_with(expected_type),
            "unexpected result: got {:?}, expected {:?}",
            res,
            expected_type
        );
    }