pub(crate) enum PassFailMode {
CheckFail,
CheckPass,
BuildFail,
BuildPass,
RunFail,
RunCrash,
RunFailOrCrash,
RunPass,
}Variants§
CheckFail
CheckPass
BuildFail
BuildPass
RunFail
Running the program must make it exit with a regular failure exit code
in the range 1..=127. If the program is terminated by e.g. a signal
the test will fail.
RunCrash
Running the program must result in a crash, e.g. by SIGABRT or
SIGSEGV on Unix or on Windows by having an appropriate NTSTATUS high
bit in the exit code.
RunFailOrCrash
Running the program must either fail or crash. Useful for e.g. sanitizer tests since some sanitizer implementations exit the process with code 1 to in the face of memory errors while others abort (crash) the process in the face of memory errors.
RunPass
Implementations§
Source§impl PassFailMode
impl PassFailMode
Trait Implementations§
Source§impl Clone for PassFailMode
impl Clone for PassFailMode
Source§fn clone(&self) -> PassFailMode
fn clone(&self) -> PassFailMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PassFailMode
impl Debug for PassFailMode
Source§impl Display for PassFailMode
impl Display for PassFailMode
Source§impl FromStr for PassFailMode
impl FromStr for PassFailMode
Source§impl PartialEq for PassFailMode
impl PartialEq for PassFailMode
Source§fn eq(&self, other: &PassFailMode) -> bool
fn eq(&self, other: &PassFailMode) -> bool
self and other values to be equal, and is used by ==.impl Copy for PassFailMode
impl Eq for PassFailMode
impl StructuralPartialEq for PassFailMode
Auto Trait Implementations§
impl Freeze for PassFailMode
impl RefUnwindSafe for PassFailMode
impl Send for PassFailMode
impl Sync for PassFailMode
impl Unpin for PassFailMode
impl UnsafeUnpin for PassFailMode
impl UnwindSafe for PassFailMode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
CheckFail: 0 bytesCheckPass: 0 bytesBuildFail: 0 bytesBuildPass: 0 bytesRunFail: 0 bytesRunCrash: 0 bytesRunFailOrCrash: 0 bytesRunPass: 0 bytes