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

Function validate_wrong_stdin

alpm-srcinfo/tests/integration.rs:99–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98 /// Validate an invalid SRCINFO file input from stdin
99 #[test]
100 fn validate_wrong_stdin() -> TestResult {
101 let mut cmd = cargo_bin_cmd!("alpm-srcinfo");
102 cmd.args(vec!["validate"]);
103 cmd.write_stdin(format!("{VALID_SRCINFO}\ngiberish_key=this is a test"));
104
105 // Make sure the command failed
106 cmd.assert().failure();
107
108 Ok(())
109 }
110
111 /// Validate an invalid SRCINFO

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected