Function run_with_database

Source
pub async fn run_with_database<DB, H>(
    backend: DB,
    handler: H,
) -> Result<TestContext<DB>, H::Error>
where DB: DatabaseBackend + Send + Sync + Debug + 'static, H: TransactionHandler<DB>,
Expand description

Helper function to run a handler with a new database