()
| 1041 | |
| 1042 | #[test] |
| 1043 | fn test_usr_etc() -> Result<()> { |
| 1044 | let root = &fixture()?; |
| 1045 | let config = &LintExecutionConfig::default(); |
| 1046 | // This one should pass |
| 1047 | check_usretc(root, config).unwrap().unwrap(); |
| 1048 | root.create_dir_all("etc")?; |
| 1049 | root.create_dir_all("usr/etc")?; |
| 1050 | assert!(check_usretc(root, config).unwrap().is_err()); |
| 1051 | root.remove_dir_all("etc")?; |
| 1052 | // Now we should pass again |
| 1053 | check_usretc(root, config).unwrap().unwrap(); |
| 1054 | Ok(()) |
| 1055 | } |
| 1056 | |
| 1057 | #[test] |
| 1058 | fn test_varlog() -> Result<()> { |
nothing calls this directly
no test coverage detected