Add more test on Optionnal, Required children serialization

This commit is contained in:
Paul Fariello 2019-11-28 18:00:40 +01:00 committed by Paul Fariello
parent db9f7a76be
commit 0d879eb231
10 changed files with 90 additions and 0 deletions

View file

@ -124,4 +124,14 @@ mod tests {
let sent = Sent::try_from(elem).unwrap(); let sent = Sent::try_from(elem).unwrap();
assert!(sent.forwarded.stanza.is_some()); assert!(sent.forwarded.stanza.is_some());
} }
#[test]
fn test_serialize_received() {
assert!(false);
}
#[test]
fn test_serialize_sent() {
assert!(false);
}
} }

View file

@ -227,4 +227,24 @@ mod tests {
assert!(elem.is("name", ns::SASL_CERT)); assert!(elem.is("name", ns::SASL_CERT));
assert_eq!(elem.text(), "Mobile Client"); 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);
}
} }

View file

@ -71,4 +71,9 @@ mod tests {
let elem2 = forwarded.into(); let elem2 = forwarded.into();
assert_eq!(elem, elem2); assert_eq!(elem, elem2);
} }
#[test]
fn test_serialize_with_delay_and_stanza() {
assert!(false);
}
} }

View file

@ -192,4 +192,9 @@ mod tests {
] ]
); );
} }
#[test]
fn test_serialize_transport() {
assert!(false);
}
} }

View file

@ -421,4 +421,14 @@ mod tests {
let serialized: Element = foo.into(); let serialized: Element = foo.into();
assert_eq!(serialized, reference); assert_eq!(serialized, reference);
} }
#[test]
fn test_serialize_result() {
assert!(false);
}
#[test]
fn test_serialize_fin() {
assert!(false);
}
} }

View file

@ -191,4 +191,9 @@ mod tests {
DateTime::from_str("1970-01-01T00:00:00+00:00").unwrap() DateTime::from_str("1970-01-01T00:00:00+00:00").unwrap()
); );
} }
#[test]
fn test_serialize_muc_history() {
assert!(false);
}
} }

View file

@ -687,4 +687,9 @@ mod tests {
Item { reason, .. } => assert_eq!(reason, Some(Reason("foobar".to_owned()))), Item { reason, .. } => assert_eq!(reason, Some(Reason("foobar".to_owned()))),
} }
} }
#[test]
fn test_serialize_item() {
assert!(false);
}
} }

View file

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

View file

@ -689,4 +689,24 @@ mod tests {
let subscribe_options2 = SubscribeOptions::try_from(elem2).unwrap(); let subscribe_options2 = SubscribeOptions::try_from(elem2).unwrap();
assert_eq!(subscribe_options2.required, true); 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);
}
} }

View file

@ -224,4 +224,9 @@ mod tests {
assert_eq!(resumed.h, 5); assert_eq!(resumed.h, 5);
assert_eq!(resumed.previd, previd); assert_eq!(resumed.previd, previd);
} }
#[test]
fn test_serialize_failed() {
assert!(false);
}
} }