use dfe::{XmlExtractor, XmlExtractorSignature};
mod common;
#[test]
fn golden_extrai_nfe_proc_da_fixture_55() {
let xml = common::read_xml_fixture("nfe55_autorizada.xml");
let proc = XmlExtractor::new()
.nfe_proc_from_string(&xml)
.expect("extrair nfeProc da fixture 55");
insta::assert_debug_snapshot!(proc);
}
#[test]
fn golden_extrai_nfe_proc_da_fixture_65() {
let xml = common::read_xml_fixture("nfce65_autorizada.xml");
let proc = XmlExtractor::new()
.nfe_proc_from_string(&xml)
.expect("extrair nfeProc da fixture 65");
insta::assert_debug_snapshot!(proc);
}
#[test]
fn smoke_extrai_de_xml_minimo_inline() {
let xml = r#"<NFe><infNFe><ide><cUF>35</cUF></ide></infNFe></NFe>"#;
let _ = XmlExtractor::new().nfe_proc_from_string(xml);
let _ = XmlExtractor::new().nfe_from_string(xml);
}