diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-11 18:08:25 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-11 18:09:20 +0200 |
commit | f2591a517c1cc81409048512aeb1b6b351006f50 (patch) | |
tree | 8e722947ad05f75773e7a4271b546c30173a3673 | |
parent | 99309600320d767ebf7d08549bdc4ab4a0de2dcf (diff) |
openpgp: Improve tracing.
-rw-r--r-- | openpgp/src/packet/userid.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/packet/userid.rs b/openpgp/src/packet/userid.rs index b1cae409..9185e55a 100644 --- a/openpgp/src/packet/userid.rs +++ b/openpgp/src/packet/userid.rs @@ -1010,6 +1010,10 @@ mod tests { email: Option<&str>, uri: Option<&str>) -> bool { + assert!(email.is_none() || uri.is_none()); + t!("userid: {}, name: {:?}, comment: {:?}, email: {:?}, uri: {:?}", + userid, name, comment, email, uri); + match ConventionallyParsedUserID::new(userid) { Ok(puid) => { let good = puid.name() == name |