fn storage_fixture_with_hard_reset_and_protocol_version(
    harness: &ComponentHarness<UnitTestEvent>,
    reset_era_id: EraId,
    protocol_version: ProtocolVersion,
) -> Storage {
    let cfg = new_config(harness);
    Storage::new(
        &WithDir::new(harness.tmp.path(), cfg),
        Some(reset_era_id),
        protocol_version,
        false,
        "test",
    )
    .expect("could not create storage component fixture")
}
/// Storage component test fixture.
///
/// Creates a storage component in a temporary directory, but with a hard reset to a specified era.
///
/// # Panics
///
/// Panics if setting up the storage fixture fails.
Storage component test fixture.
Creates a storage component in a temporary directory, but with a hard reset to a specified era.
Storage component test fixture . Creates a storage component in a temporary directory but with a hard reset to a specified era .
fn storage_fixture_with_hard_reset_and_protocol_version(
    harness: &ComponentHarness<UnitTestEvent>,
    reset_era_id: EraId,
    protocol_version: ProtocolVersion,
) -> Storage {
    let cfg = new_config(harness);
    Storage::new(
        &WithDir::new(harness.tmp.path(), cfg),
        Some(reset_era_id),
        protocol_version,
        false,
        "test",
    )
    .expect("could not create storage component fixture")
}
fn storage_fixture_with_hard_reset_and_protocol_version ( harness : & ComponentHarness < UnitTestEvent > , reset_era_id : EraId , protocol_version : ProtocolVersion , ) -> Storage { let cfg = new_config ( harness ) ; Storage :: new ( & WithDir :: new ( harness . tmp . path ( ) , cfg ) , Some ( reset_era_id ) , protocol_version , false , " " , ) . expect ( " " ) }
Storage component test fixture.
Storage component test fixture .
harness
&ComponentHarness<UnitTestEvent>
reset_era_id
EraId
protocol_version
ProtocolVersion
harness
&ComponentHarness<UnitTestEvent>
reset_era_id
EraId
protocol_version
ProtocolVersion
panics
Panics if setting up the storage fixture fails.
Panics if setting up the storage fixture fails .