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

Function test_dispatch_compact

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

Source from the content-addressed store, hash-verified

506
507 #[test]
508 fn test_dispatch_compact() {
509 let reg = CommandRegistry::new();
510 let ctx = test_ctx();
511 let out = reg.dispatch("/compact", &ctx).unwrap();
512 assert!(matches!(out.action, Some(CommandAction::Compact)));
513 }
514
515 #[test]
516 fn test_dispatch_unknown() {

Callers

nothing calls this directly

Calls 2

test_ctxFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected