[−][src]Struct testing::NormalizedOutput
Normalized stdout/stderr.
Normalization
See https://github.com/rust-lang/rust/blob/b224fc84e3/src/test/COMPILER_TESTS.md#normalization
-
The
CARGO_MANIFEST_DIR
directory is replaced with$DIR
. -
All backslashes () within same line as
$DIR
are converted to forward slashes (/) (for Windows) - All CR LF newlines are converted to LF -
normalize-stdout
is not implemented (yet?).
Implementations
impl NormalizedOutput
[src]
pub fn compare_to_file<P>(self, path: P) -> Result<(), Diff> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
If output differs, prints actual stdout/stderr to
CARGO_MANIFEST_DIR/target/swc-test-results/ui/$rel_path
where
$rel_path
: path.strip_prefix(CARGO_MANIFEST_DIR)
Trait Implementations
impl Clone for NormalizedOutput
[src]
fn clone(&self) -> NormalizedOutput
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NormalizedOutput
[src]
impl Default for NormalizedOutput
[src]
fn default() -> NormalizedOutput
[src]
impl Deref for NormalizedOutput
[src]
impl Display for NormalizedOutput
[src]
impl Eq for NormalizedOutput
[src]
impl From<String> for NormalizedOutput
[src]
impl Hash for NormalizedOutput
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for NormalizedOutput
[src]
fn cmp(&self, other: &NormalizedOutput) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<NormalizedOutput> for NormalizedOutput
[src]
fn eq(&self, other: &NormalizedOutput) -> bool
[src]
fn ne(&self, other: &NormalizedOutput) -> bool
[src]
impl PartialOrd<NormalizedOutput> for NormalizedOutput
[src]
fn partial_cmp(&self, other: &NormalizedOutput) -> Option<Ordering>
[src]
fn lt(&self, other: &NormalizedOutput) -> bool
[src]
fn le(&self, other: &NormalizedOutput) -> bool
[src]
fn gt(&self, other: &NormalizedOutput) -> bool
[src]
fn ge(&self, other: &NormalizedOutput) -> bool
[src]
impl StructuralEq for NormalizedOutput
[src]
impl StructuralPartialEq for NormalizedOutput
[src]
Auto Trait Implementations
impl RefUnwindSafe for NormalizedOutput
impl Send for NormalizedOutput
impl Sync for NormalizedOutput
impl Unpin for NormalizedOutput
impl UnwindSafe for NormalizedOutput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,