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

Function test_parse_agent_stop

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

Source from the content-addressed store, hash-verified

570
571 #[test]
572 fn test_parse_agent_stop() {
573 let hook = make_hook();
574 let input = br#"{
575 "session_id": "abc123-kilo",
576 "cwd": "/tmp/project",
577 "timestamp": "2026-07-15T12:01:00Z"
578 }"#;
579 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
580 assert_eq!(event.session_id, "abc123-kilo");
581 assert_eq!(event.event_type, HookType::TurnEnd);
582 }
583
584 #[test]
585 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