()
| 189 | #[cfg(unix)] |
| 190 | #[test] |
| 191 | fn create_dir_restricted_sets_0o700() { |
| 192 | use std::os::unix::fs::PermissionsExt; |
| 193 | let tmp = tempfile::tempdir().unwrap(); |
| 194 | let dir = tmp.path().join("restricted"); |
| 195 | create_dir_restricted(&dir).unwrap(); |
| 196 | let mode = std::fs::metadata(&dir).unwrap().permissions().mode() & 0o777; |
| 197 | assert_eq!(mode, 0o700, "expected 0700, got {mode:04o}"); |
| 198 | } |
| 199 | |
| 200 | #[cfg(unix)] |
| 201 | #[test] |
nothing calls this directly
no test coverage detected