testutil

package
v1.30.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 4 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 *TestError, expected error) bool

AssertError checks if the TestError matches with the actual error on the basis of the platform on which it is running

func GetWorkDirPath added in v0.10.0

func GetWorkDirPath(dir string) (string, error)

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 {
	DefaultError error
	WindowsError error
}

TestError is used to define the errors given by different kinds of OS Implements the `error` interface

func (TestError) Error added in v0.10.0

func (t TestError) Error() string

Error returns the error on the basis of the platform

Jump to

Keyboard shortcuts

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