Skip to main content

assert_document_matches_golden

Function assert_document_matches_golden 

Source
pub fn assert_document_matches_golden(
    root: impl AsRef<Path>,
    golden_name: impl AsRef<Path>,
    document: &Document,
    config: &WriterConfig,
) -> XmlResult<()>
Expand description

Serializes a document using an explicit writer configuration and compares it to a golden file.