MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_watcher_no_changes

Function test_watcher_no_changes

atomic-agent/src/watcher/fallback.rs:635–645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

633
634 #[tokio::test]
635 async fn test_watcher_no_changes() {
636 let dir = TempDir::new().unwrap();
637 fs::write(dir.path().join("existing.rs"), "code").unwrap();
638
639 let mut watcher = FallbackWatcher::new(make_config(&dir));
640 watcher.begin_turn("sess-1").await.unwrap();
641
642 // No modifications
643 let changes = watcher.end_turn().await.unwrap();
644 assert!(changes.is_empty());
645 }
646
647 #[tokio::test]
648 async fn test_watcher_detects_added_file() {

Callers

nothing calls this directly

Calls 6

writeFunction · 0.85
make_configFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45
begin_turnMethod · 0.45
end_turnMethod · 0.45

Tested by

no test coverage detected