startest/test_case
Types
A Test that has been executed and has a TestOutcome.
pub type ExecutedTest {
ExecutedTest(test_case: Test, outcome: TestOutcome)
}
Constructors
-
ExecutedTest(test_case: Test, outcome: TestOutcome)
A test case.
pub type Test {
Test(name: String, body: fn() -> Nil, skipped: Bool)
}
Constructors
-
Test(name: String, body: fn() -> Nil, skipped: Bool)
The outcome of a Test that has been run.
pub type TestOutcome {
Passed
Failed(test_failure.TestFailure)
Skipped
}
Constructors
-
Passed -
Failed(test_failure.TestFailure) -
Skipped
Values
pub fn test_decoder() -> decode.Decoder(Test)