MCPcopy Create free account
hub / github.com/0xKarl-dev/claw-codes / repl_executes_python_code

Function repl_executes_python_code

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

Source from the content-addressed store, hash-verified

4275
4276 #[test]
4277 fn repl_executes_python_code() {
4278 let result = execute_tool(
4279 "REPL",
4280 &json!({"language": "python", "code": "print(1 + 1)", "timeout_ms": 500}),
4281 )
4282 .expect("REPL should succeed");
4283 let output: serde_json::Value = serde_json::from_str(&result).expect("json");
4284 assert_eq!(output["language"], "python");
4285 assert_eq!(output["exitCode"], 0);
4286 assert!(output["stdout"].as_str().expect("stdout").contains('2'));
4287 }
4288
4289 #[test]
4290 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