testutil

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MultipartBoundary = "123456789012345678901234567890abcdefghijklmnopqrstuvwxyz"

Variables

View Source
var Cacert = func() []byte {
	b, err := os.ReadFile(filepath.Join(Testdata(), "cacert.pem"))
	if err != nil {
		panic(err)
	}
	return b
}()
View Source
var Cert = func() []byte {
	b, err := os.ReadFile(filepath.Join(Testdata(), "cert.pem"))
	if err != nil {
		panic(err)
	}
	return b
}()
View Source
var Key = func() []byte {
	b, err := os.ReadFile(filepath.Join(Testdata(), "key.pem"))
	if err != nil {
		panic(err)
	}
	return b
}()

Functions

func GRPCServer

func GRPCServer(t *testing.T, useTLS bool) *grpcstub.Server

func HTTPServer

func HTTPServer(t *testing.T) *httptest.Server

func HTTPServerAndRouter added in v0.47.0

func HTTPServerAndRouter(t *testing.T) (*httptest.Server, *httpstub.Router)

func Root

func Root() string

func SQLite

func SQLite(t *testing.T) (*sql.DB, string)

func SkipCDPTest added in v0.47.0

func SkipCDPTest(t *testing.T) bool

func Testdata

func Testdata() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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