Module holochain_types::test_utils::chain
source · [−]Expand description
Implements TestChainItem, a type used with isotest
Structs
The hash type for a
TestChainItem
A test implementation of a minimal ChainItem which uses simple numbers for hashes
and always points back to the previous number
Functions
Create a hash from a slice by repeating the slice to fill out the array
Create a chain per agent
Create a hash from a slice by repeating the slice to fill out the array
Create a chain from a range where the first chain items
previous hash == that items hash.
Produce an arbitrary SignedActionHashed from any ChainItem.
Produce a sequence of AgentActivity ops from a Vec of ChainItems
Create a hash from a slice by repeating the slice to fill out the array
Create a set of chains with forks where the first range
is the chain that all following ranges fork from.
Build a chain with gaps in it. Each range will make a chain even if there
are gaps.
Canonical way to construct a hash from a u32.
This is used in various places in our test code, and each must match.