()
| 711 | |
| 712 | #[tokio::test] |
| 713 | async fn test_unknown_tool() { |
| 714 | let executor = ToolExecutor::new("/tmp".to_string()); |
| 715 | let result = executor |
| 716 | .execute("unknown", &serde_json::json!({})) |
| 717 | .await |
| 718 | .unwrap(); |
| 719 | assert_eq!(result.exit_code, 1); |
| 720 | assert!(result.output.contains("Unknown tool")); |
| 721 | } |
| 722 | |
| 723 | #[tokio::test] |
| 724 | async fn test_builtin_tools_registered() { |