cstest

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// these are the same on unix
	FileNotFoundMessage = "no such file or directory"
	PathNotFoundMessage = FileNotFoundMessage
)

Variables

This section is empty.

Functions

func AssertErrorContains

func AssertErrorContains(t *testing.T, err error, expectedErr string)

func AssertErrorMessage

func AssertErrorMessage(t *testing.T, err error, expectedErr string)

func RequireErrorContains

func RequireErrorContains(t *testing.T, err error, expectedErr string)

func RequireErrorMessage

func RequireErrorMessage(t *testing.T, err error, expectedErr string)

func RequireLogContains

func RequireLogContains(t *testing.T, hook *logtest.Hook, expected string)

func SkipIfDefined added in v0.0.17

func SkipIfDefined(t *testing.T, envVar string)

func SkipOnWindows added in v0.0.17

func SkipOnWindows(t *testing.T)

func SkipOnWindowsBecause added in v0.0.17

func SkipOnWindowsBecause(t *testing.T, reason string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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