testutils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectEmptyDir added in v0.3.0

func ExpectEmptyDir(t *testing.T, basedirDummy string)

func ExpectErr

func ExpectErr(t *testing.T, actual, expected error)

func ExpectErrMessage

func ExpectErrMessage(t *testing.T, err error, expectedRE string)

func ExpectFile added in v0.3.0

func ExpectFile(t *testing.T, basedir string, relpath string)

func ExpectFileNotExist added in v0.3.0

func ExpectFileNotExist(t *testing.T, basedir, relpath string)

func ExpectLogMessage

func ExpectLogMessage(t *testing.T, logs *observer.ObservedLogs, expectedRE string)

func PrepareBasedir

func PrepareBasedir(t *testing.T) string

func RemoveExistingFile added in v0.3.0

func RemoveExistingFile(t *testing.T, fpath string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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