Module holochain::test_utils

source ·
Expand description

Utils for Holochain tests

Re-exports

pub use itertools;

Modules

Utilities for testing the consistency of the dht.
Collection of commonly used InlineZomes
Types to help with building simulated networks. Note this is an experimental prototype.

Macros

Structs

A running test network with a joined cell. Will shutdown on drop.
Generic waiting for some test property to be true. This allows early exit from waiting when the condition becomes true but will wait up to a maximum if the condition is not true.
Number of ops per sourechain change

Functions

Wait for all cells to reach consistency
Wait for all cells to reach consistency for 10 seconds
Wait for all cells to reach consistency for 10 seconds, with the option to specify that some cells are offline.
Same as wait_for_integration but with a default wait time of 60 seconds Wait for all cells to reach consistency for 10 seconds
Wait for all cells to reach consistency for 60 seconds
Wait for all cells to reach consistency for 60 seconds, with the option to specify that some cells are offline.
Wait for all cells to reach consistency, with the option to specify that some cells are offline.
Wait for all cell envs to reach consistency
Wait for all cells to reach consistency
Helper for displaying agent infos stored on a conductor
Run genesis on the source chain for testing.
Run genesis on the source chain for a specific agent for testing.
A fixture example dna for unit testing.
Force all dht ops without enough validation receipts to be published.
Do what’s necessary to install an app
Helper to create a zome invocation for tests
Helper to create a signed zome invocation for tests
Helper to create an unsigned zome invocation for tests
Show the current db state.
One of various ways to setup an app, used somewhere…
Setup an app with full configurability
Setup an app for testing apps_data is a vec of app nicknames with vecs of their cell data
Setup an app with a custom network config for testing apps_data is a vec of app nicknames with vecs of their cell data.
Show authored data for each cell environment
Convenience constructor for cell networks
Convenience constructor for cell networks where you need to filter some events into a channel
Exit early if the expected number of ops have been integrated or wait for num_attempts * delay
Same as wait_for_integration but with a default wait time of 10 seconds
Same as wait for integration but can print other states at the same time
Same as wait for integration but can print other states at the same time
If HC_WASM_CACHE_PATH is set warm the cache

Type Definitions

Payload for installing cells