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

Function build_command_rejects_empty_args

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

tmp_rootFunction · 0.85
build_commandMethod · 0.80

Tested by

no test coverage detected