testutil

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, expected, actual interface{})

func AssertEqualMsg

func AssertEqualMsg(t *testing.T, expected, actual interface{}, msg string, args ...interface{})

func AssertErr

func AssertErr(t *testing.T, err error, msg string, args ...interface{})

func AssertFalse

func AssertFalse(t *testing.T, b bool, msg string, args ...interface{})

func AssertFileContains

func AssertFileContains(t *testing.T, path string, expectedContent string)

func AssertNoErr

func AssertNoErr(t *testing.T, err error, msg string, args ...interface{})

func AssertObjectsEqual

func AssertObjectsEqual(t *testing.T, expected, actual interface{})

func AssertObjectsEqualMsg

func AssertObjectsEqualMsg(t *testing.T, expected, actual interface{}, msg string, args ...interface{})

func AssertPathExists

func AssertPathExists(t *testing.T, path string)

func AssertPathNotExists

func AssertPathNotExists(t *testing.T, path string)

func AssertRegexpMatch

func AssertRegexpMatch(t *testing.T, expectedRegexp, actual string)

AssertRegexpMatch checks if string matches the regexp.

func AssertStringsMatch

func AssertStringsMatch(t *testing.T, expected []string, actual []string, msg string, args ...interface{})

AssertStringsMatch compares string slices after sorting them.

func AssertTrue

func AssertTrue(t *testing.T, b bool, msg string, args ...interface{})

func CopyFile

func CopyFile(fromPath, toPath string) error

func MustCopyFile

func MustCopyFile(t *testing.T, fromPath, toPath string)

func MustListOyafiles

func MustListOyafiles(t *testing.T, rootDir string) []*oyafile.Oyafile

func MustListOyafilesSubdir

func MustListOyafilesSubdir(t *testing.T, rootDir, subDir string) []*oyafile.Oyafile

func MustLoadOyafile

func MustLoadOyafile(t *testing.T, dir, rootDir string) *oyafile.Oyafile

func MustMakeMockPack

func MustMakeMockPack(importPath string, version string) pack.Pack

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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