()
| 1759 | |
| 1760 | #[test] |
| 1761 | fn validate_rejects_empty_run_as_user() { |
| 1762 | let mut policy = restrictive_default_policy(); |
| 1763 | policy.process = Some(ProcessPolicy { |
| 1764 | run_as_user: String::new(), |
| 1765 | run_as_group: String::new(), |
| 1766 | }); |
| 1767 | let violations = validate_sandbox_policy(&policy).unwrap_err(); |
| 1768 | assert_eq!(violations.len(), 2); |
| 1769 | } |
| 1770 | |
| 1771 | #[test] |
| 1772 | fn validate_rejects_too_many_paths() { |
nothing calls this directly
no test coverage detected