()
| 463 | #[cfg(unix)] |
| 464 | #[test] |
| 465 | fn a_new_log_dir_is_private() { |
| 466 | use std::os::unix::fs::PermissionsExt; |
| 467 | let home = tempfile::tempdir().unwrap(); |
| 468 | let dir = home.path().join("new").join("logs"); |
| 469 | open_file(&dir).unwrap(); |
| 470 | for created in [home.path().join("new"), dir] { |
| 471 | let mode = std::fs::metadata(&created).unwrap().permissions().mode(); |
| 472 | assert_eq!(mode & 0o777, 0o700, "{}", created.display()); |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | #[test] |
| 477 | fn command_path_names_every_subcommand_level() { |
nothing calls this directly
no test coverage detected