test
The test:: module provides runtime support for tests run via @test. The build driver automatically links test executables to the test module, and user tests may include the test module to access additional runtime features for testing.
Index
Functions
fn expectabort() void;
fn require(keywords: str...) void;
fn skip(reason: str) never;
Functions
fn expectabort
fn expectabort() void;
Expect the currently running test to abort. The test will fail if it doesn't abort.
fn require
fn require(keywords: str...) void;
Check the $HARETEST_INCLUDE space-delimited environment variable for keywords. If all the keywords are present, return void. Otherwise, skip the currently running test.
fn skip
fn skip(reason: str) never;
Skip the currently running test.