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

Function test_clouddrive_get_acls_no_readers

client/src/drive.rs:232–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230
231 #[tokio::test]
232 async fn test_clouddrive_get_acls_no_readers() {
233 let service = Rc::from(RefCell::from(MockService::default()));
234 service.borrow_mut().do_login().await;
235 let drive = CloudDrive::new(service.clone(), "the-user");
236
237 service.borrow_mut().add_mock_get_file_acls(
238 "the-user",
239 "the-filename",
240 Ok(FileAcls::default()),
241 );
242 let result = drive.get_acls("the-filename").await.unwrap();
243 assert_eq!(FileAcls::default(), result);
244
245 service.take().verify_all_used();
246 }
247
248 #[tokio::test]
249 async fn test_clouddrive_put_new() {

Callers

nothing calls this directly

Calls 4

verify_all_usedMethod · 0.80
do_loginMethod · 0.45
get_aclsMethod · 0.45

Tested by

no test coverage detected