()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected