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

Function valid_scriptlet

alpm-package/src/scriptlet.rs:149–156  ·  view source on GitHub ↗
(#[case] scriptlet: &str)

Source from the content-addressed store, hash-verified

147 #[case(INSTALL_SCRIPTLET_FULL)]
148 #[case(INSTALL_SCRIPTLET_FULL_FUNCTION_PREFIX)]
149 fn valid_scriptlet(#[case] scriptlet: &str) -> TestResult {
150 let mut file = NamedTempFile::new()?;
151 write!(file, "{scriptlet}")?;
152
153 check_scriptlet(file.path())?;
154
155 Ok(())
156 }
157
158 #[rstest]
159 #[case(INSTALL_SCRIPTLET_EMPTY)]

Callers

nothing calls this directly

Calls 2

check_scriptletFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected