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

Function test_claude_code_parse_roundtrip

atomic-agent/src/lib.rs:203–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202 #[test]
203 fn test_claude_code_parse_roundtrip() {
204 let registry = AgentRegistry::with_defaults();
205 let claude = registry.require("claude-code").unwrap();
206
207 let input = br#"{"session_id": "test-session", "transcript_path": "/tmp/t.jsonl"}"#;
208 let event = claude.parse_event(HookType::TurnEnd, input).unwrap();
209
210 assert_eq!(event.session_id, "test-session");
211 assert_eq!(event.event_type, HookType::TurnEnd);
212 }
213
214 #[test]
215 fn test_claude_code_parse_with_prompt() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
requireMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected