Module holochain_state::test_utils[][src]

Expand description

Helpers for unit tests

Modules

Structs

A test database in a temp directory

A container for all three non-cell environments

Functions

Dump db into /tmp/test_dbs.

Function to help avoid needing to specify types.

Helper to get a Store from an EnvRead.

Function to help avoid needing to specify types.

Create a TestEnv of DbKind::Cache, backed by a temp directory.

Create a TestEnv of DbKind::Cell, backed by a temp directory.

Create a TestEnv of DbKind::Conductor, backed by a temp directory.

Create a fresh set of test environments with a new TempDir

Create a fresh set of test environments with a new TempDir and custom MetaLairClient

Generate a test keystore pre-populated with a couple test keypairs.

Create a TestEnv of DbKind::P2pAgentStore, backed by a temp directory.

Create a TestEnv of DbKind::P2pAgentStore, backed by a temp directory.

Create a TestEnv of DbKind::Wasm, backed by a temp directory.