Documentation ¶
Index ¶
- func BuildBridges(h *Holochain, port string, bridgeApps []BridgeApp) (bridgeAppServers []*ui.WebServer, err error)
- func DoTest(h *Holochain, name string, i int, fixtures TestFixtures, t TestData, ...) (err error)
- func DoTests(h *Holochain, name string, testSet TestSet, minTime time.Duration, ...) (errs []error)
- func Test(h *Holochain, bridgeApps []BridgeApp) []error
- func TestOne(h *Holochain, one string, bridgeApps []BridgeApp) []error
- func TestScenario(h *Holochain, scenario string, role string, replacementPairs map[string]string) (err error, testErrs []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBridges ¶
func DoTest ¶
func DoTest(h *Holochain, name string, i int, fixtures TestFixtures, t TestData, startTime time.Time, history *history, replacementPairs map[string]string) (err error)
DoTest runs a singe test.
func DoTests ¶
func DoTests(h *Holochain, name string, testSet TestSet, minTime time.Duration, replacementPairs map[string]string) (errs []error)
DoTests runs through all the tests in a TestSet and returns any errors encountered TODO: this code can cause crazy race conditions because lastResults and lastMatches get passed into go routines that run asynchronously. We should probably reimplement this with channels or some other thread-safe queues.
func Test ¶
func Test(h *Holochain, bridgeApps []BridgeApp) []error
Test loops through each of the test files in path calling the functions specified This function is useful only in the context of developing a holochain and will return an error if the chain has already been started (i.e. has genesis entries)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.