idprovidertest

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package idprovidertest provides a test helper functions to initialize a local ID provider instance with a given list of peer IDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIDProvider

func NewIDProvider(peerIDs ...perun.PeerID) (string, error)

NewIDProvider sets up a local ID provider instance as a file in the system's temp directory with the given list of peers IDs and returns the ID provider URL, which is path of the file. .

func NewIDProviderT

func NewIDProviderT(t *testing.T, peerIDs ...perun.PeerID) string

NewIDProviderT is the test friendly version of NewIDProvider. It uses the passed testing.T to handle the errors and registers the cleanup functions on it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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