Function
Dextest_add_func
Declaration [src]
void
dex_test_add_func (
const char* testpath,
GTestFunc test_func
)
Description [src]
Adds a test function like g_test_add_func(), but runs test_func from a
DexFiber. The calling thread is given a thread-default
DexScheduler if it does not already have one, allowing tests to use
dex_await() and related APIs directly.
After test_func completes, the scheduler’s main context is iterated until no
immediately pending sources remain.
Parameters
testpath-
Type:
const char*Test case path.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. test_func-
Type:
GTestFuncTest function to execute from a fiber.