testutils

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: BSD-3-Clause, BSD-3-Clause, Unlicense Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t testing.TB, b bool)

func AssertC

func AssertC(t testing.TB, b bool, context string)

func AssertNoErr

func AssertNoErr(t testing.TB, err error)

func Filenames added in v0.19.0

func Filenames(t testing.TB, dir string) []string

Filenames return the "absolute" file names of the given directory excluding directories, and not recursing. It uses the opentype embed file system.

func FilenamesFS

func FilenamesFS(t testing.TB, fs iofs.ReadDirFS, dir string) []string

okage: fs is an fs.ReadDirFS, not an *embed.FS, so that it also reads the copies of typesetting-utils in typesetting/testdata (D63).

func SkipWithoutTestdata added in v0.19.0

func SkipWithoutTestdata(t testing.TB)

SkipWithoutTestdata skips the test when typesetting/testdata is not there, for a test that reads it without a check of the error.

okage: this function is not in go-text (D76).

Types

This section is empty.

Jump to

Keyboard shortcuts

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