Expand description
Testing utilities and macros for turbo-tasks and applications based on it.
Modules§
Macros§
Structs§
- Registration
- Type-erased factory returned by the
register!macro. Stays non-generic so call sites can writestatic REGISTRATION: Registration = register!();without naming the backing storage type. - Test
Instance - A freshly created test instance: the
TurboTaskshandle (type-erased toArc<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 aTestInstance. Called from theregister!macro — the.trsclosure returns a concreteTurboTasks, and this function erases the type while retaining eviction access via a capturing closure.