Package-level declarations
Types
See prepared.
A Prepared is a lazily-created value that is bound to a test, such that multiple reads provide the same value.
See shared.
A Shared is a lazily-created value that is reused between tests.
A group of tests.
A test declaration.
Common utilities and features required for testing.
Properties
CoroutineScope for services started by this test.
CoroutineScope for tasks started by this test.
Accesses the current time inside the test, in milliseconds.
Time control center.
Functions
Advances the current time by delay.
Runs all enqueued tasks in the specified order, advancing the virtual time as needed until there are no more scheduled tasks.
Starts a task in the foregroundScope. The test will wait for this task before finishing.
Starts a task in the backgroundScope scope. The test will not wait for this task before finishing.
Creates a new PreparedProvider which is the result of calling block on the input prepared provider.
Generates a random boolean.
Generates a random double.
Declares a lazily-prepared value which will be constructed by calling block during test execution.
Provider for random bits.
Provider for a random boolean.
Provider for a random double.
Provider for a random float.
Provider for a random integer.
Provider for a random integer.
Runs all enqueued tasks at this moment in the virtual time.
Low-level primitive to execute a test declared as a TestDsl.
Declares a lazily-computed value that is constructed by calling block, and is then shared between all tests.