MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_echo_executor

Function test_echo_executor

atomic-repository/src/ai/tools.rs:1348–1361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

tool_definitionsMethod · 0.80
unwrapMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected