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

Function test_parse_agent_stop

atomic-agent/src/hooks/kilo.rs:566–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564
565 #[test]
566 fn test_parse_agent_stop() {
567 let hook = make_hook();
568 let input = br#"{
569 "session_id": "abc123-kilo",
570 "cwd": "/tmp/project",
571 "timestamp": "2026-07-15T12:01:00Z"
572 }"#;
573 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
574 assert_eq!(event.session_id, "abc123-kilo");
575 assert_eq!(event.event_type, HookType::TurnEnd);
576 }
577
578 #[test]
579 fn test_parse_pre_tool_use() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected