Skip to main content

Crate turbo_tasks_testing

Crate turbo_tasks_testing 

Source
Expand description

Testing utilities and macros for turbo-tasks and applications based on it.

Modules§

retry

Macros§

register

Structs§

Registration
Type-erased factory returned by the register! macro. Stays non-generic so call sites can write static REGISTRATION: Registration = register!(); without naming the backing storage type.
TestInstance
A freshly created test instance: the TurboTasks handle (type-erased to Arc<dyn TurboTasksApi>) and a closure that, when called, takes a snapshot and evicts all evictable tasks on that instance.

Functions§

run
run_once
run_once_without_cache_check
run_with_tt
run_without_cache_check
test_instance
Wrap a concrete Arc<TurboTasks<TurboTasksBackend>> into a TestInstance. Called from the register! macro — the .trs closure returns a concrete TurboTasks, and this function erases the type while retaining eviction access via a capturing closure.