MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_map_decision_allow

Function test_map_decision_allow

core/src/ahp/executor_tests.rs:307–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305
306#[test]
307fn 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]
323fn test_map_decision_block() {

Callers

nothing calls this directly

Calls 2

make_test_executorFunction · 0.85
map_decisionMethod · 0.80

Tested by

no test coverage detected