()
| 207 | |
| 208 | #[test] |
| 209 | fn test_claude_code_parse_roundtrip() { |
| 210 | let registry = AgentRegistry::with_defaults(); |
| 211 | let claude = registry.require("claude-code").unwrap(); |
| 212 | |
| 213 | let input = br#"{"session_id": "test-session", "transcript_path": "/tmp/t.jsonl"}"#; |
| 214 | let event = claude.parse_event(HookType::TurnEnd, input).unwrap(); |
| 215 | |
| 216 | assert_eq!(event.session_id, "test-session"); |
| 217 | assert_eq!(event.event_type, HookType::TurnEnd); |
| 218 | } |
| 219 | |
| 220 | #[test] |
| 221 | fn test_claude_code_parse_with_prompt() { |
nothing calls this directly
no test coverage detected