func copyFile(src, dst string) (err error) { … } func TestLoadClientConfig(t *testing.T) { … } func TestLoadRESTClientConfig(t *testing.T) { … } func TestRequestNodeCertificateNoKeyData(t *testing.T) { … } func TestRequestNodeCertificateErrorCreatingCSR(t *testing.T) { … } func TestRequestNodeCertificate(t *testing.T) { … } type failureType … const noError … const createError … const certificateSigningRequestDenied … type fakeClient … func newClientset(opts fakeClient) *fake.Clientset { … } func (c fakeClient) generateCSR() runtime.Object { … }