Documentation
¶
Overview ¶
Package testutil holds test certificates and helpers shared by mimicry's tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Certificate ¶
Certificate returns a self-signed server certificate for hosts, valid for a day, and a pool that trusts it.
func CertificateValidFor ¶
func CertificateValidFor(t testing.TB, validity time.Duration, hosts ...string) (tls.Certificate, *x509.CertPool)
CertificateValidFor is Certificate valid for validity from now.
func RaceEnabled ¶
func RaceEnabled() bool
RaceEnabled reports whether the test binary was built with -race.
Types ¶
This section is empty.