dream_test/context
Types
Per-test context carrying assertion failures and any other per-test metadata we may need later.
This is the core state threaded through assertions.
pub type TestContext {
TestContext(failures: List(types.AssertionFailure))
}
Constructors
-
TestContext(failures: List(types.AssertionFailure))
Values
pub fn add_failure(
context: TestContext,
failure: types.AssertionFailure,
) -> TestContext
pub fn failures(
context: TestContext,
) -> List(types.AssertionFailure)
pub fn new() -> TestContext