()
| 938 | |
| 939 | #[test] |
| 940 | fn test_var_run() -> Result<()> { |
| 941 | let root = &fixture()?; |
| 942 | let config = &LintExecutionConfig::default(); |
| 943 | // This one should pass |
| 944 | check_var_run(root, config).unwrap().unwrap(); |
| 945 | root.create_dir_all("var/run/foo")?; |
| 946 | assert!(check_var_run(root, config).unwrap().is_err()); |
| 947 | root.remove_dir_all("var/run")?; |
| 948 | // Now we should pass again |
| 949 | check_var_run(root, config).unwrap().unwrap(); |
| 950 | Ok(()) |
| 951 | } |
| 952 | |
| 953 | #[test] |
| 954 | fn test_api() -> Result<()> { |
nothing calls this directly
no test coverage detected