testutil

package
v4.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFile added in v4.11.0

func AssertFile(t *testing.T, filename string, wantExecutable, wantLink bool) bool

AssertFile asserts that the file at filename exists and has the given properties.

func BindownBin added in v4.11.0

func BindownBin() string

func CheckGoldenDir added in v4.11.0

func CheckGoldenDir(t *testing.T, resultDir, goldenDir string)

func RepoRoot added in v4.11.0

func RepoRoot() string

RepoRoot returns the absolute path to the root of this repo

func ServeFile

func ServeFile(t *testing.T, file, path, query string) *httptest.Server

ServeFile starts an HTTP server

func ServeFiles

func ServeFiles(t *testing.T, files map[string]string) *httptest.Server

ServeFiles starts an HTTP server serving the given files. files is a map of URL paths to local file paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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