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:632–645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected