()
| 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() { |