()
| 1181 | /// line the stock template prints). |
| 1182 | #[test] |
| 1183 | fn agent_help_template_is_applied() { |
| 1184 | let mut cmd = apply_agent_help(Cli::command()); |
| 1185 | let help = cmd.render_help().to_string(); |
| 1186 | assert!( |
| 1187 | help.contains("usage: atomic"), |
| 1188 | "lowercase usage line: {help}" |
| 1189 | ); |
| 1190 | assert!( |
| 1191 | !help.contains("Usage: atomic"), |
| 1192 | "default capitalized usage heading must be gone: {help}" |
| 1193 | ); |
| 1194 | } |
| 1195 | |
| 1196 | /// Long descriptions are dropped tree-wide, so `--help` never leaks the |
| 1197 | /// `# Examples` markdown that derives from a command's doc comment. |
nothing calls this directly
no test coverage detected