()
| 405 | |
| 406 | #[tokio::test] |
| 407 | async fn test_create_watcher_fallback_works() { |
| 408 | let dir = tempfile::TempDir::new().unwrap(); |
| 409 | let config = WatcherConfig::new(dir.path()); |
| 410 | let mut watcher = create_watcher(config).await.unwrap(); |
| 411 | |
| 412 | watcher.begin_turn("test-session").await.unwrap(); |
| 413 | assert!(watcher.is_active()); |
| 414 | |
| 415 | std::fs::write(dir.path().join("new.rs"), "fn new() {}").unwrap(); |
| 416 | |
| 417 | let changes = watcher.end_turn().await.unwrap(); |
| 418 | assert_eq!(changes.file_count(), 1); |
| 419 | assert!(!watcher.is_active()); |
| 420 | } |
| 421 | } |
nothing calls this directly
no test coverage detected