Add more test on Optionnal, Required children serialization
This commit is contained in:
parent
db9f7a76be
commit
0d879eb231
10 changed files with 90 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,4 +71,9 @@ mod tests {
|
|||
let elem2 = forwarded.into();
|
||||
assert_eq!(elem, elem2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_serialize_with_delay_and_stanza() {
|
||||
assert!(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -192,4 +192,9 @@ mod tests {
|
|||
]
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_serialize_transport() {
|
||||
assert!(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -687,4 +687,9 @@ mod tests {
|
|||
Item { reason, .. } => assert_eq!(reason, Some(Reason("foobar".to_owned()))),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_serialize_item() {
|
||||
assert!(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,4 +98,9 @@ mod tests {
|
|||
};
|
||||
println!("Foo2: {:?}", pubsub);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_serialize_pubkey() {
|
||||
assert!(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -224,4 +224,9 @@ mod tests {
|
|||
assert_eq!(resumed.h, 5);
|
||||
assert_eq!(resumed.previd, previd);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_serialize_failed() {
|
||||
assert!(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue