Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocatePreFundedKeys ¶
func AllocatePreFundedKeys(baseURI string, count int) ([]*secp256k1.PrivateKey, error)
Retrieve the specified number of pre-funded test keys from the provided URI. A given key is allocated at most once during the life of the test data server.
func ServeTestData ¶
Serve test data via http to ensure allocation is synchronized even when ginkgo specs are executing in parallel. Returns the URI to access the server.
Types ¶
type TestData ¶
type TestData struct {
PreFundedKeys []*secp256k1.PrivateKey
}
Click to show internal directories.
Click to hide internal directories.