fixture

package
v1.10.18-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateFundedKeys

func AllocateFundedKeys(baseURI string, count int) ([]*secp256k1.PrivateKey, error)

Retrieve the specified number of 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 {
	FundedKeys []*secp256k1.PrivateKey
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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