testutil

package
v1.30.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 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