()
| 1046 | |
| 1047 | #[test] |
| 1048 | fn test_parse_after_thought_minimal() { |
| 1049 | let hook = make_hook(); |
| 1050 | let input = br#"{"conversation_id": "c1", "text": "thinking..."}"#; |
| 1051 | let event = hook.parse_event(HookType::PostToolUse, input).unwrap(); |
| 1052 | assert_eq!(event.tool_name.as_deref(), Some("AgentThought")); |
| 1053 | let raw = event.raw_json.unwrap(); |
| 1054 | assert_eq!(raw["reasoning_text"], "thinking..."); |
| 1055 | } |
| 1056 | |
| 1057 | // Error handling tests |
| 1058 |
nothing calls this directly
no test coverage detected