var testCACertCfg … var ( testCACert … testCAKey … _ … ) var testCertOrganization … var testCertCfg … type fakecertificateReadWriter … func (cr fakecertificateReadWriter) Exists() (bool, error) { … } func (cr fakecertificateReadWriter) Read() (*x509.Certificate, error) { … } func (cr fakecertificateReadWriter) Write(*x509.Certificate, crypto.Signer) error { … } func TestNewManager(t *testing.T) { … } func TestRenewUsingLocalCA(t *testing.T) { … } func TestCreateRenewCSR(t *testing.T) { … } func TestCertToConfig(t *testing.T) { … } func makeTestCertConfig(organization []string, notBefore, notAfter time.Time) *pkiutil.CertConfig { … } func TestManagerCAs(t *testing.T) { … } func TestManagerCAExists(t *testing.T) { … } func TestManagerCertificateExists(t *testing.T) { … }