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

Function test_dispatch_mcp_empty

core/src/commands.rs:588–594  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

586
587 #[test]
588 fn test_dispatch_mcp_empty() {
589 let reg = CommandRegistry::new();
590 let mut ctx = test_ctx();
591 ctx.mcp_servers = vec![];
592 let out = reg.dispatch("/mcp", &ctx).unwrap();
593 assert!(out.text.contains("No MCP servers connected"));
594 }
595}

Callers

nothing calls this directly

Calls 2

test_ctxFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected