MCPcopy Create free account
hub / github.com/Louisym/MiniCC / repl_executes_python_code

Function repl_executes_python_code

rust/crates/tools/src/lib.rs:4048–4058  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4046
4047 #[test]
4048 fn repl_executes_python_code() {
4049 let result = execute_tool(
4050 "REPL",
4051 &json!({"language": "python", "code": "print(1 + 1)", "timeout_ms": 500}),
4052 )
4053 .expect("REPL should succeed");
4054 let output: serde_json::Value = serde_json::from_str(&result).expect("json");
4055 assert_eq!(output["language"], "python");
4056 assert_eq!(output["exitCode"], 0);
4057 assert!(output["stdout"].as_str().expect("stdout").contains('2'));
4058 }
4059
4060 #[test]
4061 fn powershell_runs_via_stub_shell() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
execute_toolFunction · 0.70

Tested by

no test coverage detected