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

Function test_logout_cloud_mounted_and_active

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

Source from the content-addressed store, hash-verified

796
797 #[tokio::test]
798 async fn test_logout_cloud_mounted_and_active() {
799 let mut t = ClientTester::default();
800 t.get_service().borrow_mut().do_login().await;
801 t.get_storage().borrow_mut().mount("CLOUD", "memory://").unwrap();
802 t.get_storage().borrow_mut().cd("CLOUD:/").unwrap();
803 t.run(r#"LOGOUT"#)
804 .expect_err("1:1: Cannot log out while the CLOUD drive is active")
805 .expect_access_token("$")
806 .check();
807 assert!(t.get_storage().borrow().mounted().contains_key("CLOUD"));
808 }
809
810 #[test]
811 fn test_logout_errors() {

Callers

nothing calls this directly

Calls 9

get_serviceMethod · 0.80
mountMethod · 0.80
cdMethod · 0.80
expect_access_tokenMethod · 0.80
do_loginMethod · 0.45
get_storageMethod · 0.45
checkMethod · 0.45
expect_errMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected