From 0d879eb23113bf0582a3f312dcd7c71e265e2689 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Thu, 28 Nov 2019 18:00:40 +0100 Subject: [PATCH] Add more test on Optionnal, Required children serialization --- xmpp-parsers/src/carbons.rs | 10 ++++++++++ xmpp-parsers/src/cert_management.rs | 20 ++++++++++++++++++++ xmpp-parsers/src/forwarding.rs | 5 +++++ xmpp-parsers/src/jingle_ice_udp.rs | 5 +++++ xmpp-parsers/src/mam.rs | 10 ++++++++++ xmpp-parsers/src/muc/muc.rs | 5 +++++ xmpp-parsers/src/muc/user.rs | 5 +++++ xmpp-parsers/src/openpgp.rs | 5 +++++ xmpp-parsers/src/pubsub/pubsub.rs | 20 ++++++++++++++++++++ xmpp-parsers/src/sm.rs | 5 +++++ 10 files changed, 90 insertions(+) diff --git a/xmpp-parsers/src/carbons.rs b/xmpp-parsers/src/carbons.rs index 43047c2b..caf86353 100644 --- a/xmpp-parsers/src/carbons.rs +++ b/xmpp-parsers/src/carbons.rs @@ -124,4 +124,14 @@ mod tests { let sent = Sent::try_from(elem).unwrap(); assert!(sent.forwarded.stanza.is_some()); } + + #[test] + fn test_serialize_received() { + assert!(false); + } + + #[test] + fn test_serialize_sent() { + assert!(false); + } } diff --git a/xmpp-parsers/src/cert_management.rs b/xmpp-parsers/src/cert_management.rs index 106b1609..9478b020 100644 --- a/xmpp-parsers/src/cert_management.rs +++ b/xmpp-parsers/src/cert_management.rs @@ -227,4 +227,24 @@ mod tests { assert!(elem.is("name", ns::SASL_CERT)); assert_eq!(elem.text(), "Mobile Client"); } + + #[test] + fn test_serialize_item() { + assert!(false); + } + + #[test] + fn test_serialize_append() { + assert!(false); + } + + #[test] + fn test_serialize_disable() { + assert!(false); + } + + #[test] + fn test_serialize_revoke() { + assert!(false); + } } diff --git a/xmpp-parsers/src/forwarding.rs b/xmpp-parsers/src/forwarding.rs index 6517d22f..f51c6bbd 100644 --- a/xmpp-parsers/src/forwarding.rs +++ b/xmpp-parsers/src/forwarding.rs @@ -71,4 +71,9 @@ mod tests { let elem2 = forwarded.into(); assert_eq!(elem, elem2); } + + #[test] + fn test_serialize_with_delay_and_stanza() { + assert!(false); + } } diff --git a/xmpp-parsers/src/jingle_ice_udp.rs b/xmpp-parsers/src/jingle_ice_udp.rs index 1f5dada9..72a18c79 100644 --- a/xmpp-parsers/src/jingle_ice_udp.rs +++ b/xmpp-parsers/src/jingle_ice_udp.rs @@ -192,4 +192,9 @@ mod tests { ] ); } + + #[test] + fn test_serialize_transport() { + assert!(false); + } } diff --git a/xmpp-parsers/src/mam.rs b/xmpp-parsers/src/mam.rs index a644cef0..7799dea3 100644 --- a/xmpp-parsers/src/mam.rs +++ b/xmpp-parsers/src/mam.rs @@ -421,4 +421,14 @@ mod tests { let serialized: Element = foo.into(); assert_eq!(serialized, reference); } + + #[test] + fn test_serialize_result() { + assert!(false); + } + + #[test] + fn test_serialize_fin() { + assert!(false); + } } diff --git a/xmpp-parsers/src/muc/muc.rs b/xmpp-parsers/src/muc/muc.rs index ef5186db..02e849c7 100644 --- a/xmpp-parsers/src/muc/muc.rs +++ b/xmpp-parsers/src/muc/muc.rs @@ -191,4 +191,9 @@ mod tests { DateTime::from_str("1970-01-01T00:00:00+00:00").unwrap() ); } + + #[test] + fn test_serialize_muc_history() { + assert!(false); + } } diff --git a/xmpp-parsers/src/muc/user.rs b/xmpp-parsers/src/muc/user.rs index bcb997e2..35cd1267 100644 --- a/xmpp-parsers/src/muc/user.rs +++ b/xmpp-parsers/src/muc/user.rs @@ -687,4 +687,9 @@ mod tests { Item { reason, .. } => assert_eq!(reason, Some(Reason("foobar".to_owned()))), } } + + #[test] + fn test_serialize_item() { + assert!(false); + } } diff --git a/xmpp-parsers/src/openpgp.rs b/xmpp-parsers/src/openpgp.rs index f0cb892a..6ee88cc1 100644 --- a/xmpp-parsers/src/openpgp.rs +++ b/xmpp-parsers/src/openpgp.rs @@ -98,4 +98,9 @@ mod tests { }; println!("Foo2: {:?}", pubsub); } + + #[test] + fn test_serialize_pubkey() { + assert!(false); + } } diff --git a/xmpp-parsers/src/pubsub/pubsub.rs b/xmpp-parsers/src/pubsub/pubsub.rs index 13184f60..c62ed942 100644 --- a/xmpp-parsers/src/pubsub/pubsub.rs +++ b/xmpp-parsers/src/pubsub/pubsub.rs @@ -689,4 +689,24 @@ mod tests { let subscribe_options2 = SubscribeOptions::try_from(elem2).unwrap(); assert_eq!(subscribe_options2.required, true); } + + #[test] + fn test_serialize_configure() { + assert!(false); + } + + #[test] + fn test_serialize_options() { + assert!(false); + } + + #[test] + fn test_serialize_publish_options() { + assert!(false); + } + + #[test] + fn test_serialize_subscriptions() { + assert!(false); + } } diff --git a/xmpp-parsers/src/sm.rs b/xmpp-parsers/src/sm.rs index a78320f2..d84b1883 100644 --- a/xmpp-parsers/src/sm.rs +++ b/xmpp-parsers/src/sm.rs @@ -224,4 +224,9 @@ mod tests { assert_eq!(resumed.h, 5); assert_eq!(resumed.previd, previd); } + + #[test] + fn test_serialize_failed() { + assert!(false); + } }