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

Function test_web_search_empty_query

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

Source from the content-addressed store, hash-verified

458
459 #[tokio::test]
460 async fn test_web_search_empty_query() {
461 let tool = WebSearchTool::new();
462 let ctx = ToolContext::new(PathBuf::from("/tmp"));
463
464 let result = tool
465 .execute(&serde_json::json!({"query": ""}), &ctx)
466 .await
467 .unwrap();
468 assert!(!result.success);
469 }
470
471 #[tokio::test]
472 async fn test_web_search_no_valid_engines() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected