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

Function test_clouddrive_delete

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

Source from the content-addressed store, hash-verified

118
119 #[tokio::test]
120 async fn test_clouddrive_delete() {
121 let service = Rc::from(RefCell::from(MockService::default()));
122 service.borrow_mut().do_login().await;
123 let mut drive = CloudDrive::new(service.clone(), "the-user");
124
125 service.borrow_mut().add_mock_delete_file("the-user", "the-filename", Ok(()));
126 drive.delete("the-filename").await.unwrap();
127
128 service.take().verify_all_used();
129 }
130
131 #[tokio::test]
132 async fn test_clouddrive_enumerate() {

Callers

nothing calls this directly

Calls 4

add_mock_delete_fileMethod · 0.80
verify_all_usedMethod · 0.80
do_loginMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected