pub struct TypeScriptThresholds {
pub lines: u8,
pub branches: u8,
pub functions: u8,
pub statements: u8,
}Expand description
The four vitest coverage floors, from a [typescript].coverage table. Each
is an independent percent the unit suite must meet — vitest measures all four.
Fields§
§lines: u8§branches: u8§functions: u8§statements: u8Trait Implementations§
Source§impl Clone for TypeScriptThresholds
impl Clone for TypeScriptThresholds
Source§fn clone(&self) -> TypeScriptThresholds
fn clone(&self) -> TypeScriptThresholds
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 moreimpl Copy for TypeScriptThresholds
Source§impl Debug for TypeScriptThresholds
impl Debug for TypeScriptThresholds
impl Eq for TypeScriptThresholds
Source§impl PartialEq for TypeScriptThresholds
impl PartialEq for TypeScriptThresholds
Source§fn eq(&self, other: &TypeScriptThresholds) -> bool
fn eq(&self, other: &TypeScriptThresholds) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeScriptThresholds
Auto Trait Implementations§
impl Freeze for TypeScriptThresholds
impl RefUnwindSafe for TypeScriptThresholds
impl Send for TypeScriptThresholds
impl Sync for TypeScriptThresholds
impl Unpin for TypeScriptThresholds
impl UnsafeUnpin for TypeScriptThresholds
impl UnwindSafe for TypeScriptThresholds
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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