MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_engine_fire_no_handler

Function test_engine_fire_no_handler

core/src/hooks/engine.rs:566–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564
565 #[tokio::test]
566 async fn test_engine_fire_no_handler() {
567 let engine = HookEngine::new();
568 engine.register(Hook::new("test-hook", HookEventType::PreToolUse));
569
570 let event = make_pre_tool_event("s1", "Bash");
571 let result = engine.fire(&event).await;
572
573 // No handler, should continue
574 assert!(result.is_continue());
575 }
576
577 /// Test handler: always continue
578 struct ContinueHandler;

Callers

nothing calls this directly

Calls 3

make_pre_tool_eventFunction · 0.70
registerMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected