()
| 1025 | |
| 1026 | #[test] |
| 1027 | fn test_set_permissions() { |
| 1028 | let wc = Memory::new(); |
| 1029 | wc.add_file("test.txt", b""); |
| 1030 | |
| 1031 | wc.set_permissions("test.txt", 0o755).unwrap(); |
| 1032 | |
| 1033 | let meta = wc.file_metadata("test.txt").unwrap(); |
| 1034 | assert_eq!(meta.permissions, 0o755); |
| 1035 | assert!(meta.is_executable()); |
| 1036 | } |
| 1037 | |
| 1038 | #[test] |
| 1039 | fn test_set_permissions_not_found() { |
nothing calls this directly
no test coverage detected