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

Function test_parse_agent_stop

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected