Module holochain_state::test_utils
source · Expand description
Helpers for unit tests
Modules
Structs
- A test database in a temp directory
- A container for all three non-cell environments
Enums
Functions
- Dump db into
/tmp/test_dbs
. - Create a
TestDb
ofDbKindAuthored
, backed by a temp directory. - Create a
TestDb
ofDbKindCache
, backed by a temp directory. - Create a
TestDb
of DbKindConductor, 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 in a given directory.
- Generate a test keystore pre-populated with a couple test keypairs.
- Create a
TestDb
ofDbKindP2pAgents
, backed by a temp directory. - Create a
TestDb
of DbKindP2pMetrics, backed by a temp directory. - Create a
TestDb
of DbKindWasm, backed by a temp directory.