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

Function test_detect_presence_with_pi_dir

atomic-agent/src/hooks/pi.rs:837–842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

835
836 #[test]
837 fn test_detect_presence_with_pi_dir() {
838 let tmp = tempfile::tempdir().unwrap();
839 std::fs::create_dir_all(tmp.path().join(".pi")).unwrap();
840 let hook = make_hook();
841 assert!(hook.detect_presence(tmp.path()));
842 }
843
844 #[test]
845 fn test_detect_presence_without_pi_dir() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected