()
| 237 | |
| 238 | #[test] |
| 239 | fn build_command_rejects_empty_args() { |
| 240 | let (_keep, root) = tmp_root(); |
| 241 | let err = ChrootCmd::new(&root) |
| 242 | .build_command(std::iter::empty::<&str>()) |
| 243 | .unwrap_err(); |
| 244 | assert!( |
| 245 | err.to_string().contains("ChrootCmd requires the program"), |
| 246 | "unexpected error: {err}" |
| 247 | ); |
| 248 | } |
| 249 | } |
nothing calls this directly
no test coverage detected