()
| 1047 | |
| 1048 | #[test] |
| 1049 | fn test_storage_mounted() { |
| 1050 | let mut storage = Storage::default(); |
| 1051 | storage.register_scheme("fake", Box::from(InMemoryDriveFactory::default())); |
| 1052 | storage.mount("z", "fAkE://").unwrap(); |
| 1053 | |
| 1054 | let mut exp_info = BTreeMap::default(); |
| 1055 | exp_info.insert("MEMORY", "memory://"); |
| 1056 | exp_info.insert("Z", "fAkE://"); |
| 1057 | assert_eq!(exp_info, storage.mounted()); |
| 1058 | } |
| 1059 | |
| 1060 | #[test] |
| 1061 | fn test_storage_cd_and_cwd_ok() { |
nothing calls this directly
no test coverage detected