Module holochain_types::test_utils
source · [−]Expand description
Some common testing helpers.
Functions
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 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.
A fixture HeaderHash for unit testing.
Create a fake SignedHeaderHashed 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