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

Function test_list_commands

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

Source from the content-addressed store, hash-verified

554
555 #[test]
556 fn test_list_commands() {
557 let reg = CommandRegistry::new();
558 let list = reg.list();
559 assert!(list.len() >= 8);
560 assert!(list.iter().any(|(name, _)| *name == "help"));
561 assert!(list.iter().any(|(name, _)| *name == "compact"));
562 assert!(list.iter().any(|(name, _)| *name == "cost"));
563 assert!(list.iter().any(|(name, _)| *name == "mcp"));
564 }
565
566 #[test]
567 fn test_dispatch_tools() {

Callers

nothing calls this directly

Calls 1

listMethod · 0.45

Tested by

no test coverage detected