pub struct ShardedRunner { /* private fields */ }Expand description
Sharded test runner
Implementations§
Source§impl ShardedRunner
impl ShardedRunner
Sourcepub fn new(config: ShardConfig) -> Self
pub fn new(config: ShardConfig) -> Self
Create a new sharded runner
Sourcepub fn add_tests(&mut self, tests: impl IntoIterator<Item = impl Into<String>>)
pub fn add_tests(&mut self, tests: impl IntoIterator<Item = impl Into<String>>)
Add tests to the runner
Sourcepub fn assigned_tests(&self) -> Vec<&str>
pub fn assigned_tests(&self) -> Vec<&str>
Get tests assigned to this shard
Sourcepub fn config(&self) -> ShardConfig
pub fn config(&self) -> ShardConfig
Get shard configuration
Sourcepub fn total_tests(&self) -> usize
pub fn total_tests(&self) -> usize
Get total test count
Sourcepub fn assigned_count(&self) -> usize
pub fn assigned_count(&self) -> usize
Get assigned test count
Trait Implementations§
Source§impl Clone for ShardedRunner
impl Clone for ShardedRunner
Source§fn clone(&self) -> ShardedRunner
fn clone(&self) -> ShardedRunner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShardedRunner
impl RefUnwindSafe for ShardedRunner
impl Send for ShardedRunner
impl Sync for ShardedRunner
impl Unpin for ShardedRunner
impl UnsafeUnpin for ShardedRunner
impl UnwindSafe for ShardedRunner
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