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

Function test_logout_ok_unmount_cloud

client/src/cmds.rs:787–795  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

785
786 #[tokio::test]
787 async fn test_logout_ok_unmount_cloud() {
788 let mut t = ClientTester::default();
789 t.get_service().borrow_mut().do_login().await;
790 t.get_storage().borrow_mut().mount("CLOUD", "memory://").unwrap();
791 t.run(r#"LOGOUT"#)
792 .expect_prints(["", " Unmounted CLOUD drive", " Good bye!", ""])
793 .check();
794 assert!(!t.get_storage().borrow().mounted().contains_key("CLOUD"));
795 }
796
797 #[tokio::test]
798 async fn test_logout_cloud_mounted_and_active() {

Callers

nothing calls this directly

Calls 7

get_serviceMethod · 0.80
mountMethod · 0.80
do_loginMethod · 0.45
get_storageMethod · 0.45
checkMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected