pub struct RxTest;Expand description
Runs a test of the application builder of Splat from a clean builder state, one test at a time
and within a time limit (RxTest).
Deviation (DEVIATIONS.md, ReactiveUI): the state of the application builder is per thread, as the rest of the state of ReactiveUI and Splat is, so the gate lets one test of the thread run at a time, not one of the process.
Implementations§
Source§impl RxTest
impl RxTest
Sourcepub fn app_builder_test_async(
test_body: impl FnOnce() -> Task<()> + 'static,
) -> Task<()> ⓘ
pub fn app_builder_test_async( test_body: impl FnOnce() -> Task<()> + 'static, ) -> Task<()> ⓘ
app_builder_test_async_with with the default time
limit of 60 seconds (AppBuilderTestAsync(Func<Task>)).
Sourcepub fn app_builder_test_async_with(
test_body: impl FnOnce() -> Task<()> + 'static,
max_wait_ms: u64,
) -> Task<()> ⓘ
pub fn app_builder_test_async_with( test_body: impl FnOnce() -> Task<()> + 'static, max_wait_ms: u64, ) -> Task<()> ⓘ
Runs test_body once no other test of the application builder runs, with the state of the
application builder reset before and after it, and gives a task that ends as the test does
(AppBuilderTestAsync(Func<Task>, int)).
The task ends with a TimeoutException when the gate is not free within max_wait_ms
milliseconds, or when the test runs longer than that; with the error of the test when it
fails, and with the error of a panic (PanicException) when test_body panics, as an
exception thrown in an async method faults its task.
Not ported: the ArgumentException of a null test body - argument validation.