MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_registry_execute_raw_success

Function test_registry_execute_raw_success

core/src/tools/registry.rs:598–612  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

596
597 #[tokio::test]
598 async fn test_registry_execute_raw_success() {
599 let registry = ToolRegistry::new(PathBuf::from("/tmp"));
600 registry.register(Arc::new(MockTool {
601 name: "raw_test".to_string(),
602 }));
603
604 let output = registry
605 .execute_raw("raw_test", &serde_json::json!({}))
606 .await
607 .unwrap();
608 assert!(output.is_some());
609 let output = output.unwrap();
610 assert!(output.success);
611 assert_eq!(output.content, "mock output");
612 }
613
614 #[tokio::test]
615 async fn test_registry_execute_raw_stores_truncated_artifact() {

Callers

nothing calls this directly

Calls 2

execute_rawMethod · 0.80
registerMethod · 0.45

Tested by

no test coverage detected