pub fn summarize_csv<W: Write>(&self, summary_writer: &mut W) -> io::Result<()> {
        let module = format!(
            "{}::{}",
            self.module_name.address(),
            self.module_name.name()
        );

        let mut format_line = |fn_name, covered, uncovered| {
            writeln!(
                summary_writer,
                "{},{},{},{}",
                module, fn_name, covered, uncovered
            )
        };

        for (fn_name, fn_summary) in self
            .function_summaries
            .iter()
            .filter(|(_, summary)| !summary.fn_is_native)
        {
            format_line(fn_name, fn_summary.covered, fn_summary.total)?;
        }

        Ok(())
    }
/// Summarizes the modules coverage in CSV format
Summarizes the modules coverage in CSV format
Summarizes the modules coverage in CSV format
pub fn summarize_csv<W: Write>(&self, summary_writer: &mut W) -> io::Result<()> {
        let module = format!(
            "{}::{}",
            self.module_name.address(),
            self.module_name.name()
        );
        let mut format_line = |fn_name, covered, uncovered| {
            writeln!(
                summary_writer,
                "{},{},{},{}",
                module, fn_name, covered, uncovered
            )
        };
        for (fn_name, fn_summary) in self
            .function_summaries
            .iter()
            .filter(|(_, summary)| !summary.fn_is_native)
        {
            format_line(fn_name, fn_summary.covered, fn_summary.total)?;
        }
        Ok(())
    }
pub fn summarize_csv < W : Write > ( & self , summary_writer : & mut W ) -> io :: Result < ( ) > { let module = format ! ( " " self module_name address ( ) self module_name name ( ) ) ; let mut format_line = | fn_name , covered , uncovered | { writeln ! ( summary_writer " " module fn_name covered uncovered ) } ; for ( fn_name , fn_summary ) in self . function_summaries . iter ( ) . filter ( | ( _ , summary ) | ! summary . fn_is_native ) { format_line ( fn_name , fn_summary . covered , fn_summary . total ) ? ; } Ok ( ( ) ) }
Summarizes the modules coverage in CSV format
Summarizes the modules coverage in CSV format
&self
summary_writer
&mut W