()
| 1003 | /// line the stock template prints). |
| 1004 | #[test] |
| 1005 | fn agent_help_template_is_applied() { |
| 1006 | let mut cmd = apply_agent_help(Cli::command()); |
| 1007 | let help = cmd.render_help().to_string(); |
| 1008 | assert!( |
| 1009 | help.contains("usage: atomic"), |
| 1010 | "lowercase usage line: {help}" |
| 1011 | ); |
| 1012 | assert!( |
| 1013 | !help.contains("Usage: atomic"), |
| 1014 | "default capitalized usage heading must be gone: {help}" |
| 1015 | ); |
| 1016 | } |
| 1017 | |
| 1018 | /// Long descriptions are dropped tree-wide, so `--help` never leaks the |
| 1019 | /// `# Examples` markdown that derives from a command's doc comment. |
nothing calls this directly
no test coverage detected