pub fn builder_from_global_state_fixture(
    fixture_name: &str,
) -> (LmdbWasmTestBuilder, LmdbFixtureState, TempDir) {
    let source = path_to_lmdb_fixtures().join(fixture_name);
    let to = tempfile::tempdir().expect("should create temp dir");
    fs_extra::copy_items(&[source], &to, &dir::CopyOptions::default())
        .expect("should copy global state fixture");

    let path_to_state = to.path().join(fixture_name).join(STATE_JSON_FILE);
    let lmdb_fixture_state: LmdbFixtureState =
        serde_json::from_reader(File::open(&path_to_state).unwrap()).unwrap();
    let path_to_gs = to.path().join(fixture_name);
    (
        LmdbWasmTestBuilder::open(
            &path_to_gs,
            EngineConfig::default(),
            lmdb_fixture_state.post_state_hash,
        ),
        lmdb_fixture_state,
        to,
    )
}
/// Creates a [`LmdbWasmTestBuilder`] from a named fixture directory.
///
/// As part of this process a new temporary directory will be created to store LMDB files from given
/// fixture, and a builder will be created using it.
///
/// This function returns a triple of the builder, a [`LmdbFixtureState`] which contains serialized
/// genesis request for given fixture, and a temporary directory which has to be kept in scope.
Creates a [`LmdbWasmTestBuilder`] from a named fixture directory.
As part of this process a new temporary directory will be created to store LMDB files from given
fixture, and a builder will be created using it.

This function returns a triple of the builder, a [`LmdbFixtureState`] which contains serialized
genesis request for given fixture, and a temporary directory which has to be kept in scope.
Creates a [ ` LmdbWasmTestBuilder ` ] from a named fixture directory . As part of this process a new temporary directory will be created to store LMDB files from given fixture and a builder will be created using it . This function returns a triple of the builder a [ ` LmdbFixtureState ` ] which contains serialized genesis request for given fixture and a temporary directory which has to be kept in scope .
pub fn builder_from_global_state_fixture(
    fixture_name: &str,
) -> (LmdbWasmTestBuilder, LmdbFixtureState, TempDir) {
    let source = path_to_lmdb_fixtures().join(fixture_name);
    let to = tempfile::tempdir().expect("should create temp dir");
    fs_extra::copy_items(&[source], &to, &dir::CopyOptions::default())
        .expect("should copy global state fixture");
    let path_to_state = to.path().join(fixture_name).join(STATE_JSON_FILE);
    let lmdb_fixture_state: LmdbFixtureState =
        serde_json::from_reader(File::open(&path_to_state).unwrap()).unwrap();
    let path_to_gs = to.path().join(fixture_name);
    (
        LmdbWasmTestBuilder::open(
            &path_to_gs,
            EngineConfig::default(),
            lmdb_fixture_state.post_state_hash,
        ),
        lmdb_fixture_state,
        to,
    )
}
pub fn builder_from_global_state_fixture ( fixture_name : & str , ) -> ( LmdbWasmTestBuilder , LmdbFixtureState , TempDir ) { let source = path_to_lmdb_fixtures ( ) . join ( fixture_name ) ; let to = tempfile :: tempdir ( ) . expect ( " " ) ; fs_extra :: copy_items ( & [ source ] , & to , & dir :: CopyOptions :: default ( ) ) . expect ( " " ) ; let path_to_state = to . path ( ) . join ( fixture_name ) . join ( STATE_JSON_FILE ) ; let lmdb_fixture_state : LmdbFixtureState = serde_json :: from_reader ( File :: open ( & path_to_state ) . unwrap ( ) ) . unwrap ( ) ; let path_to_gs = to . path ( ) . join ( fixture_name ) ; ( LmdbWasmTestBuilder :: open ( & path_to_gs , EngineConfig :: default ( ) , lmdb_fixture_state . post_state_hash , ) , lmdb_fixture_state , to , ) }
Creates a [`LmdbWasmTestBuilder`] from a named fixture directory.
Creates a [ ` LmdbWasmTestBuilder ` ] from a named fixture directory .
fixture_name
&str
fixture_name
&str