pub struct CoverageExecutor { /* private fields */ }Expand description
Heijunka-balanced coverage executor with superblock scheduling
Implementations§
Source§impl CoverageExecutor
impl CoverageExecutor
Sourcepub fn new(superblocks: Vec<Superblock>) -> Self
pub fn new(superblocks: Vec<Superblock>) -> Self
Create a new executor
Sourcepub fn with_workers(self, count: usize) -> Self
pub fn with_workers(self, count: usize) -> Self
Set the number of workers
Sourcepub fn with_work_stealing(self, enabled: bool) -> Self
pub fn with_work_stealing(self, enabled: bool) -> Self
Enable or disable work stealing
Sourcepub fn execute<F>(&self, test_fn: F) -> CoverageReport
pub fn execute<F>(&self, test_fn: F) -> CoverageReport
Execute coverage collection for all superblocks
In a full implementation, this would use Simular’s WorkStealingMonteCarlo for parallel execution.
Sourcepub fn superblock_count(&self) -> usize
pub fn superblock_count(&self) -> usize
Get the number of superblocks
Sourcepub fn total_block_count(&self) -> usize
pub fn total_block_count(&self) -> usize
Get the total number of blocks across all superblocks
Sourcepub fn worker_count(&self) -> usize
pub fn worker_count(&self) -> usize
Get the worker count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoverageExecutor
impl RefUnwindSafe for CoverageExecutor
impl Send for CoverageExecutor
impl Sync for CoverageExecutor
impl Unpin for CoverageExecutor
impl UnsafeUnpin for CoverageExecutor
impl UnwindSafe for CoverageExecutor
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