testutil

package
v4.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertExecutable

func AssertExecutable(t *testing.T, mode fs.FileMode)

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