fixture

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

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

func ServeTestData(testData TestData) (string, error)

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
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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