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