// RunWithPrivateKeyFixtureDirectory overrides NewPrivateKey to return private key fixtures // while executing tests in m. func RunWithPrivateKeyFixtureDirectory(m *testing.M) { … } // Reset indicates a new test is starting and previously returned private key fixtures may be reused. func Reset() { … } var testFunction … var lock … var fixtureDir … var lastTest … var ecdsa … var rsa … func install() (cleanup func()) { … } func newPrivateKey(keyType kubeadmapi.EncryptionAlgorithmType) (crypto.Signer, error) { … }