package setup
import "github.com/google/trillian/testonly/setup"
Index ¶
- func NewTLSCertificate(t *testing.T) tls.Certificate
- func SetFlag(t *testing.T, name, value string)
- func TempFile(t *testing.T, prefix string) (*os.File, func())
Functions ¶
func NewTLSCertificate ¶
func NewTLSCertificate(t *testing.T) tls.Certificate
NewTLSCertificate returns a random TLS Certificate for testing.
func SetFlag ¶
SetFlag updates a flag value, failing the test if something goes wrong.
func TempFile ¶
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 ¶
- Version
- v1.4.1
- Published
- May 5, 2022
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 7 hours ago –
Tools for package owners.