Help us shape the future of Go! Take the 2026 Go Developer Survey

testtmp

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package testtmp gives a package's tests a temp directory of their own: working files and caches stay isolated from the user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EPUBCheck added in v0.1.12

func EPUBCheck(t *testing.T, data []byte) bool

EPUBCheck validates an EPUB with the optional external validator.

func Lighthouse added in v0.1.9

func Lighthouse(dir string) error

Lighthouse supplies a deterministic report to tests of the compiler and CLI. Chrome still runs normally. Runner failures and audit interpretation belong to release's focused tests, rather than depending on a global Node install or a machine's current load in every release-compile test.

func Main

func Main(m *testing.M, setup ...func(string) error)

Main runs the tests with color disabled and TMPDIR inside a fresh directory, applies optional fixtures, then removes the directory afterwards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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