summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-22 12:55:48 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-22 12:55:48 +0100
commit411d8310b8423931a91b5c4d2cee2e7d54291ad2 (patch)
treea24cd35fe5cbe71c5e0389a5db89e051a6acb457
parent637e10495a0d5f7e980c613aba575de1f3bc0760 (diff)
openpgp: Don't do the test again with the reader interface.
- DetachedVerifier::from_bytes() does the same thing internally.
-rw-r--r--openpgp/src/parse/stream.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index 7ed6badc..17c42a83 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -2149,19 +2149,6 @@ mod test {
let h = v.into_helper();
assert_eq!(h.good, 1);
assert_eq!(h.bad, 0);
-
- // Same, but with readers.
- use std::io::Cursor;
- let h = VHelper::new(0, 0, 0, 0, keys.clone());
- let mut v = DetachedVerifier::from_reader(
- Cursor::new(sig), Cursor::new(content),
- h, reference).unwrap();
-
- let got = read_to_end(&mut v, l, &mut buffer);
- let got = &buffer[..got];
- assert!(v.message_processed());
- assert_eq!(got.len(), content.len());
- assert_eq!(got, &content[..]);
}
crate::vec_truncate(&mut buffer, 0);
}