[−][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?).
Methods
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 PartialEq<NormalizedOutput> for NormalizedOutput
[src]
fn eq(&self, other: &NormalizedOutput) -> bool
[src]
fn ne(&self, other: &NormalizedOutput) -> bool
[src]
impl Clone for NormalizedOutput
[src]
fn clone(&self) -> NormalizedOutput
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
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 Eq for NormalizedOutput
[src]
impl Ord for NormalizedOutput
[src]
fn cmp(&self, other: &NormalizedOutput) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl From<String> for NormalizedOutput
[src]
impl Default for NormalizedOutput
[src]
fn default() -> NormalizedOutput
[src]
impl Display for NormalizedOutput
[src]
impl Debug 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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Deref for NormalizedOutput
[src]
Auto Trait Implementations
impl Send for NormalizedOutput
impl Sync for NormalizedOutput
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, F> Fold for F where
T: FoldWith<F>,
[src]
T: FoldWith<F>,
fn fold(&mut self, t: T) -> T
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
Creates a folder which applies folder
after self
.
impl<T, F> Visit for F where
T: VisitWith<F> + ?Sized,
[src]
T: VisitWith<F> + ?Sized,
fn visit(&mut self, t: &T)
[src]
fn then<F>(self, visitor: F) -> AndThen<Self, F> where
F: Visit<T>,
[src]
F: Visit<T>,
Creates a folder which applies folder
after self
.