MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / test_empty_question

Function test_empty_question

tests/unit/rag_gateway_tests.rs:390–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388
389 #[test]
390 fn test_empty_question() {
391 let policies = vec![Policy::allow_user("user123")];
392 let mut gateway = RagGateway::new(policies);
393
394 let query = RagQuery {
395 question: "".to_string(),
396 sources: vec![],
397 user_id: "user123".to_string(),
398 latency_sla: None,
399 cost_budget: None,
400 };
401
402 let result = gateway.process(query);
403 assert!(result.is_ok(), "Empty question should be handled gracefully");
404 }
405
406 #[test]
407 fn test_empty_sources() {

Callers

nothing calls this directly

Calls 1

processMethod · 0.80

Tested by

no test coverage detected