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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected