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

Function invalid_scriptlet

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

Source from the content-addressed store, hash-verified

160 #[case(INSTALL_SCRIPTLET_INVALID)]
161 #[case(INSTALL_SCRIPTLET_INVALID_FUNCTION_PREFIX)]
162 fn invalid_scriptlet(#[case] scriptlet: &str) -> TestResult {
163 let mut file = NamedTempFile::new()?;
164 write!(file, "{scriptlet}")?;
165
166 assert!(check_scriptlet(file.path()).is_err());
167
168 Ok(())
169 }
170}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected