fedimint_testing::db

Function validate_migrations_client

Source
pub async fn validate_migrations_client<F, Fut, T>(
    module: DynClientModuleInit,
    db_prefix: &str,
    validate: F,
) -> Result<(), Error>
where F: Fn(Database, Vec<<T as ClientModule>::States>, Vec<<T as ClientModule>::States>) -> Fut, Fut: Future<Output = Result<(), Error>>, T: ClientModule,
Expand description

Validates the database migrations for a client module. First applies all database migrations to the module, including the state machine migrations. Then calls the validate function, including the new active_states and inactive_states, and is expected to confirm the database migrations were successful.