testinggo

package module
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertError

func AssertError(t *testing.T, expected string, err error)

func AssertHashEqual

func AssertHashEqual(t *testing.T, expected, actual []byte)

func AssertMatchesError

func AssertMatchesError(t *testing.T, expected string, err error)

func AssertNoError

func AssertNoError(t *testing.T, err error)

func AssertPrivateKeyEqual

func AssertPrivateKeyEqual(t *testing.T, expected, actual *rsa.PrivateKey)

func AssertProtobufEqual

func AssertProtobufEqual(t *testing.T, expected, actual proto.Message)

func MakeTempDir

func MakeTempDir(t *testing.T, name string) string

func SetEnv added in v1.2.0

func SetEnv(t *testing.T, env, value string)

func SetEnvTempDir added in v1.2.0

func SetEnvTempDir(t *testing.T, env, dir string) string

func UnmakeTempDir

func UnmakeTempDir(t *testing.T, dir string)

func UnsetEnv added in v1.2.0

func UnsetEnv(t *testing.T, env string)

func UnsetEnvTempDir added in v1.2.0

func UnsetEnvTempDir(t *testing.T, env, dir string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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