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

Function test_detect_presence_file_not_dir

atomic-agent/src/hooks/copilot.rs:820–825  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

818
819 #[test]
820 fn test_detect_presence_file_not_dir() {
821 let tmp = tempfile::tempdir().unwrap();
822 std::fs::write(tmp.path().join(".github"), "not a dir").unwrap();
823 let hook = make_hook();
824 assert!(!hook.detect_presence(tmp.path()));
825 }
826
827 // ── Installation is a no-op (owned by the integrations engine) ──
828

Callers

nothing calls this directly

Calls 4

writeFunction · 0.70
make_hookFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected