MCPcopy Create free account
hub / github.com/archlinux/alpm / create_scriptlet_file

Function create_scriptlet_file

alpm-common/src/package/input.rs:367–372  ·  view source on GitHub ↗
(path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

365 }
366
367 fn create_scriptlet_file(path: impl AsRef<Path>) -> TestResult {
368 let path = path.as_ref();
369 let mut output = File::create(path.join(INSTALL_SCRIPTLET_FILE_NAME))?;
370 write!(output, "{VALID_INSTALL_SCRIPTLET}")?;
371 Ok(())
372 }
373
374 /// Tests the successful collection of data files relative to a directory.
375 #[rstest]

Calls 3

createFunction · 0.50
as_refMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected