()
| 212 | |
| 213 | #[test] |
| 214 | fn build_command_creates_api_mount_dirs() { |
| 215 | let (_keep, root) = tmp_root(); |
| 216 | // No user binds — just the API mount targets. |
| 217 | let cmd = ChrootCmd::new(&root).build_command(["/bin/true"]).unwrap(); |
| 218 | for sub in ["proc", "dev", "sys", "run"] { |
| 219 | assert!( |
| 220 | root.join(sub).is_dir(), |
| 221 | "API mount dir {sub} not created in {root}" |
| 222 | ); |
| 223 | } |
| 224 | assert_eq!(cmd.get_program(), "/bin/true"); |
| 225 | } |
| 226 | |
| 227 | #[test] |
| 228 | fn build_command_creates_user_bind_targets() { |
nothing calls this directly
no test coverage detected