Skip to main content

CoverageReporter

Trait CoverageReporter 

Source
pub trait CoverageReporter {
    // Required methods
    fn name(&self) -> &'static str;
    fn report(&mut self, report: &CoverageReport) -> Result<()>;

    // Provided method
    fn needs_source_maps(&self) -> bool { ... }
}
Expand description

A coverage reporter.

Required Methods§

Source

fn name(&self) -> &'static str

Returns a debug string for the reporter.

Source

fn report(&mut self, report: &CoverageReport) -> Result<()>

Runs the reporter.

Provided Methods§

Source

fn needs_source_maps(&self) -> bool

Returns true if the reporter needs source maps for the final report.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§