testutil

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupServer

func SetupServer(fn func(mux *http.ServeMux)) (*httptest.Server, func())

Types

type MemFS added in v0.30.0

type MemFS map[string]*fstest.MapFile

MemFS is copied from fstest.MapFS to support absolute paths

func (MemFS) Open added in v0.30.0

func (m MemFS) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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