()
| 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() { |
nothing calls this directly
no test coverage detected