testutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertError added in v0.10.0

func AssertError(actual error, expected *TestError) bool

AssertError matches the actual and expected errors

func GetWorkDirPath added in v0.10.0

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

GetWorkDirPath returns the path to the current working directory

func IsRunningInProw

func IsRunningInProw() bool

Types

type TestError added in v0.10.0

type TestError struct {
	WindowsError error
	DefaultError error
}

TestError holds the different errors for Windows and Linux

func (TestError) GetExpectedError added in v0.10.0

func (t TestError) GetExpectedError() error

GetExpectedError returns the expected error depending on OS

Jump to

Keyboard shortcuts

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