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

Function test_echo_executor

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

tool_definitionsMethod · 0.80
unwrapMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected