pub struct SbflRanker { /* private fields */ }Expand description
Ranks source files by their maximum Ochiai score.
Implementations§
Source§impl SbflRanker
impl SbflRanker
Sourcepub const fn new(records: Vec<CoverageRecord>) -> Self
pub const fn new(records: Vec<CoverageRecord>) -> Self
Create a ranker from coverage records.
Sourcepub fn rank_files(&self) -> Vec<(String, f32)>
pub fn rank_files(&self) -> Vec<(String, f32)>
Rank files by highest Ochiai score across all their lines.
Returns (file_path, max_ochiai_score) sorted by score descending.
Auto Trait Implementations§
impl Freeze for SbflRanker
impl RefUnwindSafe for SbflRanker
impl Send for SbflRanker
impl Sync for SbflRanker
impl Unpin for SbflRanker
impl UnsafeUnpin for SbflRanker
impl UnwindSafe for SbflRanker
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