Expand description

Utils for testing

Structs

TODO: mark this as for testing only. This is indeed the type that Holochain provides.

An in-memory implementation of a node’s op store

A “node”, with test-worthy implementation of the host interface

Useful data calculated during the test node gossip round

Stats about what was sent and received during the gossip round

Functions

Check a set of peers the actual redundancy across all peers. This can tell if there is bad distribution. Note this function is only used for verification in tests at this time.

Each agent is perfectly evenly spaced around the DHT (+/- some jitter), with stable arc lengths that are sized to meet the minimum coverage target

Generates arqs with lengths according to a standard distribution, to test wildly unbalanced initial conditions

Wait for input, to slow down overwhelmingly large iterations

Quick ’n dirty simulation of a gossip round. Mutates both nodes as if they were exchanging gossip messages, without the rigmarole of a real protocol

Do gossip_direct, with both nodes at the same current time

A RNG suitable for testing, if no seed is passed, uses standard random seed.

Construct an arq from start and length specified in the interval [0, 1]

Type Definitions

Alias for op

Your peers just look like a bunch of Arqs