MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_parse_command

Function test_parse_command

crates/opencode-command/src/lib.rs:322–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn test_parse_command() {
323 let registry = CommandRegistry::new();
324
325 let result = registry.parse("/init my-project");
326 assert!(result.is_some());
327
328 let (cmd, args) = result.unwrap();
329 assert_eq!(cmd.name, "init");
330 assert_eq!(args, vec!["my-project"]);
331 }
332
333 #[test]
334 fn test_render_template() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected