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

Function test_dispatch_clear

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

Source from the content-addressed store, hash-verified

497
498 #[test]
499 fn test_dispatch_clear() {
500 let reg = CommandRegistry::new();
501 let ctx = test_ctx();
502 let out = reg.dispatch("/clear", &ctx).unwrap();
503 assert!(matches!(out.action, Some(CommandAction::ClearHistory)));
504 assert!(out.text.contains("10"));
505 }
506
507 #[test]
508 fn test_dispatch_compact() {

Callers

nothing calls this directly

Calls 2

test_ctxFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected