()
| 305 | |
| 306 | #[test] |
| 307 | fn test_map_decision_allow() { |
| 308 | let executor = make_test_executor(); |
| 309 | |
| 310 | let decision = Decision::Allow { |
| 311 | modified_payload: None, |
| 312 | metadata: None, |
| 313 | }; |
| 314 | |
| 315 | let result = executor.map_decision( |
| 316 | EventType::PreAction, |
| 317 | serde_json::to_value(decision).unwrap(), |
| 318 | ); |
| 319 | assert!(matches!(result, HookResult::Continue(None))); |
| 320 | } |
| 321 | |
| 322 | #[test] |
| 323 | fn test_map_decision_block() { |
nothing calls this directly
no test coverage detected