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

Function test_install_idempotent

atomic-agent/src/hooks/claude_code/tests.rs:640–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638
639 #[test]
640 fn test_install_idempotent() {
641 let dir = tempfile::tempdir().unwrap();
642 let hook = make_hook();
643
644 let count1 = hook.install(dir.path()).unwrap();
645 assert_eq!(count1, 8);
646
647 // Second install should return 0 (nothing new to install)
648 let count2 = hook.install(dir.path()).unwrap();
649 assert_eq!(count2, 0);
650 }
651
652 #[test]
653 fn test_install_preserves_existing_hooks() {

Callers

nothing calls this directly

Calls 4

make_hookFunction · 0.70
unwrapMethod · 0.45
installMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected