Struct gcj_helper::TestEngine
[−]
[src]
pub struct TestEngine<I: AsRef<Path>, O: AsRef<Path>> { /* fields omitted */ }
Facilitates the execution of problem solving code.
Methods
impl<I: AsRef<Path>, O: AsRef<Path>> TestEngine<I, O>
[src]
fn new(input_file_path: I, output_file_path: O) -> TestEngine<I, O>
Creates a new test engine using the specified input and output file paths.
Calling this method is cheap; no files are opened until TestEngine::run()
is called.
fn run<D: Sized + Send + Sync, R: Display + Sized + Send, P: Fn(&mut InputReader) -> D, S: Fn(&D) -> R + Sync>(
self,
p: P,
s: S
)
self,
p: P,
s: S
)
Consumes the test engine, executing a parser and solver once per test case.
Panics
This method panics in the event of an I/O error.
impl TestEngine<OsString, OsString>
[src]
fn from_args() -> TestEngine<OsString, OsString>
Creates a new test engine using input and output file paths obtained from command line arguments.
Calling this method is cheap; no files are opened until TestEngine::run()
is called.
Panics
This method panics if either the input file path or output file path is missing.
Trait Implementations
impl<I: Debug + AsRef<Path>, O: Debug + AsRef<Path>> Debug for TestEngine<I, O>
[src]
impl Default for TestEngine<OsString, OsString>
[src]
fn default() -> TestEngine<OsString, OsString>
Returns the "default value" for a type. Read more