contactstest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package contactstest provides a helper functions to create contacts file from a list of peers for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewYAMLFile

func NewYAMLFile(peers ...perun.Peer) (string, error)

NewYAMLFile creates a temporary file containing the details of given peers and returns the path to it. It also registers a cleanup function on the passed test handler.

func NewYAMLFileT added in v0.4.0

func NewYAMLFileT(t *testing.T, peers ...perun.Peer) string

NewYAMLFileT is the test friendly version of NewYAMLFile. 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