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

Function test_parse_turn_end_stop

atomic-agent/src/hooks/claude_code/tests.rs:128–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126
127 #[test]
128 fn test_parse_turn_end_stop() {
129 let hook = make_hook();
130 let input = br#"{"session_id": "sess-3", "transcript_path": "/t.jsonl"}"#;
131 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
132
133 assert_eq!(event.session_id, "sess-3");
134 assert_eq!(event.event_type, HookType::TurnEnd);
135 assert_eq!(event.transcript_path, Some(PathBuf::from("/t.jsonl")));
136 }
137
138 #[test]
139 fn test_parse_session_info_missing_session_id() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected