Benign crates 8,053,311 installs Download

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

Evidence

assert_eq! macro tests.rs · lines 37–50
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
Code embeds cleartext HTTP URL literal tests.rs · lines 91–97
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 …
Source uses a buffer write call element.rs · lines 42–49
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 …
imports rxml::xml_ncname element.rs · lines 939–955
⋯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") …
References a public code-forge URL CHANGELOG.md · lines 55–60
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.