()
| 818 | |
| 819 | #[test] |
| 820 | fn test_find_repository_root_in_sandbox() { |
| 821 | let temp = TempDir::new().unwrap(); |
| 822 | std::fs::write(temp.path().join(SANDBOX_POINTER), "pointer").unwrap(); |
| 823 | let subdir = temp.path().join("subdir"); |
| 824 | std::fs::create_dir(&subdir).unwrap(); |
| 825 | |
| 826 | let root = find_repository_root_from(&subdir).unwrap(); |
| 827 | assert_eq!(root, temp.path().canonicalize().unwrap()); |
| 828 | } |
| 829 | |
| 830 | // ------------------------------------------------------------------------- |
| 831 | // Hash Formatting Tests |
nothing calls this directly
no test coverage detected