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

Function test_storage_unmount_ok

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

Source from the content-addressed store, hash-verified

1012
1013 #[test]
1014 fn test_storage_unmount_ok() {
1015 let mut storage = Storage::default();
1016 storage.mount("other", "memory://").unwrap();
1017 assert_eq!("MEMORY:/", storage.cwd());
1018 assert_eq!(["MEMORY", "OTHER"], drive_names(&storage).as_slice());
1019
1020 storage.unmount("other").unwrap();
1021 assert_eq!("MEMORY:/", storage.cwd());
1022 assert_eq!(["MEMORY"], drive_names(&storage).as_slice());
1023 }
1024
1025 #[test]
1026 fn test_storage_unmount_not_mounted_error() {

Callers

nothing calls this directly

Calls 2

mountMethod · 0.80
unmountMethod · 0.80

Tested by

no test coverage detected