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 DbRead.

Function to help avoid needing to specify types.

Create a [TestEnv] of DbKindAuthored, backed by a temp directory.

Create a [TestEnv] of DbKindCache, backed by a temp directory.

Create a [TestEnv] 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.

Create a [TestEnv] of DbKindDht, backed by a temp directory.

Create a DbWrite of DbKindT in memory.

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

Create a [TestEnv] of [DbKindP2pAgentStore], backed by a temp directory.

Create a [TestEnv] of DbKindP2pMetrics, backed by a temp directory.

Create a [TestEnv] of DbKindWasm, backed by a temp directory.