Struct testing::TestOutput
source · [−]pub struct TestOutput<R> {
pub errors: StdErr,
pub result: R,
}
Fields
errors: StdErr
Errors produced by swc_common::error::Handler
.
result: R
Implementations
sourceimpl<R> TestOutput<Option<R>>
impl<R> TestOutput<Option<R>>
sourcepub fn expect_err(self, _path: &Path)
pub fn expect_err(self, _path: &Path)
Expects result
to be None
and errors
to be match content
of ${path}.stderr
.
Auto Trait Implementations
impl<R> RefUnwindSafe for TestOutput<R> where
R: RefUnwindSafe,
impl<R> Send for TestOutput<R> where
R: Send,
impl<R> Sync for TestOutput<R> where
R: Sync,
impl<R> Unpin for TestOutput<R> where
R: Unpin,
impl<R> UnwindSafe for TestOutput<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn 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>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more