minidom 0.18.0
“A small, simple DOM implementation on top of rxml, targeting the subset of XML useful for XMPP”
Rust inline tests module pathRust test marker or harness
SHA-256040b4e38f8abd85ddf9ea00646accc716b9d15e283b0aacb16f697ddba432c97
MaleculeH₂(Cm₂F)Md₂(InPa)
Evidence
37:19… ild(other_child);
38 root.append_text_node("nya");
39 root
40}
41
42#[test]
43fn reader_works() {
44 assert_eq!(
45 Element::from_reader(TEST_STRING).unwrap(),
46 build_test_tree()
⋯4 lines
91 .build();
92 let _stream = Element::builder("stream", "http://etherx.jabber.org/streams")
93 .prefix(
94 Some(String::from("stream")),
95 "http://etherx.jabber.org/streams",
96 )
97 …
42:32… &mut buf)
43 .expect("encoder driven incorrectly");
44 w.write_all(&buf[..])?;
45 Ok(())
46}
47
48/// Wrapper around a [`io::Write`] and an [`rxml::writer::Encoder`], to
49/// provide a simple function …
⋯4 lines
943}
944
945#[cfg(test)]
946mod tests {
947 use super::*;
948 use rxml::xml_ncname;
949 use std::collections::BTreeMap;
950
951 #[test]
952 fn test_element_new() {
953 let mut attrs = AttrMap::new();
954 attrs.insert(
955 String::from("namespace") …
55:57… rrectly (thanks Jasper!)
56 * Fix support for newer rustc (see https://github.com/rust-lang/rust/issues/90199)
57
58Version 0.13.0, released 2021-01-13:
59 * Changes
60 * Force namespaces on Element, which was a br …
No evidence locations were recorded for this file. Raw result