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

Function test_install_idempotent

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

Source from the content-addressed store, hash-verified

642
643 #[test]
644 fn test_install_idempotent() {
645 let dir = tempfile::tempdir().unwrap();
646 let hook = make_hook();
647
648 let count1 = hook.install(dir.path()).unwrap();
649 assert_eq!(count1, 8);
650
651 // Second install should return 0 (nothing new to install)
652 let count2 = hook.install(dir.path()).unwrap();
653 assert_eq!(count2, 0);
654 }
655
656 #[test]
657 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