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

Function build_command_creates_user_bind_targets

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

Source from the content-addressed store, hash-verified

226
227 #[test]
228 fn build_command_creates_user_bind_targets() {
229 let (_keep, root) = tmp_root();
230 let (_keep2, src_root) = tmp_root();
231 ChrootCmd::new(&root)
232 .bind(&src_root, &"/sysroot")
233 .build_command(["/bin/true"])
234 .unwrap();
235 assert!(root.join("sysroot").is_dir());
236 }
237
238 #[test]
239 fn build_command_rejects_empty_args() {

Callers

nothing calls this directly

Calls 3

tmp_rootFunction · 0.85
build_commandMethod · 0.80
bindMethod · 0.80

Tested by

no test coverage detected