()
| 1098 | /// line the stock template prints). |
| 1099 | #[test] |
| 1100 | fn agent_help_template_is_applied() { |
| 1101 | let mut cmd = apply_agent_help(Cli::command()); |
| 1102 | let help = cmd.render_help().to_string(); |
| 1103 | assert!( |
| 1104 | help.contains("usage: atomic"), |
| 1105 | "lowercase usage line: {help}" |
| 1106 | ); |
| 1107 | assert!( |
| 1108 | !help.contains("Usage: atomic"), |
| 1109 | "default capitalized usage heading must be gone: {help}" |
| 1110 | ); |
| 1111 | } |
| 1112 | |
| 1113 | /// Long descriptions are dropped tree-wide, so `--help` never leaks the |
| 1114 | /// `# Examples` markdown that derives from a command's doc comment. |
nothing calls this directly
no test coverage detected