()
| 1407 | |
| 1408 | #[test] |
| 1409 | fn test_echo_executor() { |
| 1410 | let exec = EchoExecutor; |
| 1411 | let defs = exec.tool_definitions(); |
| 1412 | assert_eq!(defs.len(), 1); |
| 1413 | assert_eq!(defs[0].name, "echo"); |
| 1414 | |
| 1415 | let call = ToolCall { |
| 1416 | id: "1".into(), |
| 1417 | name: "echo".into(), |
| 1418 | arguments: json!({"msg": "hello"}), |
| 1419 | }; |
| 1420 | let result = exec.execute(&call).unwrap(); |
| 1421 | assert!(result.contains("hello")); |
| 1422 | } |
| 1423 | } |
nothing calls this directly
no test coverage detected