()
| 531 | |
| 532 | #[tokio::test] |
| 533 | async fn test_create_watcher_fallback_works() { |
| 534 | let dir = tempfile::TempDir::new().unwrap(); |
| 535 | let config = WatcherConfig::new(dir.path()); |
| 536 | let mut watcher = create_watcher(config).await.unwrap(); |
| 537 | |
| 538 | watcher.begin_turn("test-session").await.unwrap(); |
| 539 | assert!(watcher.is_active()); |
| 540 | |
| 541 | std::fs::write(dir.path().join("new.rs"), "fn new() {}").unwrap(); |
| 542 | |
| 543 | let changes = watcher.end_turn().await.unwrap(); |
| 544 | assert_eq!(changes.file_count(), 1); |
| 545 | assert!(!watcher.is_active()); |
| 546 | } |
| 547 | } |
nothing calls this directly
no test coverage detected