()
| 331 | |
| 332 | #[test] |
| 333 | fn test_disabled() { |
| 334 | let ruleset = vec![PermissionRule { |
| 335 | permission: "bash".to_string(), |
| 336 | pattern: "*".to_string(), |
| 337 | action: PermissionAction::Deny, |
| 338 | }]; |
| 339 | |
| 340 | let tools = vec!["bash".to_string(), "read".to_string()]; |
| 341 | let disabled_tools = disabled(&tools, &ruleset); |
| 342 | |
| 343 | assert!(disabled_tools.contains("bash")); |
| 344 | assert!(!disabled_tools.contains("read")); |
| 345 | } |
| 346 | } |
nothing calls this directly
no test coverage detected