plushie/testing/backend/pooled
Pooled test backend sharing a single renderer process.
Each test gets its own session managed by a SessionPool. Wire I/O goes through the shared pool while model, tree, and event dispatch are managed locally. This enables concurrent test execution against one renderer process.
Usage
Start a pool in test setup:
let assert Ok(pool) = session_pool.start(
session_pool.PoolConfig(..session_pool.default_config(),
renderer_path: Some("/path/to/plushie"),
),
)
Create the backend:
let backend = pooled.backend(pool)
Values
pub fn backend(
pool: process.Subject(session_pool.PoolMessage),
) -> backend.TestBackend(model)
Create a pooled test backend.