()
| 473 | |
| 474 | #[test] |
| 475 | fn test_error_display_hook_parse_failed() { |
| 476 | let err = AgentError::HookParseFailed { |
| 477 | agent: "claude-code".to_string(), |
| 478 | hook_type: "stop".to_string(), |
| 479 | reason: "missing session_id field".to_string(), |
| 480 | }; |
| 481 | let msg = err.to_string(); |
| 482 | assert!(msg.contains("claude-code")); |
| 483 | assert!(msg.contains("stop")); |
| 484 | assert!(msg.contains("missing session_id")); |
| 485 | } |
| 486 | |
| 487 | #[test] |
| 488 | fn test_error_display_record_failed() { |
nothing calls this directly
no outgoing calls
no test coverage detected