Function

Dex-1Dextest_add_func

  • Adds a test function like g_test_add_func(), but runs test_func from a Dex.Fiber. The calling thread is given a thread-default Dex.Scheduler 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: string

      test case path

    • test_func: TestFunc

      test function to execute from a fiber

    Returns void