From 2ea7d813cc16baeb5209b6e936b3d62079b7a9f1 Mon Sep 17 00:00:00 2001 From: Ramesh Gaikwad Date: Thu, 7 Sep 2023 19:23:09 +0530 Subject: [PATCH] Use camelCase in test method names --- pkg/kor/kor.go | 1 - pkg/kor/kor_test.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/kor/kor.go b/pkg/kor/kor.go index ffe1d3dd..0e150039 100644 --- a/pkg/kor/kor.go +++ b/pkg/kor/kor.go @@ -48,7 +48,6 @@ func GetKubeClient(kubeconfig string) *kubernetes.Clientset { kubeconfig = GetKubeConfigPath() } } - config, err := clientcmd.BuildConfigFromFlags("", kubeconfig) if err != nil { fmt.Fprintf(os.Stderr, "Failed to load kubeconfig: %v\n", err) diff --git a/pkg/kor/kor_test.go b/pkg/kor/kor_test.go index 2d064b01..1a91d57c 100644 --- a/pkg/kor/kor_test.go +++ b/pkg/kor/kor_test.go @@ -85,7 +85,7 @@ kind: Config return fakeContent } -func TestGetKubeClient_fromEnvVar(t *testing.T) { +func TestGetKubeClientFromEnvVar(t *testing.T) { configFile, err := os.CreateTemp("", "kubeconfig-") if err != nil { t.Error(err) @@ -105,7 +105,7 @@ func TestGetKubeClient_fromEnvVar(t *testing.T) { } } -func TestGetKubeClient_fromInput(t *testing.T) { +func TestGetKubeClientFromInput(t *testing.T) { configFile, err := os.CreateTemp("", "kubeconfig") if err != nil { t.Error(err)