()
| 332 | |
| 333 | #[test] |
| 334 | fn test_render_template() { |
| 335 | let registry = CommandRegistry::new(); |
| 336 | let ctx = CommandContext::new(PathBuf::from("/tmp")) |
| 337 | .with_arguments(vec!["arg1".to_string(), "arg2".to_string()]) |
| 338 | .with_variable("PROJECT".to_string(), "test-project".to_string()); |
| 339 | |
| 340 | let result = registry.render_template("Hello $1 and $2. Project: ${PROJECT}", ctx); |
| 341 | assert_eq!(result, "Hello arg1 and arg2. Project: test-project"); |
| 342 | } |
| 343 | } |
nothing calls this directly
no test coverage detected