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

Function test_watcher_inactive_after_end

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

Source from the content-addressed store, hash-verified

583
584 #[tokio::test]
585 async fn test_watcher_inactive_after_end() {
586 let dir = TempDir::new().unwrap();
587 fs::write(dir.path().join("file.rs"), "code").unwrap();
588
589 let mut watcher = FallbackWatcher::new(make_config(&dir));
590 watcher.begin_turn("sess-1").await.unwrap();
591 let _changes = watcher.end_turn().await.unwrap();
592 assert!(!watcher.is_active());
593 }
594
595 #[tokio::test]
596 async fn test_watcher_inactive_after_cancel() {

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