MCPcopy Create free account
hub / github.com/hashintel/hash / setup

Function setup

tests/graph/benches/util.rs:405–420  ·  view source on GitHub ↗
(
    db_name: &str,
    fail_on_exists: bool,
    delete_on_drop: bool,
    account_id: ActorEntityUuid,
)

Source from the content-addressed store, hash-verified

403}
404
405pub fn setup(
406 db_name: &str,
407 fail_on_exists: bool,
408 delete_on_drop: bool,
409 account_id: ActorEntityUuid,
410) -> (Runtime, StoreWrapper) {
411 let runtime = Runtime::new().expect("could not create runtime");
412
413 let store_wrapper = runtime.block_on(StoreWrapper::new(
414 db_name,
415 fail_on_exists,
416 delete_on_drop,
417 account_id,
418 ));
419 (runtime, store_wrapper)
420}

Calls 1

expectMethod · 0.45

Tested by

no test coverage detected