MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_storage_mounted

Function test_storage_mounted

std/src/storage/mod.rs:1049–1058  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

register_schemeMethod · 0.80
mountMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected