peruntest

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: 4 Imported by: 0

Documentation

Overview

Package peruntest implements test helpers for functionalities defined in perun package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAPIError

func AssertAPIError(t *testing.T, e perun.APIError, categ perun.ErrorCategory, code perun.ErrorCode, msgs ...string)

AssertAPIError tests if the passed error contains expected category, code and phrases in the message.

func AssertErrInfoChainNotReachable

func AssertErrInfoChainNotReachable(t *testing.T, info interface{}, chainURL string)

AssertErrInfoChainNotReachable tests if additional info field is of correct type and has expected values.

func AssertErrInfoFailedPreCondUnclosedChs

func AssertErrInfoFailedPreCondUnclosedChs(t *testing.T, info interface{}, chInfos []perun.ChInfo)

AssertErrInfoFailedPreCondUnclosedChs tests if additional info field is of correct type and has expected values.

func AssertErrInfoInvalidArgument

func AssertErrInfoInvalidArgument(t *testing.T, info interface{}, name perun.ArgumentName, value string)

AssertErrInfoInvalidArgument tests if additional info field is of correct type and has expected values.

func AssertErrInfoInvalidConfig

func AssertErrInfoInvalidConfig(t *testing.T, info interface{}, name, value string)

AssertErrInfoInvalidConfig tests if additional info field is of correct type and has expected values.

func AssertErrInfoInvalidContracts

func AssertErrInfoInvalidContracts(t *testing.T, info interface{}, contractErrInfos []perun.ContractErrInfo)

AssertErrInfoInvalidContracts tests if additional info field is of correct type and has expected values.

func AssertErrInfoPeerNotFunded

func AssertErrInfoPeerNotFunded(t *testing.T, info interface{}, peerAlias string)

AssertErrInfoPeerNotFunded tests if additional info field is of correct type and has expected values.

func AssertErrInfoPeerRejected

func AssertErrInfoPeerRejected(t *testing.T, info interface{}, peerAlias, reason string)

AssertErrInfoPeerRejected tests if additional info field is of correct type and has expected values.

func AssertErrInfoPeerRequestTimedOut

func AssertErrInfoPeerRequestTimedOut(t *testing.T, info interface{}, peerAlias, timeout string)

AssertErrInfoPeerRequestTimedOut tests if additional info field is of correct type and has expected values.

func AssertErrInfoResourceExists

func AssertErrInfoResourceExists(t *testing.T, info interface{}, resourceType perun.ResourceType, id string)

AssertErrInfoResourceExists tests if additional info field is of correct type and has expected values.

func AssertErrInfoResourceNotFound

func AssertErrInfoResourceNotFound(t *testing.T, info interface{}, resourceType perun.ResourceType, id string)

AssertErrInfoResourceNotFound tests if additional info field is of correct type and has expected values.

func AssertErrInfoTxTimedOut

func AssertErrInfoTxTimedOut(t *testing.T, info interface{}, txType, txID, txTimeout string)

AssertErrInfoTxTimedOut tests if additional info field is of correct type and has expected values.

func AssertErrInfoUserResponseTimedOut

func AssertErrInfoUserResponseTimedOut(t *testing.T, info interface{})

AssertErrInfoUserResponseTimedOut tests if additional info field is of correct type and has expected values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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