pub struct UniformSharding {
pub num_shards: Option<i32>,
}
Expand description
Uniformly shards test cases given a total number of shards. For instrumentation tests, it will be translated to “-e numShard” and “-e shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, specifying either of these sharding arguments via environment_variables
is invalid. Based on the sharding mechanism AndroidJUnitRunner uses, there is no guarantee that test cases will be distributed uniformly across all shards.
This type is not used in any activity, and only used as part of another schema.
Fields§
§num_shards: Option<i32>
Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 500.
Trait Implementations§
Source§impl Clone for UniformSharding
impl Clone for UniformSharding
Source§fn clone(&self) -> UniformSharding
fn clone(&self) -> UniformSharding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UniformSharding
impl Debug for UniformSharding
Source§impl Default for UniformSharding
impl Default for UniformSharding
Source§fn default() -> UniformSharding
fn default() -> UniformSharding
Source§impl<'de> Deserialize<'de> for UniformSharding
impl<'de> Deserialize<'de> for UniformSharding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for UniformSharding
impl Serialize for UniformSharding
impl Part for UniformSharding
Auto Trait Implementations§
impl Freeze for UniformSharding
impl RefUnwindSafe for UniformSharding
impl Send for UniformSharding
impl Sync for UniformSharding
impl Unpin for UniformSharding
impl UnwindSafe for UniformSharding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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