package setup

import "github.com/google/trillian/testonly/setup"

Index

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.

Source Files

files.go flags.go tls.go

Version
v1.3.6
Published
Jan 9, 2020
Platform
js/wasm
Imports
11 packages
Last checked
4 hours ago

Tools for package owners.