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

Function test_unmount_ok

std/src/storage/cmds.rs:999–1008  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

997
998 #[test]
999 fn test_unmount_ok() {
1000 let mut t = Tester::default();
1001 t.get_storage().borrow_mut().mount("other", "memory://").unwrap();
1002 t.get_storage().borrow_mut().cd("other:").unwrap();
1003 t.run("UNMOUNT \"memory\"").check();
1004
1005 let mut exp_info = BTreeMap::default();
1006 exp_info.insert("OTHER", "memory://");
1007 assert_eq!(exp_info, t.get_storage().borrow().mounted());
1008 }
1009
1010 #[test]
1011 fn test_unmount_errors() {

Callers

nothing calls this directly

Calls 6

mountMethod · 0.80
cdMethod · 0.80
get_storageMethod · 0.45
checkMethod · 0.45
runMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected