pub struct TestPrioritizer { /* private fields */ }Expand description
Heuristic test case prioritizer (legacy)
Simple prioritizer using heuristic bug prediction. For production use with
reinforcement learning, prefer RLTestPrioritizer which implements
Thompson Sampling (Spieker et al. 2017).
Implementations§
Source§impl TestPrioritizer
impl TestPrioritizer
Sourcepub fn prioritize(&self, features: &[CodeFeatures]) -> Vec<usize>
pub fn prioritize(&self, features: &[CodeFeatures]) -> Vec<usize>
Prioritize test cases by predicted failure probability
Uses heuristic BugPredictor. For RL-based prioritization,
use RLTestPrioritizer instead.
Returns indices sorted by priority (highest first)
Sourcepub fn update_feedback(&mut self, _feature: &str, _failed: bool)
pub fn update_feedback(&mut self, _feature: &str, _failed: bool)
Update with feedback from test results
No-op for heuristic prioritizer. Use RLTestPrioritizer::update_feedback
for learning-based prioritization.
Trait Implementations§
Source§impl Debug for TestPrioritizer
impl Debug for TestPrioritizer
Source§impl Default for TestPrioritizer
impl Default for TestPrioritizer
Source§fn default() -> TestPrioritizer
fn default() -> TestPrioritizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestPrioritizer
impl RefUnwindSafe for TestPrioritizer
impl Send for TestPrioritizer
impl Sync for TestPrioritizer
impl Unpin for TestPrioritizer
impl UnsafeUnpin for TestPrioritizer
impl UnwindSafe for TestPrioritizer
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> 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