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

Function test_parse_agent_stop

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected