diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-03-01 16:24:03 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-03-01 18:08:57 +0100 |
commit | ea5606fd9cd2096301e7e4b690f9998d6a36bff9 (patch) | |
tree | f47af7e66478c3f06bbc83acf07e5da84377379d /openpgp/src/parse/stream.rs | |
parent | 58fa8e0282e76c63295018c0953122209063a802 (diff) |
openpgp: Add high-level encryption and signing roundtrip tests.
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index ed7980c3..a6a02b67 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -2976,7 +2976,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> io::Read for Decryptor<'a, H> } #[cfg(test)] -mod test { +pub mod test { use std::io::Read; use super::*; use std::convert::TryFrom; @@ -2988,7 +2988,7 @@ mod test { }; #[derive(PartialEq)] - struct VHelper { + pub struct VHelper { good: usize, unknown: usize, bad: usize, @@ -3029,9 +3029,9 @@ mod test { } impl VHelper { - fn new(good: usize, unknown: usize, bad: usize, error: usize, - certs: Vec<Cert>) - -> Self { + pub fn new(good: usize, unknown: usize, bad: usize, error: usize, + certs: Vec<Cert>) + -> Self { VHelper { good, unknown, @@ -3045,11 +3045,12 @@ mod test { } } - fn for_decryption(good: usize, unknown: usize, bad: usize, error: usize, - certs: Vec<Cert>, - keys: Vec<Cert>, - passwords: Vec<Password>) - -> Self { + pub fn for_decryption(good: usize, unknown: usize, bad: usize, + error: usize, + certs: Vec<Cert>, + keys: Vec<Cert>, + passwords: Vec<Password>) + -> Self { VHelper { good, unknown, |