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

Function test_parse_agent_stop

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

Source from the content-addressed store, hash-verified

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