[][src]Struct platina::TestFile

pub struct TestFile { /* fields omitted */ }

TestFile represents a plaintext file in platina's expected format

Implementations

impl TestFile[src]

pub fn new(path: &str) -> TestFile[src]

Construct a new TestFile from a path to a platina text file.

pub fn run_tests<T: Testable>(&mut self, tester: &mut T) -> Result<()>[src]

Runs tests in this file using the provided tester.

pub fn run_tests_and_update<T: Testable>(
    &mut self,
    tester: &mut T
) -> Result<()>
[src]

Runs tests in this file using the provided tester, updating the test file with the expected results.

Trait Implementations

impl Clone for TestFile[src]

impl Debug for TestFile[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.