Add more test on Optionnal, Required children serialization

Paul Fariello created

Change summary

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(+)

Detailed changes

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);
+    }
 }

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);
+    }
 }

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);
+    }
 }

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);
+    }
 }

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);
+    }
 }

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);
+    }
 }

xmpp-parsers/src/openpgp.rs 🔗

@@ -98,4 +98,9 @@ mod tests {
         };
         println!("Foo2: {:?}", pubsub);
     }
+
+    #[test]
+    fn test_serialize_pubkey() {
+        assert!(false);
+    }
 }

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);
+    }
 }

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);
+    }
 }