()
| 375 | |
| 376 | #[tokio::test] |
| 377 | async fn test_remove_dir() { |
| 378 | let temp_dir = TempDir::new().unwrap(); |
| 379 | |
| 380 | let test_dir = temp_dir.path().join("test_dir"); |
| 381 | |
| 382 | // Create directory with content |
| 383 | create_dir(&test_dir).await.unwrap(); |
| 384 | write_file(&test_dir.join("file.txt"), "content") |
| 385 | .await |
| 386 | .unwrap(); |
| 387 | |
| 388 | // Verify it exists |
| 389 | assert!(exists(&test_dir).await.unwrap()); |
| 390 | |
| 391 | // Remove directory |
| 392 | remove_dir(&test_dir).await.unwrap(); |
| 393 | |
| 394 | // Verify it's gone |
| 395 | assert!(!exists(&test_dir).await.unwrap()); |
| 396 | } |
| 397 | |
| 398 | #[tokio::test] |
| 399 | async fn test_remove_file() { |
nothing calls this directly
no test coverage detected