pub struct AutoCompressedDAGSearcher { /* private fields */ }
Expand description
Performs a robust binary search over a CompressedDAG and automatically infers the flakiness based on the votes.
Implementations§
Source§impl AutoCompressedDAGSearcher
impl AutoCompressedDAGSearcher
Sourcepub fn new(graph: Rc<CompressedDAG>) -> Self
pub fn new(graph: Rc<CompressedDAG>) -> Self
Creates a new AutoCompressedDAGSearcher.
Sourcepub fn report(&mut self, node: CompressedDAGNodeRef, heads: bool)
pub fn report(&mut self, node: CompressedDAGNodeRef, heads: bool)
Adds a vote to the internal statistics. With low flakiness, nodes with false votes are expected not to nodes with true votes as ancestors.
§Panics
Panics if the node is out of range.
Sourcepub fn next_node(&self) -> CompressedDAGNodeRef
pub fn next_node(&self) -> CompressedDAGNodeRef
Returns the next node that should be tested.
Sourcepub fn best_node(&self) -> CompressedDAGNodeRef
pub fn best_node(&self) -> CompressedDAGNodeRef
Returns the current estimate of the best node.
Sourcepub fn likelihood(&self, index: CompressedDAGNodeRef) -> f64
pub fn likelihood(&self, index: CompressedDAGNodeRef) -> f64
Trait Implementations§
Source§impl Clone for AutoCompressedDAGSearcher
impl Clone for AutoCompressedDAGSearcher
Source§fn clone(&self) -> AutoCompressedDAGSearcher
fn clone(&self) -> AutoCompressedDAGSearcher
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 AutoCompressedDAGSearcher
impl RefUnwindSafe for AutoCompressedDAGSearcher
impl !Send for AutoCompressedDAGSearcher
impl !Sync for AutoCompressedDAGSearcher
impl Unpin for AutoCompressedDAGSearcher
impl UnwindSafe for AutoCompressedDAGSearcher
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