tests

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalErr

func EvalErr(t *testing.T, err error, data interface{}, shouldErr bool, expErr error) bool

EvalErr evaluates whether there is an error. If there is, was it the expected error.

func EvalErrWithLog

func EvalErrWithLog(t *testing.T, err error, data interface{}, shouldErr bool, expErr error, msgs []string) bool

EvalErrWithLog evaluates the error.

func EvalObjects

func EvalObjects(t *testing.T, name string, want, got interface{})

EvalObjects compares two objects.

func EvalObjectsWithLog

func EvalObjectsWithLog(t *testing.T, name string, want, got interface{}, msgs []string)

EvalObjectsWithLog compares two objects and logs extra output when detects an error

func GetCryptoKeyPair

func GetCryptoKeyPair(t *testing.T, keyAlgo, publicKeyType string) (string, string)

GetCryptoKeyPair returns private-public key pair.

func TempDir

func TempDir(s string) (string, error)

TempDir creates temporary directory.

func WriteLog

func WriteLog(t *testing.T, msgs []string)

WriteLog writes logs from tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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