[][src]Struct testing::Tester

pub struct Tester {
    pub cm: Arc<SourceMap>,
    pub globals: Globals,
}

Fields

cm: Arc<SourceMap>globals: Globals

Methods

impl Tester[src]

pub fn new() -> Self[src]

pub fn print_errors<F, Ret>(&self, op: F) -> Result<Ret, StdErr> where
    F: FnOnce(Arc<SourceMap>, Handler) -> Result<Ret, ()>, 
[src]

Run test and print errors.

pub fn errors<F, Ret>(&self, op: F) -> Result<Ret, Vec<Diagnostic>> where
    F: FnOnce(Arc<SourceMap>, Handler) -> Result<Ret, ()>, 
[src]

Run test and collect errors.

Auto Trait Implementations

impl Send for Tester

impl Sync for Tester

impl Unpin for Tester

impl !UnwindSafe for Tester

impl !RefUnwindSafe for Tester

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, F> Fold<T> for F where
    T: FoldWith<F>, 
[src]

impl<T, F> Visit<T> for F where
    T: VisitWith<F> + ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T