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

Function test_parse_agent_stop

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

Source from the content-addressed store, hash-verified

596
597 #[test]
598 fn test_parse_agent_stop() {
599 let hook = make_hook();
600 let input = br#"{
601 "session_id": "kiro-20260521-153000",
602 "cwd": "/path/to/project",
603 "model": "claude-sonnet-4-6",
604 "timestamp": "2026-05-21T15:30:05Z"
605 }"#;
606 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
607 assert_eq!(event.session_id, "kiro-20260521-153000");
608 assert_eq!(event.event_type, HookType::TurnEnd);
609 }
610
611 // --- parse_event: pre-tool-use (PreToolUse) ---
612

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected