From f2591a517c1cc81409048512aeb1b6b351006f50 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 11 Jul 2023 18:08:25 +0200 Subject: openpgp: Improve tracing. --- openpgp/src/packet/userid.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3