()
| 1078 | /// line the stock template prints). |
| 1079 | #[test] |
| 1080 | fn agent_help_template_is_applied() { |
| 1081 | let mut cmd = apply_agent_help(Cli::command()); |
| 1082 | let help = cmd.render_help().to_string(); |
| 1083 | assert!( |
| 1084 | help.contains("usage: atomic"), |
| 1085 | "lowercase usage line: {help}" |
| 1086 | ); |
| 1087 | assert!( |
| 1088 | !help.contains("Usage: atomic"), |
| 1089 | "default capitalized usage heading must be gone: {help}" |
| 1090 | ); |
| 1091 | } |
| 1092 | |
| 1093 | /// Long descriptions are dropped tree-wide, so `--help` never leaks the |
| 1094 | /// `# Examples` markdown that derives from a command's doc comment. |
nothing calls this directly
no test coverage detected