corbertura_xml_split

Function corbertura_xml_split 

Source
pub fn corbertura_xml_split<P: AsRef<Path>>(filename: P) -> Result<()>
Expand description

Algorithm:

  • read from XML file using streaming parser
  • write to temporary bytes buffer until package tag is closed
  • verify that buffer appended to existing outfile does not surpass desired size
  • if surpassed, write and close current file then start new file with buffer contents