[][src]Struct testing::Tester

pub struct Tester {
    pub cm: Lrc<SourceMap>,
    pub globals: Globals,
    // some fields omitted
}

Fields

cm: Lrc<SourceMap>globals: Globals

Implementations

impl Tester[src]

pub fn new() -> Self[src]

pub fn no_error(self) -> Self[src]

pub fn print_errors<F, Ret>(&self, op: F) -> Result<Ret, StdErr> where
    F: FnOnce(Lrc<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(Lrc<SourceMap>, Handler) -> Result<Ret, ()>, 
[src]

Run test and collect errors.

Auto Trait Implementations

impl !RefUnwindSafe for Tester

impl !Send for Tester

impl !Sync for Tester

impl Unpin for Tester

impl !UnwindSafe for Tester

Blanket Implementations

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

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

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

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

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

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

impl<T> Sync for T where
    T: ?Sized
[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.