MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_unknown_tool

Function test_unknown_tool

core/src/tools/mod.rs:713–721  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

711
712 #[tokio::test]
713 async fn test_unknown_tool() {
714 let executor = ToolExecutor::new("/tmp".to_string());
715 let result = executor
716 .execute("unknown", &serde_json::json!({}))
717 .await
718 .unwrap();
719 assert_eq!(result.exit_code, 1);
720 assert!(result.output.contains("Unknown tool"));
721 }
722
723 #[tokio::test]
724 async fn test_builtin_tools_registered() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected