Expand description

sweettest = Streamlined Holochain test utils with lots of added sugar

Features:

SweetConductor

A wrapper around ConductorHandle which provides useful methods for app setup and zome calling, as well as some helpful references to Cells and Zomes which make zome interaction much less verbose.

SweetApp

A handy collection of cells installed under the same app. Makes it easy to destructure the result of a SweetConductor::setup_app call into a collection of SweetCells which can be used for zome calls.

Structs

Provides simple methods for generating collections of AgentPubKeys for use in tests

An installed app, with prebuilt SweetCells

A collection of installed apps

A reference to a Cell created by a SweetConductor installation function. It has very concise methods for calling a zome on this cell

A useful Conductor abstraction for testing, allowing startup and shutdown as well as easy installation of apps across multiple Conductors and Agents.

A collection of SweetConductors, with methods for operating on the entire collection

A wrapper around ConductorHandle with more convenient methods for testing and a cleanup drop

Helpful constructors for DnaDefs used in tests

Helpful constructors for DnaFiles used in tests

Helper for constructing common kitsune networks

A reference to a Zome in a Cell created by a SweetConductor installation function. Think of it as a partially applied SweetCell, with the ZomeName baked in.

Functions

Standard config for SweetConductors

Get a websocket client on localhost at the specified port

Type Definitions

A stream of signals.