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

Function test_web_search_missing_query

core/src/tools/builtin/web_search.rs:451–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449
450 #[tokio::test]
451 async fn test_web_search_missing_query() {
452 let tool = WebSearchTool::new();
453 let ctx = ToolContext::new(PathBuf::from("/tmp"));
454
455 let result = tool.execute(&serde_json::json!({}), &ctx).await.unwrap();
456 assert!(!result.success);
457 }
458
459 #[tokio::test]
460 async fn test_web_search_empty_query() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected