pub struct RichTerminalHeatmap { /* private fields */ }Expand description
Rich terminal heatmap with full visualization
Implementations§
Source§impl RichTerminalHeatmap
impl RichTerminalHeatmap
Sourcepub fn new(cells: Vec<Vec<CoverageCell>>) -> Self
pub fn new(cells: Vec<Vec<CoverageCell>>) -> Self
Create from coverage cells
Sourcepub fn with_title(self, title: &str) -> Self
pub fn with_title(self, title: &str) -> Self
Set title
Sourcepub fn with_mode(self, mode: OutputMode) -> Self
pub fn with_mode(self, mode: OutputMode) -> Self
Set output mode
Sourcepub fn with_palette(self, palette: ColorPalette) -> Self
pub fn with_palette(self, palette: ColorPalette) -> Self
Set color palette
Sourcepub fn with_threshold(self, threshold: f32) -> Self
pub fn with_threshold(self, threshold: f32) -> Self
Set coverage threshold
Sourcepub fn with_scores(self, show: bool) -> Self
pub fn with_scores(self, show: bool) -> Self
Enable/disable score panel
Sourcepub fn with_hypotheses(self, show: bool) -> Self
pub fn with_hypotheses(self, show: bool) -> Self
Enable/disable hypothesis status
Sourcepub fn render_grid(&self) -> String
pub fn render_grid(&self) -> String
Render the heatmap grid
Sourcepub fn render_scores(
&self,
pixel_coverage: f32,
line_coverage: Option<f32>,
) -> String
pub fn render_scores( &self, pixel_coverage: f32, line_coverage: Option<f32>, ) -> String
Render score panel
Sourcepub fn render_gap_analysis(&self) -> String
pub fn render_gap_analysis(&self) -> String
Render gap analysis
Sourcepub fn render_hypotheses(&self, hypotheses: &[CoverageHypothesis]) -> String
pub fn render_hypotheses(&self, hypotheses: &[CoverageHypothesis]) -> String
Render hypothesis falsification status
Sourcepub fn render_with_report(
&self,
report: Option<&CombinedCoverageReport>,
) -> String
pub fn render_with_report( &self, report: Option<&CombinedCoverageReport>, ) -> String
Render with combined report
Trait Implementations§
Source§impl Clone for RichTerminalHeatmap
impl Clone for RichTerminalHeatmap
Source§fn clone(&self) -> RichTerminalHeatmap
fn clone(&self) -> RichTerminalHeatmap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RichTerminalHeatmap
impl RefUnwindSafe for RichTerminalHeatmap
impl Send for RichTerminalHeatmap
impl Sync for RichTerminalHeatmap
impl Unpin for RichTerminalHeatmap
impl UnsafeUnpin for RichTerminalHeatmap
impl UnwindSafe for RichTerminalHeatmap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more