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

Function test_dispatch_model_switch

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

Source from the content-addressed store, hash-verified

487
488 #[test]
489 fn test_dispatch_model_switch() {
490 let reg = CommandRegistry::new();
491 let ctx = test_ctx();
492 let out = reg
493 .dispatch("/model anthropic/claude-sonnet-4-20250514", &ctx)
494 .unwrap();
495 assert!(matches!(out.action, Some(CommandAction::SwitchModel(_))));
496 }
497
498 #[test]
499 fn test_dispatch_clear() {

Callers

nothing calls this directly

Calls 2

test_ctxFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected