Trait kailua_test::Testing [] [src]

pub trait Testing {
    fn run(
        &self,
        source: Rc<RefCell<Source>>,
        span: Span,
        filespans: &HashMap<String, Span>,
        report: Rc<Report>
    ) -> String; fn check_output(&self, actual: &str, expected: &str) -> bool { ... } fn augment_args<'a, 'b: 'a>(&self, app: App<'a, 'b>) -> App<'a, 'b> { ... } fn collect_args<'a>(&mut self, _matches: &ArgMatches<'a>) { ... } }

A customizable portion of the tester.

Required Methods

Runs the test with given input, producing an output and (optionally) reports.

source holds all inputs. span is the span for the (unnamed) main file; filespans are for everything else.

Provided Methods

Checks if the actual output and expected output matches. By default it is a simple string equivalence.

Alters the command-line parser (built with clap). Normally used to add additional options, and does nothing by default.

Collects the parsed command-line options. Does nothing by default.

Implementors