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

setup

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSCertificate

func NewTLSCertificate(t *testing.T) tls.Certificate

NewTLSCertificate returns a random TLS Certificate for testing.

func SetFlag

func SetFlag(t *testing.T, name, value string)

SetFlag updates a flag value, failing the test if something goes wrong.

func TempFile

func TempFile(t *testing.T, prefix string) (*os.File, func())

TempFile creates a temporary file to be used in a test, and returns its *os.File handler, as well as a cleanup function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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