MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_parse_post_tool_use

Function test_parse_post_tool_use

atomic-agent/src/hooks/kiro.rs:629–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

627
628 #[test]
629 fn test_parse_post_tool_use() {
630 let hook = make_hook();
631 let input = br#"{
632 "session_id": "kiro-20260521-153000",
633 "tool_name": "read",
634 "tool_call_id": "tc_456",
635 "cwd": "/path/to/project"
636 }"#;
637 let event = hook.parse_event(HookType::PostToolUse, input).unwrap();
638 assert_eq!(event.session_id, "kiro-20260521-153000");
639 assert_eq!(event.event_type, HookType::PostToolUse);
640 assert_eq!(event.tool_name.as_deref(), Some("read"));
641 assert_eq!(event.tool_use_id.as_deref(), Some("tc_456"));
642 }
643
644 // --- parse_event: post-task (PostToolUse) ---
645

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected