()
| 1162 | /// line the stock template prints). |
| 1163 | #[test] |
| 1164 | fn agent_help_template_is_applied() { |
| 1165 | let mut cmd = apply_agent_help(Cli::command()); |
| 1166 | let help = cmd.render_help().to_string(); |
| 1167 | assert!( |
| 1168 | help.contains("usage: atomic"), |
| 1169 | "lowercase usage line: {help}" |
| 1170 | ); |
| 1171 | assert!( |
| 1172 | !help.contains("Usage: atomic"), |
| 1173 | "default capitalized usage heading must be gone: {help}" |
| 1174 | ); |
| 1175 | } |
| 1176 | |
| 1177 | /// Long descriptions are dropped tree-wide, so `--help` never leaks the |
| 1178 | /// `# Examples` markdown that derives from a command's doc comment. |
nothing calls this directly
no test coverage detected