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

Function test_dispatch_unknown

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

Source from the content-addressed store, hash-verified

514
515 #[test]
516 fn test_dispatch_unknown() {
517 let reg = CommandRegistry::new();
518 let ctx = test_ctx();
519 let out = reg.dispatch("/foobar", &ctx).unwrap();
520 assert!(out.text.contains("Unknown command"));
521 }
522
523 #[test]
524 fn test_not_a_command() {

Callers

nothing calls this directly

Calls 2

test_ctxFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected