diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 13:37:20 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 13:42:30 +0100 |
commit | a52f66d26bdef3ce9c8948aa058dff39048e16c3 (patch) | |
tree | 97d43866651423458ffdedb3813f248a4677bbd5 | |
parent | 0eccc8747c26e4676f2d2f8739e89f03357f87e0 (diff) |
openpgp: Improve test case.
-rw-r--r-- | openpgp/src/parse/stream.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index a23cda9f..cca238dc 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -1637,7 +1637,7 @@ mod test { use super::*; use crate::parse::Parse; - #[derive(Debug, PartialEq)] + #[derive(PartialEq)] struct VHelper { good: usize, unknown: usize, @@ -1646,6 +1646,17 @@ mod test { keys: Vec<TPK>, } + impl std::fmt::Debug for VHelper { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + f.debug_struct("VHelper") + .field("good", &self.good) + .field("unknown", &self.unknown) + .field("bad", &self.bad) + .field("error", &self.error) + .finish() + } + } + impl Default for VHelper { fn default() -> Self { VHelper { |