MCPcopy Create free account
hub / github.com/bootc-dev/bootc / build_command_creates_api_mount_dirs

Function build_command_creates_api_mount_dirs

crates/utils/src/chroot.rs:214–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

tmp_rootFunction · 0.85
build_commandMethod · 0.80

Tested by

no test coverage detected