()
| 212 | |
| 213 | #[test] |
| 214 | fn test_claude_code_parse_with_prompt() { |
| 215 | let registry = AgentRegistry::with_defaults(); |
| 216 | let claude = registry.require("claude-code").unwrap(); |
| 217 | |
| 218 | let input = br#"{"session_id": "s1", "prompt": "Fix the bug in auth.rs"}"#; |
| 219 | let event = claude.parse_event(HookType::TurnStart, input).unwrap(); |
| 220 | |
| 221 | assert_eq!(event.session_id, "s1"); |
| 222 | assert_eq!(event.event_type, HookType::TurnStart); |
| 223 | assert_eq!(event.prompt.as_deref(), Some("Fix the bug in auth.rs")); |
| 224 | } |
| 225 | |
| 226 | #[test] |
| 227 | fn test_error_types_accessible() { |
nothing calls this directly
no test coverage detected