fedimint_testing_core::db

Function open_temp_db_and_copy

Source
fn open_temp_db_and_copy(
    temp_path: &str,
    src_dir: &Path,
    decoders: ModuleDecoderRegistry,
) -> Result<(Database, TempDir)>
Expand description

Open a temporary database located at temp_path and copy the contents from the folder src_dir to the temporary database’s path.