testfuncs

package
v2.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEqualityInterface

func CheckEqualityInterface(t *testing.T, want, got interface{})

func CheckErrs

func CheckErrs(t *testing.T, want, got error)

func CheckSimilarErrs

func CheckSimilarErrs(t *testing.T, want, got error)

func Error

func Error(t *testing.T, msgPrefix, want, got interface{})

func FromEnv

func FromEnv(t *testing.T, key string) string

func MustBeNil

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

func RunIntegrationTests

func RunIntegrationTests(t *testing.T)

Types

type TestDir

type TestDir interface {
	Cleanup(t *testing.T)
	Path() string
}

func PrepareTestDirTree

func PrepareTestDirTree(files map[string][]byte) (TestDir, error)

Jump to

Keyboard shortcuts

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