Module holochain_types::test_utils
source · [−]Expand description
Some common testing helpers.
Modules
Implements TestChainItem, a type used with isotest
Functions
A fixture ActionHash for unit testing.
A fixture AgentPubKey for unit testing.
A fixture AgentPubKey for unit testing.
NB: This must match up with AgentPubKeyFixturator’s Predictable curve
Another fixture AgentPubKey for unit testing.
NB: This must match up with AgentPubKeyFixturator’s Predictable curve
A fixture CapSecret for unit testing.
A fixture example CellId for unit testing.
A fixture DhtOpHash for unit testing.
A fixture example dna for unit testing.
A named dna for unit testing.
A fixture DnaHash for unit testing.
A fixture example dna for unit testing.
A named dna for unit testing.
A fixture EntryHash for unit testing.
Create a fake SignedActionHashed and EntryHashed pair with random content
Generate a test keystore pre-populated with a couple test keypairs.
Keeping with convention if Alice is pubkey 1
and bob is pubkey 2 the this helps make test
logging easier to read.
Save a Dna to a file and return the path and tempdir that contains it