apptest

package
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBridges

func BuildBridges(h *Holochain, port string, bridgeApps []BridgeApp) (bridgeAppServers []*ui.WebServer, err error)

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)

func TestOne

func TestOne(h *Holochain, one string, bridgeApps []BridgeApp) []error

TestOne tests a single test file 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)

func TestScenario

func TestScenario(h *Holochain, scenario string, role string, replacementPairs map[string]string) (err error, testErrs []error)

TestScenario runs the tests of a single role in a scenario

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL