()
| 1346 | |
| 1347 | #[test] |
| 1348 | fn test_echo_executor() { |
| 1349 | let exec = EchoExecutor; |
| 1350 | let defs = exec.tool_definitions(); |
| 1351 | assert_eq!(defs.len(), 1); |
| 1352 | assert_eq!(defs[0].name, "echo"); |
| 1353 | |
| 1354 | let call = ToolCall { |
| 1355 | id: "1".into(), |
| 1356 | name: "echo".into(), |
| 1357 | arguments: json!({"msg": "hello"}), |
| 1358 | }; |
| 1359 | let result = exec.execute(&call).unwrap(); |
| 1360 | assert!(result.contains("hello")); |
| 1361 | } |
| 1362 | } |
nothing calls this directly
no test coverage detected