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

Function test_dispatch_mcp

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

Source from the content-addressed store, hash-verified

575
576 #[test]
577 fn test_dispatch_mcp() {
578 let reg = CommandRegistry::new();
579 let ctx = test_ctx();
580 let out = reg.dispatch("/mcp", &ctx).unwrap();
581 assert!(out.text.contains("1 server(s)"));
582 assert!(out.text.contains("github"));
583 assert!(out.text.contains("create_issue"));
584 assert!(out.text.contains("list_repos"));
585 }
586
587 #[test]
588 fn test_dispatch_mcp_empty() {

Callers

nothing calls this directly

Calls 2

test_ctxFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected